Skip to Content

Odoo 19 Community · eCommerce

Block Anonymous Carts

Shoppers browse as guests. Only a signed-in customer can start a cart.

Get it on the Odoo Apps Store Ask a question

Price: See current pricing on the Odoo Apps Store · License: OPL-1

How it works

Public visitors can still open the shop and the cart page. Adding a product, changing a quantity, clearing the cart, or reordering into a new quotation is refused until they sign in. Signed-in customers are unchanged.

On the product page and in the product grid, Add to cart is replaced with Sign in to buy, which returns the visitor to that same page. Quantity controls and Buy now are hidden for guests. The same rule is enforced on the server, before the cart controller runs, so a theme that replaces that controller cannot open a cart for a guest.

Set Website > Customer Account to Free sign up (B2C). On invitation, a new guest cannot create an account and cannot buy. There is no setting to turn the app on; it takes effect when it is installed.

What it doesn't do: it doesn't stop guests from browsing the shop or opening the cart page. A guest cart that already existed before this app was installed can still be checked out as a guest; adding or changing lines stays blocked. Paid event tickets and paid booths, when those apps are installed, require sign-in. Free tickets stay open. A guest whose cart existed before install and who then books a free booth gets that booth line on the cart and cannot remove it. The booth is reserved only once that cart is checked out (standard Odoo behavior).

What you get

Browse stays open

Guests can still open /shop and /shop/cart, and can read a cart already stored on the session.

Sign in to buy

The product page and the product grid replace Add to cart with Sign in to buy. Quantity controls and Buy now are hidden for guests.

Back to the same page

After sign-in, the visitor returns to the page they were on.

Cart changes blocked

Adding a product, changing a quantity, clearing the cart, or reordering into a new quotation is refused until they sign in.

Enforced on the server

The rule runs on the server before the cart controller, so a theme that replaces that controller cannot open a cart for a guest.

No on/off setting

There is no setting to turn the app on. It takes effect when it is installed.

Existing guest carts

A guest cart that already existed before the app was installed can still be checked out. Adding or changing lines stays blocked.

No guest quotations from the website form

The generic website form cannot create a quotation on sales orders for a public visitor.

Requirements

  • Odoo 19 Community with eCommerce.
  • Set Website > Customer Account to Free sign up (B2C).
  • The app directory name must stay website_sale_block_anonymous_cart.

Frequently asked questions

Is there a setting to turn it on?

No. The app takes effect when it is installed.

Can guests still browse the shop?

Yes. /shop and /shop/cart stay open. Guests just cannot start or change a cart.

What about a cart that existed before we installed the app?

That guest can still check it out. Adding or changing lines stays blocked.

Do I need Free sign up?

Yes. Set Website > Customer Account to Free sign up (B2C). On invitation, a new guest cannot create an account and cannot buy.

What about event tickets or booths?

Paid event tickets and paid booths, when those apps are installed, require sign-in. Free tickets stay open.

Does this change anything for signed-in customers?

No. Signed-in customers are unchanged.

Get Block Anonymous Carts

We sell it on the Odoo Apps Store. See current pricing there.

Get it on the Odoo Apps Store Email support@wolfsaddle.com

Questions or problems? Email support@wolfsaddle.com with your Odoo version (19.0) and your eCommerce setup.