The GTM data is included on the product and the reason why the event is not firing is because the loop is using other than standard class names.
I tried installing the Bricks theme and create a page with a product loop and everything is working fine. Clearly you loop is highly customized, so please help me understand how your product loop was created.
The add to cart button must have the classes “add_to_cart_button ajax_add_to_cart” but your button is missing “ajax_add_to_cart” and instead has “brx_ajax_add_to_cart”. Is the switch to done by the theme, a plugin or manually by you?
The product “card” needs the class “product” but your product card has the class “p-card”. Is the switch to done by the theme, a plugin or manually by you?
Hello thanks for reply
“brx_ajax_add_to_cart” is done by theme.
“p-card” is a class added by us. Bricks uses query loops so we are starting to design from scratch.
Probably class names you mentioned is default block theme classes. I can add product class to p-card as second class but can not change add_to_cart button class.
Thank you so much for help
OK. So when you are doing custom query loops you need to add the class product manually to the product cards. You go ahead and do that and I will make a fix for the button.
Added “product” class to product cards on archive page. Thank you so much.
Will these fixes be included in the next update? (With the previous one ). I will update accordingly.
Thanks again and again.
Please test try this fix: https://we.tl/t-ho4fFmrOxY
Yes, the fix will be included in the next release.
Yes Torben yes,
You did great again. Thank you so much.
With infinite respect
