Skip to Content
Menu
This question has been flagged
2 Replies
6398 Views

When I click on the "Add to cart" button it redirects me to the cart page, which is very annoying for clients to do,  I want to know if there is a way to modify the button so it just adds the product to the cart without redirecting the client to the cart page. (I use Odoo 12 Online)

Thank you

Avatar
Discard
Best Answer

Hi Bfood,

In V11 you could this out of the box by ticking on the option "Add to cart" in the /shop page. After configuring this you could choose to go directly back to the shop overview page or to the "My Cart" page. In V12 a lot has changed. Odoo has introduced the product configurator and due to this you now have to pass the /shop page so right now you can't. There is however a PR on the way that will change/fix quite some issues related to the webshops, see https://github.com/odoo/odoo/pull/28079 - a fix for this might land there.
Example in V11:



Regards,
Yenthe


Avatar
Discard
Author Best Answer

Thanks for the quick elaborate response, but I do have the option to add "add to cart" button, what I meant is that when I click on it, it adds the product to the shopping cart but at the same time redirects the client to the shopping cart, which makes it a very lengthy and unproductive process, adding a product, getting redirected to the shopping cart, then going back to the shop and repeat the same process with each and every product, I want to know if there is a way to modify the button in a way that the only thing it does is adding the product to the shopping cart without redirection, so the user can easily and rapidly add several products without having to go back and forth from the shopping cart to the products categories.


Best Regards,

Hatim


Avatar
Discard

Have you found any solution for that?

Author

Hi Piotr, No unfortunately I didn't, it seems that getting in touch with an Odoo consultant is a must...

I gave made a module that redirects to the shop when clicking on the add to cart. It is still not what I am aiming for(add to cart should just add to cart without redirecting anywhere)