• Resolved shopmaster

    (@serdarozbilen)


    Hello again,

    (I opened this topic because I thought it would be better to open a new topic rather than writing again after the solution was given in the other topic. )

    I noticed it after some friends warned me. Add to cart event does not work in simple products within the product loop. There is no problem since there is no add to cart in variables (so I missed), but when add cart is directly usable, add to cart event does not trigger. I wanted to test it without sharing it in the Bricks group, as it is fully compatible with Bricks.

    You can try the product called “simple product test” at the end of the loop in the link here.

    Thanks and regards

    • This topic was modified 1 month, 3 weeks ago by shopmaster.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Torben Lundsgaard

    (@torbenlundsgaard)

    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?

    Thread Starter shopmaster

    (@serdarozbilen)

    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

    Plugin Author Torben Lundsgaard

    (@torbenlundsgaard)

    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.

    Thread Starter shopmaster

    (@serdarozbilen)

    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.

    Plugin Author Torben Lundsgaard

    (@torbenlundsgaard)

    Please test try this fix: https://we.tl/t-ho4fFmrOxY

    Yes, the fix will be included in the next release.

    Thread Starter shopmaster

    (@serdarozbilen)

    Yes Torben yes,

    You did great again. Thank you so much.

    With infinite respect

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.