How to Add Voucher and Promo Code to Prestashop 1.7

Oct 17, 2018204Dmitry Urbanovich
How to Add Voucher and Promo Code to Prestashop 1.7

A discount coupon is a great tool for drawing customer attention to some particular products on your store and promoting your sales. PrestaShop 1.7 offers a convenient tool for creating vouchers and discount coupons directly in the admin panel. Let’s take a look at how you can create discount codes in PrestaShop via the admin panel and programmatically.

Setting up a coupon code in PrestaShop admin panel

To add a promo code to your PrestaShop webstore via the admin panel, open the admin panel and go to Sell → Catalog → Discounts. 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

And get their long-awaited discount.

How to add voucher and discount code to Prestashop 1.7

Setting up a coupon code programmatically

In addition to this, let’s take a look at how you can create a coupon code programmatically. This is actually quite simple:

// Define a temporary code

// Specific to the customer

Creating a gift product in PrestaShop admin panel

And finally, let’s take a look at another way to make a customer happy, namely, creating an automatic coupon for a gift product. First, you need to 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 “Sen 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 his shopping cart.

 

How to Add Voucher and Discount Code To Prestashop 1.7

So, 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 and greatly simplify the work of attracting customers to the site. 

Need help with PrestaShop development? Contact us and we will handle your project.



Post a new comment

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