Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

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

Subscriure's

Get notified when there's activity on this post

This question has been flagged
salesecommercewebsite_sale
2 Respostes
2395 Vistes
Avatar
Mathieu Raux

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!


0
Avatar
Descartar
Avatar
Mathieu Raux
Autor Best Answer

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!

0
Avatar
Descartar
Avatar
Vinsinfo Pvt Ltd
Best Answer

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


0
Avatar
Descartar
Mathieu Raux
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 ?

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
Webshop without Sales App Solved
sales ecommerce
Avatar
Avatar
1
de març 24
2879
Add shop and wishlist buttons on new website theme module
ecommerce website_sale
Avatar
0
de febr. 22
3006
Odoo 12 - How to Add Field at template
ecommerce website_sale
Avatar
Avatar
2
de jul. 19
7253
Command not displayed in website module
sales ecommerce
Avatar
0
de des. 18
3279
Ecommerce sales with regular grouped payment by bank transfer on invoices only
sales ecommerce website
Avatar
0
de febr. 25
1444
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now