cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable redirect anywhere after add to cart?

How to disable redirect anywhere after add to cart?

I need that browser remained on the same page. How i can do it?

 

I know about return_url parameter in add to cart form, it's work. I can redirect anywhere, but i return product list by ajax request and i don't know a current url.

2 REPLIES 2

Re: How to disable redirect anywhere after add to cart?

Hello @roman_brunets 

 

Please refer the below URLs:

 

https://magento.stackexchange.com/questions/75028/disable-redirect-after-add-to-cart

https://magento.stackexchange.com/questions/24816/disable-redirect-after-product-add-to-basket

 

I hope it helps.

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: How to disable redirect anywhere after add to cart?

1. I can't find this setting in Magento 2.3

2. Magento don't redirect me to cart, magento redirect me to same page (what does it think). But i return product list from controller and magento redirect me to URL of this controller.

 

Ideally, I need Magento to redirect nothing at all. Full ajax cart, if possible.