• Resolved tomdekok

    (@tomdekok)


    I love this plugin, but I have run into a problem with the WC Appointments plugin (BookingWP), where the Ajax doesn’t work when adding an appointment to the cart. The cart does not slide out, no product is added to the cart and instead there is a redirect to the homepage.

    What I need is to either be able to exclude this specific product, so that the standard WC handling becomes available for that product, i.e. page refresh and notification.

    Or, which would be far better, some update that will allow the appointment plugin to work with this plugin. A fee to make this work is no problem.

    Thanks in advance,
    Tom

    • This topic was modified 3 years, 3 months ago by tomdekok.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @tomdekok – we have the same problem on a couple of sites we manage. If it helps, we’ve hacked the plugin code – which is an awful idea, I know – but is the only way we can keep this plugin running for all products correctly. To bypass the Ajax add to cart and allow appointment products to be added, you have to exclude clicks on the appointment add to cart buttons…

    $(document).on('click', '.single_add_to_cart_button:not(.disabled,.wc-appointments-appointment-form-button)', function (e) {

    Obviously, when the plugin is updated, this fix is lost and needs re-adding. Would be great if the plugin devs could fix this issue, as it’s not a huge ask.

    Thanks
    Si

    Thread Starter tomdekok

    (@tomdekok)

    Hi Simon,

    Thanks for your response. Yes, hacking the plugin code is not a great idea, but if that is how it’s done, then that is how I’ll do it.

    Unfortunately I have no clue as to where to put the Javascript you suggest. Can you help me out here?

    Thanks for helping!
    Tom

    Thread Starter tomdekok

    (@tomdekok)

    Hi @simonsilkyocean,

    Because I didn’t tag you, I am not sure if you’ve read my reply? I hope you can help me out with this!

    Best regards,
    Tom

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude specific product pages’ is closed to new replies.