• Hi,

    On my client’s site the plugin is working OK in modal mode, but not when configured to be shown in the page itself : clicking on the button has no effect (and no JS error on the console).
    Something strange : there is a form tag in the code when in modal mode, but not in the page. So the “submit” button has nothing to submit and I couldn’t find any JS code the handles this button.

    WC version : 3.5.5
    plugin version : 3.0.4
    WP version : 5.0.3

    Thanks for your help

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Little Package

    (@littlepackage)

    I took a look at your site and it looks like you’ve got JS errors on the page which will prevent any other JavaScript from running (in this case, maybe Gift Wrapper).
    Equally important; however, you didn’t mention your theme at all. Taking a look, it seems to use Bootstrap. Have you also tried dequeuing Bootstrap JS – in the Gift Wrapper settings. That will be necessary once you clear up your JS errors.

    Thread Starter karelnet

    (@karelnet)

    Thank you for your reply.
    The problem doesn’t seem to be related to the javascript error you noticed (it was not a blocking one). I desactivated the plugin that was making this error but the problem is still here.
    I also checked the option to dequeue bootstrap JS, no effect.

    Plugin Author Little Package

    (@littlepackage)

    @karelnet

    The theme you are using is not free to download, so I cannot easily troubleshoot there. I suspect your theme has moved hooks around on the cart page. Without that, I hope you understand I cannot troubleshoot your site if you do not have the modal enabled for me to view and try to find the problem. Please help untie my hands! ??

    Thread Starter karelnet

    (@karelnet)

    I understand and I’m thankful you take time to investigate on my problem.
    I have set the “modal” option to true (working)

    By the way, if you could tell me how it is supposed to work (e.g. : should there be a form tag when in plain page ? Or a JS function somewhere ?) I could try on my own.

    Plugin Author Little Package

    (@littlepackage)

    It’s supposed to work, and it looks like it is ready to work. It cannot work when you have JavaScript errors on the page. When you’ve got those cleared up, and it still doesn’t work, get back to me!

    Thread Starter karelnet

    (@karelnet)

    OK there are no more JS errors. Still not working :
    https://divine-et-feminine.com/v2/panier/

    Thanks for your help

    Plugin Author Little Package

    (@littlepackage)

    Please make sure the bootstrap JS is dequeued in the Gift Wrapper settings and change your gift wrap location from after the coupon to before or after the cart, or even the checkout page, and try again. If the modal works in one of those locations, your theme has rearranged hooks (there is nothing I can do about that except recommend you continue using a different location). Please confirm what you have done when you reply, and let me know what happens. Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Button working in modal not in the page’ is closed to new replies.