Home Forums WoodMart support forum Toggle Ajax shopping cart widget

Toggle Ajax shopping cart widget

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #198156

    raredisarray
    Participant

    I have some custom add to cart buttons I would like to toggle the ajax shopping cart widget when clicked. Can you give me a javascript code to toggle the widget?
    Thanking you in advance.

    #198187

    Artem Temos
    Keymaster
    Xtemos team

    Hello,

    Our shopping cart widget is shown after add to cart even so you need to trigger this event with the following JS code

    jQuery('body').trigger('added_to_cart');

    Kind Regards

    #198266

    raredisarray
    Participant

    Thank you very much! This works great.. Could you provide the callback() for add to cart?

    #198290

    Artem Temos
    Keymaster
    Xtemos team

    Sorry, what callback do you mean?

    #198318

    raredisarray
    Participant

    Sorry, I am a beginner at Javascript and PHP but im trying to learn. I thought maybe you had a callback set up to add products to cart via ajax without page reload. Anyways, I figured out how to add the product to cart by inspecting the add to cart buttons on the page already. Everything is working great now =) Thank you for the help!! Great Theme and support! A+

    #198322

    Artem Temos
    Keymaster
    Xtemos team

    Great, you are welcome! Feel free to contact us if you will have any questions.

Viewing 6 posts - 1 through 6 (of 6 total)