• Resolved amy111patel

    (@amy111patel)


    Hello

    Plugin is not working with on of the premium plugin “Yith gift card”.

    Unable to add product(gift cards) in cart with plugin, Other products are working fine.

    Can you please help.
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter amy111patel

    (@amy111patel)

    Here is the link of plugin with which it is conflicting
    https://yithemes.com/themes/plugins/yith-woocommerce-gift-cards

    • This reply was modified 5 years, 4 months ago by amy111patel.

    Hi there,
    I’m having the same problem and wondered if it’s possible to exclude a specific button class from Ajax add to cart?

    The Yith Gift Card button seems to have it’s own class:

    <button type="submit" class="single_add_to_cart_button
    				               gift_card_add_to_cart_button button alt">Add to cart</button>

    I hope this helps!

    A super simple fix can be put in for this by adding a class to the JS click function. On line 28 of the non-minified JS for the plugin.

    $(document).on('click', '.single_add_to_cart_button:not(.disabled, .gift_card_add_to_cart_button)', function (e) {

    This would remove the ajax functionality for gift card – which it turns out speaking to the Yith gift card plugin team is what is needed to make gift cards add to cart anyway.

    However.. if this is not added into the main plugin dev and you take this amend and put it into the plugin itself, once you update it it will stop working again.

    This is such a quick change to put in.. wondering if it can be done please??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue with YITH gift card plugin’ is closed to new replies.