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:
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
5
Feb 26
|
23291 | |||
|
2
May 26
|
1543 | |||
|
2
Dec 24
|
6049 | |||
|
Webshop without Sales App
Solved
|
1
Mar 24
|
4061 | ||
|
|
1
Apr 21
|
3987 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.