A default product variation is expected in commerce_google_tag_manager_commerce_product_view and fails if none is available, but it is valid that a product has no (active) product variation.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | check-default-variation-3020256-2.patch | 1.12 KB | archnode |
Comments
Comment #2
archnode commentedAttached patch adds a check for default variation.
Comment #3
wengerkHey archnode !
Thanks for your contribution, could you write a test for the use case ?
Then upload a version with test-only just to demonstrate the tests works as intend to.
Thanks again for you help on the project.
Comment #4
finex commentedHi, the bug is still reproducible, the patch provided is not enough because a product variation is required by EventTrackerService::buildProductFromProductVariation.
This is the error:
Comment #5
chrissnyderPatch #2 worked for me.
Comment #6
sittard commentedPatch #2 worked for me as well.
Could we get this rolled out. Thanks.
Comment #7
schtifu commentedThanks for the feedback guys. I opened a pull request which adds the patch from archnode and an additional test case. Should be merged soon: https://www.drupal.org/project/commerce_google_tag_manager/issues/3020256
Cheers
Comment #8
wengerkNice work !
You all rock 💪
We will merge today
Comment #9
wengerkComment #10
schtifu commentedFixed with the alpha-2 release coming in a few minutes.