OdooWiki OCA HUB

Website Sale Cart No Redirect

website_sale_cart_no_redirect folder_open OCA/e-commerce open_in_new
Website License: LGPL-3

Backport from odoo 15.0 of the functionality to avoid the cart redirection when a product is added to the cart.

auto_awesome What this module does

AI-generated from the code · Odoo 13.0

Lets you keep shoppers on the product page after they add an item to the cart, instead of sending them straight to the cart page. The behaviour is controlled by a website setting.

When a customer clicks "Add to Cart" on your website shop, Odoo normally takes them to the cart page. This module adds an option so the customer simply stays where they are, and the cart icon in the header is updated with a small animation instead.

Where to find it: - In Website settings, next to the existing shop options, a new checkbox "Stay on page after adding to cart" appears. It is website-specific, so you can enable it for one website and not another.

What changes: - If the option is on, adding a product (including from the product page or the product grid) no longer redirects to the cart; the cart counter in the header is refreshed and an animation shows the product flying to the cart. - If the option is off, the standard Odoo behaviour (redirect to the cart) is kept. - "Buy Now" still goes straight to checkout, regardless of the setting.

The module touches the website configuration (res.config.settings and website) and the front-end shop behaviour of website_sale. It also ships automated browser tours used to test both the redirect and no-redirect cases.

Depends on

website_sale
Models and fields (2)
  • website · extends an existing modelcart_add_on_page (Stay on page after adding to cart)
  • res.config.settings · extends an existing modelcart_add_on_page (Stay on page after adding to cart)

Text generated by AI (DeepSeek) from reading the Odoo 13.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 13.0

Confirmed on 2026-11-03 in branch 13.0 of OCA/e-commerce.

terminal Installation and usage

OCA documentation · Odoo 13.0

To avoid the redirection when the products are added to the cart, the option Stay on page after adding to cart has to be activated on General Settings.

No verified information in OCA: Installation, Usage.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.