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:
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
5
feb 26
|
23282 | |||
|
2
mag 26
|
1539 | |||
|
2
dic 24
|
6042 | |||
|
Webshop without Sales App
Risolto
|
1
mar 24
|
4058 | ||
|
|
1
apr 21
|
3979 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.