Why the page still scrolls to the top every time I add a product to the cart?

Top WooCommerce & WordPress Plugins Forums Popup Notices for WooCommerce Why the page still scrolls to the top every time I add a product to the cart?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #99779

    Hi,

    I have selected AJAX add to cart buttons on archive pages option and also have the default WooCommerce notices hidden yet the page still scrolls to the top every time I add a product to the cart. I need to the notice to popup and leave the user in the same location where he/she clicked ‘add to cart’.

    Is there someway I can solve this issue? Thanks!

    Regards,
    Steven.

    #99780
    blankPablo Pacheco
    Participant

    Hello Pierre,
    After reading your comments I’ve just created a new option for you on version 1.0.9.

    The option is called “Prevent Scrolling”.
    Please update your plugin and try it.

    And let me know if it’s what you wanted 😉

    #99781

    Hi Pablo,

    Thanks a lot for the update! I’m currently using add to basket buttons (with quantity) in the WooCommerce category archives and when a user clicks add to basket, the page seems to refresh automatically for the item to go in the cart. Is there a way to ajaxify this action through your plugin?

    Thanks!

    #99782
    blankPablo Pacheco
    Participant

    Great!
    The popup plugin doesn’t have an option for that but I think it’s not necessary as WooCommerce itself has an option for what you want.

    Please try to enable it at:
    WooCommerce > Settings > Products > Add to cart behaviour > Enable AJAX add to cart buttons on archives

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