eCommerce - Odoo 20 Community Book

Discounts, Loyalty and Gift Cards

Website > eCommerce > Loyalty > Discount & Loyalty lists the programs that give customers a reason to buy. The columns are the Program Name, the Program Type, the Items, the Website, the Point of Sale and the Company. The example database has Code for 10% on orders, a Discount Code, Buy 3 large cabinets, get one for free, a Buy X Get Y offer, 10% Discount Coupons, and Free Shipping, a Promotion. The entry Gift cards and eWallet holds one program, Gift Cards.

odoo Development

A program is made of a type, a set of rules that decide when it applies and a set of rewards. The form of the program Code for 10% on orders is the main form of this section.

odoo Development

Program name (1). The name that the team sees. The letters EN show that it can be translated.

Type (2). Coupons, Loyalty Cards, Promotions, Discount Code, Buy X Get Y or Next Order Coupons. Gift cards and the eWallet have their own menu. A line under the field explains the chosen type.

Limit Usage (3). Caps the number of times the program can be used.

Once per user (4). Lets each customer use the program a single time.

For (5). The pricelists that may use the program. All Pricelist means that there is no limit.

Availability Dates (6). The period in which the program is valid.

Points Unit (7). The name of the points that the program counts, here Discount point(s).

Show Points Unit (8). Shows the unit in the cart and on the receipt.

Program trigger (9). How the program starts. Use a code asks the customer to type the code, and Automatic applies the program by itself.

Use points on (10). Whether the points are spent on the Current order, on Future orders, or on both.

Conditional rules (11). The conditions and the points that are granted. Here, if at least one item is bought, the order earns one point for the code 10pc. A click on Add a rule adds a condition.

Rewards (12). What the points buy. Here one point gives a 10.00% discount on the order. A click on Add a reward adds another reward.

The tab Settings shows where the program is valid. Available On has Point of sale, Sales and Website, each with its own box, and the fields Website and Point of Sale narrow the program to one website or one shop. A program is shared with a customer as a link or a code, and the cart page of the shop accepts both in the field Gift card or discount code.

odoo Development

The button New starts a program with the type Promotions already chosen. Its rule is if at least 50.00 is spent, the order earns one point, its reward is a 10.00% discount in exchange for one point, and the trigger is Automatic, so every order above the amount gets the discount without a code. The list of the types, the rules and the rewards are changed before the program is saved, and a program that is not needed is discarded with the cross next to the save icon. In the list, each program has a link Share that makes a link or a code for customers.

odoo Development odoo Development

A program that is made for a code works as soon as it is saved. The example program Welcome 5% code has the type Discount Code, the trigger Use a code, a rule that gives one point to every order of at least one item, and a reward of a 5% discount in exchange for that point. When the customer types the code WELCOME5 in the cart, a line 5% on your order appears with the amount taken off, and a green message confirms the code.

odoo Development

The program Buy 3 large cabinets, get one for free is of the type Buy X Get Y. Its rule gives one point for each unit that is bought, and its reward is one free Large Cabinet for three points. A reward of this kind is added by itself only when it needs a product that is active, so the product of the reward must not be archived. In the example database the variant of the Large Cabinet that is named in the reward is archived, and the free cabinet is not added.

The same type of program was set up for the Oak Side Table of the example, named Buy 2 side tables, get one free. Its rule gives one point for each table, and its reward is one free table for two points. When the customer raises the quantity to 2 in the cart, a line Free Product - Oak Side Table with a price of 0.00 appears at once, and the customer can still remove it with the link Remove. A reward that was removed by the customer is not added again.

odoo Development

The program Free Shipping is a promotion that starts by itself when the order reaches 1000. It is the reason for the progress bar of the cart. With a delivery price of 15 and an order below the limit, the cart shows the delivery cost and a partly filled bar. When the order passes the limit, a line Free Shipping takes the delivery cost off, and the bar turns green and full.

odoo Development odoo Development

A program of the type Coupons works with generated codes. The button Generate Coupons opens the window Generate, which is like the one of the gift cards, with the fields For, Description, Quantity to generate, Coupon value and Valid Until. Each coupon is listed with its code and its balance in coupon points, and the links Send and Share give the code to a customer. A customer types the code in the field of the cart. A green message confirms it, and a line 10% on your order appears with the last characters of the code. On an order of 180.00 the line takes off 18.00, and the total becomes 186.30 with the tax. When another percent discount, such as the code WELCOME5, is already in the cart, the cart keeps one percent discount line and the second code does not add a new one.

odoo Development odoo Development odoo Development

The Gift Cards program sells the product Gift Card of the shop. A card is a code with a balance, and the customer types it in the same field at the cart to pay with it.

odoo Development

The form of the program has the button Generate Gift Cards, which makes cards by hand, for example for a prize. It names the Gift Card Products that create a card when they are sold, the Discount Product that carries the payment line in the cart, the Email template that sends the card to the buyer, and the Print Report of the card. The Points Unit is the dollar, and a card can be used on Future orders. The reward says that one point is worth 1.00 of discount, and the button Gift Cards counts the cards that were sold.

odoo Development

The button Generate Gift Cards opens the window Generate. For chooses between Anonymous Customers and Selected Customers. The fields are a Description, the Quantity to generate, the Gift Card value and the date Valid Until. The button Generate Gift Card makes the cards at once, and the counter of the program goes up.

odoo Development

The button Gift Cards lists every card with its Code, its Balance, its Expiration Date, the Program and the Partner. A link Send mails the card to someone, and a link Share makes a link to it. The link Send opens the window Compose Email. The subject is Your Gift Card at the name of the company, and the message shows a picture, the words Here is your gift card, the amount and the code. The recipient is chosen in the field To, and the button Send mails the card.

odoo Development odoo Development
WhatsApp