This question has been flagged
4 Replies
6565 Views

Hello!!

I work with Odoo 8 and I've done a e-commerce for sell a product. Everything works fine but I want to add a discount coupon code field and I don't know how to do it. I've seen in the e-commerce module's website that this option is available (as you can see in the picture below, in the right bottom side) but I can't find the way to do it. Is there any module available or someone knows how to add the discount coupon code field?

https://www.odoo.com/website/image?max_height=768&field=datas&model=ir.attachment&id=497042&max_width=1024

Thank you in advance.

Maitane.

Avatar
Discard
Best Answer


I have a fix for this in v8

In my installation, the view product.pricelist.website.form had a group set to public.

Removing this allowed the Promotional Code field to appear in the pricelist.

However the shopping cart still was not applying the discount when I entered the code in Coupon Code.

This was due to a bug, which was fixed in this patch.

https://github.com/odoo/odoo/commit/7a2ba5ca47e896be681c53ef0dc869cbad642a78#diff-cf00d16a9ce1440df9ec66a522633604

I hope this saves you a lot of time.

Avatar
Discard
Best Answer

It doesn't work on my installation

I enter the promotional code in the Shopping cart page and nothing happens !

Avatar
Discard
Best Answer

The below steps to Configure ecommerce shop coupons:-

1) In Admin Role Menu  Settings --> Configuration --> Sales
Customer Features check "Use pricelists to adapt your price per customers" and Apply

2) Create/Edit  PriceList and Subtab Create PriceList Version and Price List Item using the below odoo document link 

https://doc.odoo.com/6.1/book/6/6_16_Sales/6_16_Sales_pricing/

  You can define/Edit a pricelist from the menu Sales --> Configuration --> Pricelists --> Pricelists

  For each list you should define:
 
  Promotional Code (is equal to Coupon Code)

  a Name for the list,

  a Type of list: Sale for customers or Purchase for suppliers,

  the Currency in which the prices are expressed.
 
   In sub tab create Price List Version and Price List Items

3) In the Page http://localhost:8069/shop/cart
   Menu --> Customize --> check "Reduction Code" after tht you can view "Coupon Code" options
   and Apply based on the Product Pricelist Rule amount will be calculate   

Avatar
Discard

One key point you have missed here is that the ecommerce module needs to be installed for the field 'promotional code' to be available on pricelists, it is not generally available for use in simple back-office system.