Home Forums WoodMart support forum How to deactivate autoscroll on Cart when there is Alert cart updating.

How to deactivate autoscroll on Cart when there is Alert cart updating.

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

    byontea
    Participant

    Hi!
    When someone updates the number of product on Cart page, the page scrolls automatically until the banner “Cart updated” alert.

    There is a way to remove this autoscroll?

    Thank you!

    • This topic was modified 3 weeks ago by byontea.
    #702369

    Hello,

    This is how the WooCommerce plugin works on the cart page. After the cart is updated, the window automatically scrolls up to the notice that appears above the table. You can see the same behaviour with the default storefront too.

    Since this scrolling is triggered by the plugin and not the theme, we cannot completely change or remove it within the theme files. However, as an alternative solution, try to add the following php code in the function.php of the theme.

    remove_action('woocommerce_before_cart', 'woocommerce_output_all_notices', 10);

    Hope this Helps!

    Best Regards,

    #702370

    byontea
    Participant

    Thanks!

    #702382

    Hello,

    You’re Most Welcome!

    Feel free to write back anytime. If you need further assistance, we are always here to help you.

    If you have a minute, we’d truly appreciate your feedback — it helps us improve the product and shape future updates more effectively. We’d love your feedback on our theme: https://tally.so/r/w4l54k

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘How to deactivate autoscroll on Cart when there is Alert cart updating.’ is closed to new replies.