• Resolved 2TheMoon

    (@ruskiller777)


    Remove redirection after cart items remove..also i dont want to show this message about item was removed because its looks bad and broke site theme divs!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Niels Lange

    (@nielslange)

    Hello @ruskiller777

    Remove redirection after cart items remove

    By default, there’s no redirection on the cart page if an item gets removed from the cart. The page simply gets reloaded using AJAX to reflect the changes. If you do see a redirect on your end, that redirect must come from your current theme or form one of the plugins that you are using. You can find out what causes this redirect by switching to a default theme, such as the Twenty Twenty theme, and deactivate all plugins and then activate the plugins one by one while testing the redirect issue.

    also i dont want to show this message about item was removed because its looks bad and broke site theme divs!

    To hide the message that the items was removed on the cart page, you can:

    1. Overwrite the notices.php template
    2. Using hooks
    3. Using CSS

    You can find further information on how to achieve this on https://stackoverflow.com/a/38191439/12001916. Please note that we do not offer support for custom code. If you have further questions regarding this issue, I suggest adding a comment in stackoverflow.com.

    Thread Starter 2TheMoon

    (@ruskiller777)

    can i just disable this page refreshing every time after removing from cart?

    Plugin Contributor Niels Lange

    (@nielslange)

    Hello @ruskiller777,

    It might be possible to remove the AJAX page refresh. However, this will lead to incorrect data on the checkout page, as your customer will see the final price including the price of the product that had been removed. That said, as mentioned before, we do not offer support for custom code in this forum. Perhaps you could contact one of our recommended WooExperts via https://www.woocommerce.com/experts/ to see if they can help assist you with something like this.

    AJ a11n

    (@amandasjackson)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove redirection after cart items remove’ is closed to new replies.