Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1819 Widoki

Hello everyone,

I am encountering an issue with my e-commerce site using the Odoo Community version.

Context:

I would like to apply a 10% discount when the customer chooses the in-store pickup option for their order.

What I have tried:

  • I created a promotion linked to the product corresponding to in-store pickup.
  • Unfortunately, the discount is not applied, even at the time of payment.

Details:

  • Odoo Version: Community
  • Module involved: e-commerce / sales
  • Method used: promotion linked to the in-store pickup product

Issues faced:

  • The discount does not trigger when the in-store pickup option is selected.
  • I am unable to find a solution to have the promotion apply correctly.

Questions:

  1. Is there a specific way to configure this discount so that it applies automatically when the in-store pickup option is chosen?
  2. Should I use a specific module or customization to achieve this?
  3. Any other suggestions to resolve this issue are welcome.

Thank you in advance for your help!


Awatar
Odrzuć
Autor Najlepsza odpowiedź

Hi there,

Thank you for your reply. The issue I'm facing is that I am using the community version and not the enterprise version. I have not been able to find any modules that can help with this.

Do you have any suggestions for modules that could handle this?


EDIT : With your explaination, i try to do some dev, and it seems to be working on community :



So I just have to add something to manage directly the product and the discount on the backend and it should be ok.


Thanks a lot!

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

You can achieve your requirement by following the below steps

Step 1 : Create a new shipment method with the below mentioned details and publish the newly created shipment method. It will also create a new product with the type service.

Step 2 : Create a two different automation rules using ODOO's studio one for our In-Store pickup method and another one for all other shipping methods.

In-Store pickup

Model 
:
 Sales Order
Trigger : On save
Apply on : [("order_line.product_id", "=", 6)]  (you have to enter product_id of the In-Store pickup id instead of 6) 

Action : 




Other shipping methods :

Model 
:
 Sales Order 
Trigger On save
Apply on
 : 
[("order_line.product_id", "!=", 6)]  (you have to enter product_id of the In-Store pickup id instead of 6) 


Action : click the save button and save the automation rule.

Now you can provide a specified discount to customers who select "In-shop pickup" as their delivery method on the checkout page, and the total amount of the order will be updated to reflect the discounted amount. 


Thanks


Awatar
Odrzuć
Autor

Okay that's weird, it's ok on desktop, with studio (with a test database), and with a custom module, but on mobile I got the following error with both :

UncaughtClientError > TypeError
Uncaught Javascript Error > Attempted to assign to readonly property.
TypeError: Attempted to assign to readonly property.
extractFilteredSchemaValuesFromMicroData@https://test.fr/shop/payment:3:4012
extractSchemaValuesFromSchemaOrg@https://test.fr/shop/payment:3:5983
global code@https://test.fr/shop/payment:3:6397

Any idea ?

Powiązane posty Odpowiedzi Widoki Czynność
1
mar 24
2240
0
lut 22
2348
2
lip 19
6603
0
gru 18
2667
0
lut 25
950