I have been asked to prevent all sales on our eCommerce website without a "code" that we intend to supply to prospects and customers.
How would I configure Odoo to support this?
I have been asked to prevent all sales on our eCommerce website without a "code" that we intend to supply to prospects and customers.
How would I configure Odoo to support this?
One way to do this is via the Extra Step feature.
Visit the /shop/cart page on the website and edit the page Style, activating the Extra Step option:
Remove the additional fields on the Extra Step page - /shop/extra_info - until you have one left, and link it to the Customer Reference field on the Sales Order:
Finally, create an Automation Rule that prevents the update of the Sale Order unless the correct code is entered:
for record in records:
if record.create_date != record.write_date and record.client_order_ref != 'PRETTY PLEASE':
raise UserError("Unable to process order")Your Prospects and Customers will then see this if they don’t enter the correct code:
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren| Verknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
|---|---|---|---|---|
|
5
Feb. 26
|
23266 | |||
|
2
Mai 26
|
1508 | |||
|
2
Dez. 24
|
6032 | |||
|
Webshop without Sales App
Gelöst
|
1
März 24
|
4023 | ||
|
|
1
Apr. 21
|
3966 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.