Closed mdkdev closed 1 year ago
Thanks. This seems like a bug in the PR that came in 20 hours ago. I overlooked this myself as well. This fix will be included in the release of today (3.3.2).
Note that copying and pasting diff files is actually also error-prone. Easiest is to make a Pull Request here on GitHub so that the PR allows for further reviewing and debating on a per line basis. Just 50 cents.
I'm closing this issue because it should be fixed in 3.3.2+. Let me know if it is not fixed yet :)
In Yireo\GoogleTagManager2\Plugin\TriggerAddGuestPaymentInfoDataLayerEvent, there's a $cartId that is typecasted to an int, but the incoming parameter is a masked quoteId. When typecasted, this becomes 0, and an error is thrown.
Below is a patch that resolves this.