{"id":16966,"date":"2020-01-31T13:00:40","date_gmt":"2020-01-31T11:00:40","guid":{"rendered":"https:\/\/belvg.com\/blog\/?p=16966"},"modified":"2026-05-12T14:16:33","modified_gmt":"2026-05-12T12:16:33","slug":"how-to-add-voucher-and-discount-code-to-prestashop-1-7","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html","title":{"rendered":"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026"},"content":{"rendered":"\n<p>Coupons still matter in 2026. Customers expect discounts instead of occasional surprises. In PrestaShop, cart rules help you run sales, offer free shipping, and send targeted deals without changing product prices.<br>\n<!--more-->In this guide, we explain how to create coupon codes in PrestaShop, how to offer free gift products, and how to generate cart rules programmatically. You will also learn when to use percentage discounts, fixed discounts, free shipping, and customer-specific vouchers to get better results from your promotions.<\/p>\n<p><a href=\"#step_1\">Why do You Need Ecommerce &#1057;oupons and Vouchers?<br>\n<\/a><a href=\"#step_2\">How to Set a Coupon Code in PrestaShop Admin Panel<br>\n<\/a><a href=\"#step_3\">How to Create a Gift Product in PrestaShop Admin Panel<br>\n<\/a><a href=\"#step_4\">How to Create Coupon Code in Prestashop Programmatically<\/a><\/p>\n<h2 id=\"step_1\">Why do You Need Ecommerce &#1057;oupons and Vouchers?<\/h2>\n<p>Today&rsquo;s ecommerce is emerging, but one simple truth remains the same &ndash; 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 a second reason to purchase a product &ndash; 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.<\/p>\n<p>During events like&nbsp;<a href=\"https:\/\/belvg.com\/blog\/black-friday-and-cyber-monday-marketing-strategy.html\" target=\"_blank\" rel=\"noopener\">Black Friday<\/a>&nbsp;or Cyber Monday, it is especially significant to provide customers with decent deals.&nbsp;If you don&rsquo;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 at the top 5 advantages of using coupon codes.<\/p>\n<p><strong>#1 Discourage cart abandonment<\/strong>. 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 smartly and forget about abandoned carts.<\/p>\n<p><strong>#2 Earn client&rsquo;s email. <\/strong>Another benefit of offering coupons is that it allows you to get access to valuable data &ndash; the client&rsquo;s email. It gives you an opportunity to add this email to your customer database and then use it 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.<\/p>\n<p><strong>#3 Track the activity.<\/strong> The use of coupons is easy to monitor. Without any additional investments or difficulties, you can analyze 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 which brings more traffic to your website.<\/p>\n<p><strong>#4 Increase conversions.<\/strong> A good discount is a proper incentive for an 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 an 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.<\/p>\n<p><strong>#5 Make customers feel positive about your company.<\/strong> 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.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/prestashop-support\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/06\/support_prestashop.png\" width=\"100\" height=\"100\" alt=\"support_prestashop\" class=\"module_image\" title=\"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026\"><div class=\"module_content_part\"><h3 class=\"title\">PrestaShop Support &amp; Maintenance<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG PrestaShop Support &amp; Maintenance<\/p><a href=\"https:\/\/belvg.com\/prestashop-support\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the page<\/span><\/a><\/div><\/div><\/div>\n<h2 id=\"step_2\">How to Set a Coupon Code in PrestaShop Admin Panel<\/h2>\n<p>Now, as it is clear that coupons and vouchers are a must for your ecommerce, let&rsquo;s find out how to create coupons in <a href=\"https:\/\/belvg.com\/prestashop-development\" target=\"_blank\" rel=\"noopener\">PrestaShop<\/a>. 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&rsquo;t face any difficulties along the way.<\/p>\n<p>To add a promo code to your PrestaShop webstore via the admin panel, open the admin panel and go to <strong>Sell<\/strong> &rarr; <strong>Catalog<\/strong> &rarr; <strong>Discounts<\/strong>. On the <strong>Cart Rules<\/strong> page, click the <strong>Add new cart rule<\/strong> button in the top right corner.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image51.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16968\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image51.png\" alt=\"How to add voucher and discount code to Prestashop 1.7\" width=\"1905\" height=\"809\" title=\"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026\"><\/a><\/p>\n<p>Okay, let&rsquo;s take a closer look at the process of adding a discount to PrestaShop. In the <strong>Name<\/strong> 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 <strong>Generate<\/strong> button.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16969\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image2.png\" alt=\"How to add voucher and discount code to Prestashop 1.7\" width=\"1910\" height=\"871\" title=\"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026\"><\/a><\/p>\n<p>On the&nbsp;<strong>Conditions<\/strong>&nbsp;tab, you can specify the conditions for a coupon, mainly its duration, currency, and the customer groups (customers, guests, or visitors) to whom the coupon will be visible.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image12.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16970\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image12.png\" alt=\"How to add voucher and discount code to Prestashop 1.7\" width=\"1891\" height=\"864\" title=\"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026\"><\/a><\/p>\n<p>The most important settings are located on the <strong>Actions<\/strong> tab. These are the basic settings for a discount on interest or amount. When we select <strong>Percent (%)<\/strong>, we indicate the percentage that will be discounted from the cart amount. If we select <strong>Amount<\/strong>, then we indicate a certain sum of money that will be discounted from the cart amount. <strong>Free shipping<\/strong> and <strong>Send a free gift<\/strong> settings are also located on this tab.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image71.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16971\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image71.png\" alt=\"How to add voucher and discount code to Prestashop 1.7\" width=\"1892\" height=\"855\" title=\"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026\"><\/a><\/p>\n<p>Click on <strong>Save<\/strong> and make sure the new cart rule has appeared on the list of the existing cart rules.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image61.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16972\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image61.png\" alt=\"How to add voucher and discount code to Prestashop 1.7\" width=\"1906\" height=\"756\" title=\"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026\"><\/a><\/p>\n<p>When buyers add a product to their cart and proceed to checkout, they will enter the coupon code received, for example, by email, in the appropriate field.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image31.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16973\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image31.png\" alt=\"How to add voucher and discount code to Prestashop 1.7\" width=\"1367\" height=\"906\" title=\"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026\"><\/a><\/p>\n<p>Finally, they get their long-awaited discount.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image81.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16974\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image81.png\" alt=\"How to add voucher and discount code to Prestashop 1.7\" width=\"1465\" height=\"909\" title=\"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026\"><\/a><\/p>\n<h2 id=\"step_3\">How to Create a Gift Product in PrestaShop Admin Panel<\/h2>\n<p>Finally, let&rsquo;s take a look at another way to make a customer happy &ndash; 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 at home, it will remind them of your company. Here, we describe how to create an automatic coupon for a gift product in <a href=\"https:\/\/belvg.com\/prestashop-dedicated-developer\">PrestaShop<\/a>.<\/p>\n<p>To get started, you should first create a regular coupon as described above, but without generating or entering a coupon code.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image41.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16985\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image41.png\" alt=\"How to Add Voucher and Discount Code To Prestashop 1.7\" width=\"1902\" height=\"843\" title=\"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026\"><\/a><\/p>\n<p>Next, we enable the <strong>Send a free gift<\/strong> slider. Of course, you can additionally enable free shipping, a coupon for a specific customer, etc.<\/p>\n<p>Type the name of the gift product in the search bar and select it from the suggested variations.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image82.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16987\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image82.png\" alt=\"How to Add Voucher and Discount Code To Prestashop 1.7\" width=\"1912\" height=\"879\" title=\"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026\"><\/a><\/p>\n<p>When ready, save the changes.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image53.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16988\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image53.png\" alt=\"How to Add Voucher and Discount Code To Prestashop 1.7\" width=\"1898\" height=\"876\" title=\"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026\"><\/a><\/p>\n<p>Now, when a customer selects any product and proceeds to payment, the product that we have selected above will automatically appear in the shopping cart.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image101.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16989\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/image101.png\" alt=\"How to Add Voucher and Discount Code To Prestashop 1.7\" width=\"1624\" height=\"811\" title=\"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026\"><\/a><\/p>\n<h2 id=\"step_4\">How to Create Coupon Code in Prestashop Programmatically<\/h2>\n<p>In addition, let&rsquo;s discover how to create a coupon code in PrestaShop programmatically. All you need to do is follow our guide, and you will realize it is quite simple.<\/p>\n<p>In order to create a <strong>new cart rule<\/strong>, you need to run the following command:<\/p>\n<pre class=\"lang:default decode:true \">$cart_rule = new CartRule();<\/pre>\n<p>Then, you should <strong>complete<\/strong> the rule&rsquo;s <strong>name<\/strong> (required) and <strong>description<\/strong> (optional):<\/p>\n<pre class=\"lang:default decode:true \">$language_ids = LanguageCore::getIDs(false);\r\n\r\nforeach ($language_ids as $language_id) {\r\n  $cart_rule-&gt;name[$language_id] = $this-&gt;trans('Cart rule name');\r\n  $cart_rule-&gt;description = $this-&gt;trans('Cart rule description');\r\n}<\/pre>\n<p>How to make the coupon valid for a certain <strong>period of time<\/strong> (for example, for a year, beginning today):<\/p>\n<pre class=\"lang:default decode:true \">$now = time();\r\n$cart_rule-&gt;date_from = date('Y-m-d H:i:s', $now);\r\n$cart_rule-&gt;date_to = date('Y-m-d H:i:s', strtotime('+1 year'));<\/pre>\n<p>The <strong>highlight<\/strong> 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:<\/p>\n<pre class=\"lang:default decode:true \">$cart_rule-&gt;highlight = true;<\/pre>\n<p>By default, the cart rule is <strong>Active<\/strong> and <strong>Partial use<\/strong> 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, the unspent balance does not convert into another coupon. If you want to disable the cart rule and Partial use function, run the following commands:<\/p>\n<pre class=\"lang:default decode:true \">$cart_rule-&gt;partial_use = false;\r\n$cart_rule-&gt;active = false;<\/pre>\n<p>When several different coupons can be added to the cart, you need to have their <strong>priority<\/strong> set (by default, the priority of all of them is 1). For example, running this command, we change the priority to 10:<\/p>\n<pre class=\"lang:default decode:true \">$cart_rule-&gt;priority = 10;<\/pre>\n<p>If you want to set the <strong>code<\/strong> for the cart rule, run the following command:<\/p>\n<pre class=\"lang:default decode:true \">$cart_rule-&gt;code = 'MYCOUPON';<\/pre>\n<p>The cart rule use can be <strong>limited to one particular customer<\/strong>. For example, you want to use a coupon to make up to one of your customers for the inconvenience, then you can send them a coupon with limited access to one user only. To set it up, run this command:<\/p>\n<pre class=\"lang:default decode:true \">$cart_rule-&gt;id_customer = $id_customer;<\/pre>\n<p>If you want to set a <strong>total quantity<\/strong> of available vouchers, run the following command (by default, there will be 1 voucher available):<\/p>\n<pre class=\"lang:default decode:true \">$cart_rule-&gt;quantity = 100;<\/pre>\n<p>To set the total available <strong>quantity<\/strong> of vouchers <strong>for a single user<\/strong>, run this command (by default, one user can redeem only one coupon):<\/p>\n<pre class=\"lang:default decode:true \">$cart_rule-&gt;quantity_per_user = 10;<\/pre>\n<p>If you want to create a cart rule for a <strong>free gift product<\/strong>, you need to specify the product ID and the attribute ID (if available):<\/p>\n<pre class=\"lang:default decode:true \">$cart_rule-&gt;gift_product = $id_product;\r\n$cart_rule-&gt;gift_product_attribute = $id_product_attribute;<\/pre>\n<p>When you want to apply a <strong>fixed monetary discount<\/strong>, use this command:<\/p>\n<pre class=\"lang:default decode:true \">$cart_rule-&gt;reduction_amount = 10;\r\n$cart_rule-&gt;minimum_amount_currency = ContextCore::getContext()-&gt;currency&gt;id;\r\n$cart_rule-&gt;reduction_currency = ContextCore::getContext()-&gt;currency&gt;id;<\/pre>\n<p>To apply a <strong>percentage (%) off<\/strong> to the total order amount, you can use the following command:<\/p>\n<pre class=\"lang:default decode:true \">$cart_rule-&gt;reduction_percent = 50;<\/pre>\n<p>If you want to create a cart rule for <strong>free shipping<\/strong>, enable it with this command:<\/p>\n<pre class=\"lang:default decode:true \">$cart_rule-&gt;free_shipping = true;<\/pre>\n<p>When you want to disallow using coupons with products that are already at a discount, run the following command:<\/p>\n<pre class=\"lang:default decode:true \">$cart_rule-&gt;reduction_exclude_special = true;<\/pre>\n<p>You may also need to configure the voucher so that it is available only after the order exceeds a certain amount. To set up a&nbsp;<strong>minimum amount from which the coupon can be redeemed<\/strong>, you need to use these commands:<\/p>\n<pre class=\"lang:default decode:true \">$cart_rule-&gt;minimum_amount = 10; \/\/ amount value\r\n$cart_rule-&gt;minimum_amount_currency = ContextCore::getContext()-&gt;currency&gt;id; \/\/ amount currency;\r\n$cart_rule-&gt;minimum_amount_tax = true; \/\/ to specify if the amount value includes taxes or not\r\n$cart_rule-&gt;minimum_amount_shipping = false;\/\/ to specify if the amount value includes shipping price<\/pre>\n<p>Finally, to <strong>save the cart rule<\/strong>, use this command:<\/p>\n<pre class=\"lang:default decode:true\">$cart_rule-&gt;add();<\/pre>\n<h2>Conclusion<\/h2>\n<p>PrestaShop still gives merchants one of the most flexible discount systems available in ecommerce. Whether you create vouchers from the admin panel or generate cart rules programmatically, coupon codes remain a practical way to increase conversions and reward loyal customers in 2026.<\/p>\n<p>The best results come from using discounts with a clear goal:<\/p>\n<ul>\n<li>A <strong>percentage discount<\/strong> may work well for <strong>seasonal campaigns<\/strong>.<\/li>\n<li><strong>Free shipping<\/strong> or <strong>gift products<\/strong> can <strong>improve average order value<\/strong>.<\/li>\n<li><strong>Customer-specific coupons<\/strong> are also useful for r<strong>etention campaigns<\/strong> and <strong>personalized offers<\/strong>.<\/li>\n<\/ul>\n<p>If you need more advanced logic, PrestaShop also allows full programmatic control over cart rules through PHP. It makes it possible to automate promotions, connect discounts with CRM or loyalty systems, and build custom marketing workflows.<\/p>\n<p>Looking for a reliable partner for <a href=\"https:\/\/belvg.com\/prestashop-development\">PrestaShop development<\/a>? Contact us, and we will handle your project.<\/p>\n<p><em>The following people contributed to this article: Andrei Litvin.<\/em><\/p>\n\n","protected":false},"excerpt":{"rendered":"How to add a discount coupon to a PrestaShop 1.7 based store.","protected":false},"author":102,"featured_media":29261,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[15,520,461,521],"tags":[],"class_list":["post-16966","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-prestashop","category-prestashop-custom-development","category-prestashop-development","category-prestashop-webdesign","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"Find out why your ecommerce needs discount coupons and learn how to set a coupon code in PrestaShop 1.7 in the admin panel and programmatically.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Darya Monastyrskaya\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#article\",\"name\":\"Set A PrestaShop Discount Code in 2026 | BelVG Blog\",\"headline\":\"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/dasha-m#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/How-To-Set-a-PrestaShop-Coupon-Code-in-1.7-Version.webp\",\"width\":1108,\"height\":590},\"datePublished\":\"2020-01-31T13:00:40+02:00\",\"dateModified\":\"2026-05-12T14:16:33+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":3,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#webpage\"},\"articleSection\":\"Prestashop, PrestaShop Custom Development, Prestashop Development, PrestaShop Webdesign, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"position\":2,\"name\":\"Prestashop\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#listItem\",\"name\":\"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#listItem\",\"position\":3,\"name\":\"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/dasha-m#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/dasha-m\",\"name\":\"Darya Monastyrskaya\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/28b29b718ed4c89fdf9f3f024e76e42b5611c29dee49d6303faa7ce8354a8fc5?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Darya Monastyrskaya\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html\",\"name\":\"Set A PrestaShop Discount Code in 2026 | BelVG Blog\",\"description\":\"Find out why your ecommerce needs discount coupons and learn how to set a coupon code in PrestaShop 1.7 in the admin panel and programmatically.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/dasha-m#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/dasha-m#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/How-To-Set-a-PrestaShop-Coupon-Code-in-1.7-Version.webp\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html\\\/#mainImage\",\"width\":1108,\"height\":590},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#mainImage\"},\"datePublished\":\"2020-01-31T13:00:40+02:00\",\"dateModified\":\"2026-05-12T14:16:33+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Set A PrestaShop Discount Code in 2026 | BelVG Blog","description":"Find out why your ecommerce needs discount coupons and learn how to set a coupon code in PrestaShop 1.7 in the admin panel and programmatically.","canonical_url":"https:\/\/belvg.com\/blog\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#article","name":"Set A PrestaShop Discount Code in 2026 | BelVG Blog","headline":"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026","author":{"@id":"https:\/\/belvg.com\/blog\/author\/dasha-m#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2020\/01\/How-To-Set-a-PrestaShop-Coupon-Code-in-1.7-Version.webp","width":1108,"height":590},"datePublished":"2020-01-31T13:00:40+02:00","dateModified":"2026-05-12T14:16:33+02:00","inLanguage":"en-US","commentCount":3,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#webpage"},"articleSection":"Prestashop, PrestaShop Custom Development, Prestashop Development, PrestaShop Webdesign, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","position":2,"name":"Prestashop","item":"https:\/\/belvg.com\/blog\/category\/prestashop","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#listItem","name":"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#listItem","position":3,"name":"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/dasha-m#author","url":"https:\/\/belvg.com\/blog\/author\/dasha-m","name":"Darya Monastyrskaya","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/28b29b718ed4c89fdf9f3f024e76e42b5611c29dee49d6303faa7ce8354a8fc5?s=96&d=mm&r=g","width":96,"height":96,"caption":"Darya Monastyrskaya"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#webpage","url":"https:\/\/belvg.com\/blog\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html","name":"Set A PrestaShop Discount Code in 2026 | BelVG Blog","description":"Find out why your ecommerce needs discount coupons and learn how to set a coupon code in PrestaShop 1.7 in the admin panel and programmatically.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/dasha-m#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/dasha-m#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2020\/01\/How-To-Set-a-PrestaShop-Coupon-Code-in-1.7-Version.webp","@id":"https:\/\/belvg.com\/blog\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html\/#mainImage","width":1108,"height":590},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html#mainImage"},"datePublished":"2020-01-31T13:00:40+02:00","dateModified":"2026-05-12T14:16:33+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"16966","title":"Set A PrestaShop Discount Code in 2026 | #site_title","description":"Find out why your ecommerce needs discount coupons and learn how to set a coupon code in PrestaShop 1.7 in the admin panel and programmatically.","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:37:02","updated":"2026-11-03 18:37:02"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/prestashop\" title=\"Prestashop\">Prestashop<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow To Set a PrestaShop Coupon Code in 1.7 Version In 2026\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Prestashop","link":"https:\/\/belvg.com\/blog\/category\/prestashop"},{"label":"How To Set a PrestaShop Coupon Code in 1.7 Version In 2026","link":"https:\/\/belvg.com\/blog\/how-to-add-voucher-and-discount-code-to-prestashop-1-7.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/16966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/102"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=16966"}],"version-history":[{"count":16,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/16966\/revisions"}],"predecessor-version":[{"id":30584,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/16966\/revisions\/30584"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/29261"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=16966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=16966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=16966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}