- πΊπΈUnited States rhovland Oregon
If you wish to use variations instead of products then this module will do that
https://www.drupal.org/project/commerce_vado β
I added an entity reference field for product variations instead of just the product. Then, when editing a product and selecting the add on products, clicking 'Save' results in a WSOD with the following error log message:
Error: Call to undefined method Drupal\commerce_product\Entity\ProductVariation::getVariations() in Drupal\commerce_pado\Form\PadoAddToCartForm->buildForm() (line 79 of /.../commerce_pado/src/Form/PadoAddToCartForm.php)
The line in question is this:
$variations = $add_on_product->getVariations();
Closed: works as designed
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
If you wish to use variations instead of products then this module will do that
https://www.drupal.org/project/commerce_vado β