• Resolved jgarnier001

    (@jgarnier001)


    Expected behavior

    When I click on the “add to cart” button in the order modal window from this page, the product is supposed to be added to the shopping cart and the user is redirected to another page.

    This is what the modal window looks like :

    Actual behavior

    However, when I click on the “add to cart” button from this page, the product is added to the shopping cart, but the modal window doesn’t close immediately and the user isn’t redirected to the order page. This requires a second click on the button.

    On the other hand, redirection works from a command sent from a non-modal window, e.g. from this page.

    The following image shows the bug log:

    Whereas the image below shows the log of a functional button click:

    Steps to reproduce bug

    1. Go to this order page.
    2. Click on “Sélectionner une option” in “Formule Express” to open the modal window.
    3. Fill in the required fields with any value.
    4. Click on “Add to cart” to see the bug.

    You can try the same steps from this non modal window and see how well it works.

    Environment setup

    • The plugin option “Redirect to the cart page after successful addition” is checked.
    • System Status Report can be found here, on GitHub.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for providing complete details of the issue. I followed the steps you mentioned on your site, but I’m unable to replicate the issue on my end. I’ve created a short video to demonstrate that everything seems to be working fine. https://go.screenpal.com/watch/cTVT65nfuVg

    I tried adding a product from both pages you shared, and I can see that both pages remain on the product details page with the message indicating the product was added to the cart. Additionally, the popup window automatically closes when I click the “Add to Cart” button within it.

    However, the pages are not redirecting to the order page; instead, they stay on the product details page. By default, the popup window does not appear when clicking the “Add to Cart” button, as it does on this page: https://makiyama.fr/click/. Similarly, by default, clicking “Add to Cart” does not redirect users to any page.

    To clarify, are you using any third-party plugins or custom code to redirect users to the order page?

    The more information you can provide, the more accurately we can assist you.

    Thread Starter jgarnier001

    (@jgarnier001)

    Thank you for your reply and sorry for my late reply, I’ve been very busy over the last few days.

    In fact, you couldn’t reproduce the bug, because a site admin disabled the ajax function so as not to disturb consumers. It has just been reinstated while the bug is resolved. Could you please test again and let me know if you manage to reproduce it?

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello jgarnier001,

    Thank you for your reply.

    I checked your site and noticed the error you are facing.
    The browser’s Network tab in the developer tools shows when we click on the Add to cart button, an AJAX request is sent but does not seem to be handled properly.

    Please note that this method of adding products to the cart using a modal is handled by your theme.
    Since the Ajax requests work fine without a modal, this problem seems to be related to your theme.
    I recommend consulting your theme support about how to resolve this issue.

    Please don’t hesitate to contact us again if you have more questions or concerns.
    We are here to help 🙂

    Best regards.

    Thread Starter jgarnier001

    (@jgarnier001)

    Thank you for taking the time to look, it will help me identify the cause.

    Best regards,

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello jgarnier001,

    Thank you for your reply.

    I am glad to be of your assistance.

    Please don’t hesitate to contact us again if you have more questions or concerns.
    We are here to help 🙂

    Best regards.

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