When using drupal/commerce_printful:3.0.x-dev with drupal/commerce:^3.0 on Drupal 10/11,
a fatal error occurs when saving a Printful Store configuration or when importing configuration via drush cim.
Fatal error: Uncaught Error: Call to undefined method Drupal\commerce_product\Entity\ProductType::getVariationType() in Drupal\commerce_printful\Entity\PrintfulStore->save() (modules/contrib/commerce_printful/src/Entity/PrintfulStore.php:144)
In Commerce 3.x, ProductType::getVariationType() was removed and replaced by getVariationTypeId().
drupal/commerce_printful:3.0.x-dev on a site running drupal/commerce:^3.0./admin/commerce/config/printful/stores and attempt to create/save a Printful Store entity.drush cim that includes a Printful Store.Fatal error due to call to removed method ProductType::getVariationType().
Printful Store entities save successfully and configuration imports cleanly on Commerce 3.x.
Replace the call to the removed getVariationType() with the Commerce 3.x API method
getVariationTypeId().
Active
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.