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!
Prijavi| Related Posts | Odgovori | Prikazi | Aktivnost | |
|---|---|---|---|---|
|
5
feb. 26
|
23266 | |||
|
2
maj 26
|
1508 | |||
|
2
dec. 24
|
6032 | |||
|
Webshop without Sales App
Solved
|
1
mar. 24
|
4023 | ||
|
|
1
apr. 21
|
3966 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.