Problem with negative product price
-
Dear Developer,
I use this plugin to integrate Google Analytics 4 and Facebook (Meta) Pixel into my websites. Everything work as it should except for one thing.
I have a product (hidden one) with a negative price to justify the total price of the cart when two or more products were added to the cart (custom quantity-based pricing). It is automatically added to the cart based on product quantity.
I can see this hidden product in the cart and checkout
dataLayer
variable, but the price is 0 (zero) and by this, the cart and checkout total is incorrect (the discount is missing both times).My question is, your plugin assumes that the product price is always greater than zero?
My checkout summary: https://i.imgur.com/8bHEsr3.png
dataLayer in GTM test: https://i.imgur.com/O5gFUhc.pngThank you for your help,
Gergo Simko
- The topic ‘Problem with negative product price’ is closed to new replies.