Get Free Audit

How to Set a Coupon Code in PrestaShop 1.7

Jan 31, 2020

28790 Dasha M.

How to Set a Coupon Code in PrestaShop 1.7

Want to find out more about coupons and vouchers in ecommerce? Discover all you need to know about creating coupon codes in PrestaShop 1.7 in our updated blog article.

A discount coupon is a great tool for drawing customer attention to some particular products and promoting your sales. In PrestaShop 1.7, vouchers and discount coupons can be created directly in the admin panel. However, it is also possible to set them up programmatically. Let’s discuss why you to offer discounts and how you can create discount codes in PrestaShop.

Why do You Need Ecommerce Сoupons and Vouchers?
How to Set a Coupon Code in PrestaShop Admin Panel
How to Create a Gift Product in PrestaShop Admin Panel
How to Create Coupon Code in Prestashop Programmatically

Why do You Need Ecommerce Сoupons and Vouchers?

Today’s ecommerce is emerging but one simple truth remains the same – getting customers is first of all about offering a better price. Most of the customers no longer see discounts and good deals as a nice gesture from the store owner or second reason to purchase a product – they take discounts for granted. However, it does not mean that you should offer coupons constantly but they should become a part of your smart pricing strategy and be available only during certain periods of time.

During the events like Black Friday or Cyber Monday it is especially significant to provide the customers with decent deals. If you don’t offer them something special, your store can be forgotten and huge profits will pass you by. Besides the obvious monetary advantage that your customers get from a coupon, there are several significant benefits that you can gain as a business owner. Here we are going to look through the top 5 most prominent advantages of using coupon codes.

#1 Discourage cart abandonment. One of the most popular reasons for cart abandonment is that the total order amount turns out to be higher than expected. After taxes, shipping and product prices are combined, the sum that appears on the screen can be frustrating. It can make potential customers leave before completing the purchase. The available discount is a way to butter them up and show that ordering your product is not going to hit their wallets as hard as they initially thought. Use coupons smart and forget about abandoned carts.

#2 Earn client’s email. Another benefit of offering coupons is that it allows you to get access to valuable data – client’s email. It gives you an opportunity to add this email to your customer database and then use for an email marketing campaign. Unless the user has specified that they do not want to subscribe and receive news and information about your company, you can regularly inform them about sales and specials.

#3 Track the activity. The use of coupons is easy to monitor. Without any additional investments or difficulties, you can analyse how the coupons attract customers and what kinds of discounts work best with your target audience. If you send one group of people a gift product coupon and another group a discount voucher, the results will show what brings more traffic to your website.

#4 Increase conversions. A good discount is a proper incentive for unplanned purchase. Comparing your products with the ones offered by your competitors, the customers are more likely to choose the website with a better price or conditions like free shipping or extra gift product. Given that most of the ecommerce websites always have some sales or specials, the right choice of coupons is coming to the forefront. Research the deals of your competitors and boost conversions.

#5 Make customers feel positive about your company. Coupons show your customers that you are not just trying to make some money here but you care about them and their shopping experience. It creates a positive company image and the customers may start associating your brand with fair prices and offers. Discount coupons work for your business reputation. On top of that, after a customer buys a product at a good discount from you, next time when they want to make a purchase, there is a high chance that they will check out your deals first.

support_prestashop

PrestaShop Support & Maintenance

Take your online store to the next level with BelVG PrestaShop Support & Maintenance

Visit the page

How to Set a Coupon Code in PrestaShop Admin Panel

Now, as it is clear that coupons and vouchers are musts for your ecommerce, let’s find out how to create coupons in PrestaShop. There are two different ways to do it and in this article, we are going to describe both of them. First, you can open the admin panel and set up a coupon there. Second, you can manage it programmatically. Following the recommendations below, you won’t face any difficulties along the way.

To add a promo code to your PrestaShop webstore via the admin panel, open the admin panel and go to SellCatalogDiscounts. On the Cart Rules page click the Add new cart rule button in the top right corner.

How to add voucher and discount code to Prestashop 1.7

Okay, let’s take a closer look at the process of adding a discount to PrestaShop. In the Name field, we specify the name of the coupon (it will be displayed on the cart page when placing the order), for example, Black Friday. After that, add a short description of the coupon and generate the code by pressing the Generate button.

How to add voucher and discount code to Prestashop 1.7

On the Conditions tab, you can specify the conditions for a coupon, mainly its duration, currency and the customer groups (customers, guests or visitors) that the coupon will be visible to.

How to add voucher and discount code to Prestashop 1.7

The most important settings are located on the Actions tab. These are the basic settings for a discount on interest or amount. When we select Percent (%), we indicate the percentage that will be discounted from the cart amount, if we select Amount, then we indicate a certain sum of money that will be discounted from the cart amount. Free shipping and Send a free gift settings are also located on this tab.

How to add voucher and discount code to Prestashop 1.7

Click on Save and make sure the new cart rule has appeared on the list of the existing cart rules.

How to add voucher and discount code to Prestashop 1.7

When buyers add a product to cart and proceed to checkout, they will enter the coupon code received, for example, by email, in the appropriate field.

How to add voucher and discount code to Prestashop 1.7

Finally, they get their long-awaited discount.

How to add voucher and discount code to Prestashop 1.7

How to Create a Gift Product in PrestaShop Admin Panel

Finally, let’s take a look at another way to make a customer happy – with the help of a gift product. Most of the customers remember when they receive such a compliment from the online store and when they keep it home, it will remind them of your company. Here we describe how to create an automatic coupon for a gift product in PrestaShop.

To get started, you should first create a regular coupon as described above but without generating or entering a coupon code.

How to Add Voucher and Discount Code To Prestashop 1.7

Next, we enable the Send a free gift slider. Of course, you can additionally enable free shipping, a coupon for a specific customer, etc.

Type the name of the gift product in the search bar and select it from the suggested variations.

How to Add Voucher and Discount Code To Prestashop 1.7

When ready, save the changes.

How to Add Voucher and Discount Code To Prestashop 1.7

Now when a customer selects any product and proceeds to payment, then the product that we have selected above will automatically appear in the shopping cart.

How to Add Voucher and Discount Code To Prestashop 1.7

How to Create Coupon Code in Prestashop Programmatically

In addition to this, let’s discover how you can create a coupon code in PrestaShop programmatically. All you need is to follow our guide and you will realize that it is all quite simple.

In order to create a new cart rule, you need to run the following command:


Then, you should complete the rule’s name (required) and description (optional):


How to make the coupon valid for a certain period of time (for example, for a year, beginning today):

Igor Dragun
Partner With Us Let's discuss how to grow your business. Get a Free Quote.
Talk to Igor


The highlight function will inform the user that there is a voucher that can be added to one of the items in the shopping cart. If you want to enable the highlight, run the following command:


By default, the cart rule is Active and Partial use function is enabled. It means that another voucher will be generated if the current one is fully used. If the Partial use function is disabled, the rule or voucher can be used one time and even if it is not fully used, unspent balance does not convert into another coupon. If you want to disable the cart rule and Partial use function, run the following commands:


When several different coupons can be added to the cart, you need to have their priority set (by default the priority of all of them is 1). For example, running this command we change the priority to 10:


If you want to set the code for the cart rule, run the following command:


The cart rule use can be limited for one particular customer. For example, you want to use a coupon to make up to one of your customers for the inconvenience, then you can send them coupon with limited access to one user only. To set it up, run this command:


If you want to set a total quantity of available vouchers, run the following command (by default, there will be 1 voucher available):


To set the total available quantity of vouchers for a single user, run this command (by default, one user can redeem only one coupon):


If you want to create a cart rule for a free gift product, you need to specify product id and attribute id (if available):


When you want to apply a fixed monetary discount, use this command:


To apply a percentage (%) off to the total order amount, you can use the following command:


If you want to create a cart rule for free shipping, enable it with this command:


When you want to disallow using coupons with products which are already at a discount, run the following command:


You may also need to configure the voucher that it is available only after the order exceeds a certain amount. To set up minimum amount from which the coupon can be redeemed, you need to use these commands:


Finally, to save the cart rule, use this command:


Igor Dragun

Partner With Us

Let's discuss how to grow your business. Get a Free Quote.
Talk to Igor

Conclusion

Today we have reviewed a bunch of ways to make your customers happy: creating a gift product, setting up a coupon code in PrestaShop admin panel and doing the same thing programmatically. All the mentioned methods are quite easy when you follow the steps of our guide correctly. Use discount coupons smart and boost conversions!

Have you tried offering coupons in your PrestaShop store? Share the experience in the comments below.

Looking for a reliable partner for PrestaShop development? Contact us and we will handle your project.

The following people contributed to this article: Andrei Litvin.

Igor Dragun
Partner With Us Looking for a partner to grow your business? We are the right company to bring your webstore to success. Talk to Igor

3 Comments

  1. I blog quite often and I truly thank you for your content. This great article has truly piqued my interest. I will take note of your site and keep checking for new information once a week.

  2. I must say you have done a excellent job with this. Also, the blog loads extremely quick for me on Chrome. Outstanding Blog!

Post a new comment

BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *