{"id":11599,"date":"2016-08-25T17:36:22","date_gmt":"2016-08-25T14:36:22","guid":{"rendered":"http:\/\/blog.belvg.com\/?p=11599"},"modified":"2025-06-30T22:49:56","modified_gmt":"2025-06-30T20:49:56","slug":"how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html","title":{"rendered":"Displaying Product Combinations With Discounts on a Product Page in Prestashop"},"content":{"rendered":"\n<p>Our goal is to display available product&nbsp;combinations and their prices on a product page. For example, our store proposes some loyalty discount program, and we should show all product prices in a proper way. The following solution will fit for you in case you have a variety of product combinations and a set of user group discount rules.<\/p>\n<p>Among them are: Distributors, Regular customers, Special customers, etc.<\/p>\n<p><!--more--><\/p>\n<p>There are several methods how to apply a discount in PrestaShop:<\/p>\n<p>Group discount &mdash; you can set up a discount in % for a certain User Group:<br>\n<img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-11600 size-belvg-post-content\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2016\/08\/1_pr_comb-850x392.png\" alt=\"How to Add Product Combinations Involving the Use of Discount System on a Product Page in Prestashop\" width=\"850\" height=\"392\" title=\"Displaying Product Combinations With Discounts on a Product Page in Prestashop\"><\/p>\n<p>Catalog Price Rules &mdash; allow setting up a discount depending on a product quantity, user group, combination, etc. Moreover&nbsp;it&rsquo;s possible to set up a discount for each product separately (Specific Price):<br>\n<img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-11601 size-full\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2016\/08\/2_pr_comb.png\" alt=\"How to Add Product Combinations Involving the Use of Discount System on a Product Page in Prestashop\" width=\"784\" height=\"655\" title=\"Displaying Product Combinations With Discounts on a Product Page in Prestashop\"><\/p>\n<p>Combination Impact on price &mdash; set price for every combination:<br>\n<img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-11602 size-belvg-post-content\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2016\/08\/3_pr_comb-850x518.png\" alt=\"How to Add Product Combinations Involving the Use of Discount System on a Product Page in Prestashop\" width=\"850\" height=\"518\" title=\"Displaying Product Combinations With Discounts on a Product Page in Prestashop\"><\/p>\n<p>Moreover there are some types of discount rules based on the cart items (Cart Rules), but we won&rsquo;t consider this case in this post.<\/p>\n<p>By default a price is displayed only for the selected combination. After a product attribute is changed, a new price is calculated according to the applied discount rules. So we just need to understand the process of these calculations and apply it to all possible combinations.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/module-presta.com\/\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/06\/modules-prestashop-belvg.png\" width=\"481\" height=\"480\" alt=\"modules prestashop belvg\" class=\"module_image\" title=\"Displaying Product Combinations With Discounts on a Product Page in Prestashop\"><div class=\"module_content_part\"><h3 class=\"title\">PrestaShop Modules<\/h3><p class=\"module_content_text\">Take your store to the next level with PrestaShop modules from BelVG<\/p><a href=\"https:\/\/module-presta.com\/\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the store<\/span><\/a><\/div><\/div><\/div>\n<p>Let&rsquo;s take a look at what happens when you choose a certain combination, and how PrestaShop calculates a new product price.<\/p>\n<p>All described code is taken from the <em>default-bootstrap\/js\/product.js<\/em> file.<\/p>\n<p>Selected combination is passed in the URI anchor, so a JavaScript global variable is in our disposal.<br>\n<img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-11603 size-full\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2016\/08\/4_pr_comb.png\" alt=\"How to Add Product Combinations Involving the Use of Discount System on a Product Page in Prestashop\" width=\"400\" height=\"35\" title=\"Displaying Product Combinations With Discounts on a Product Page in Prestashop\"><\/p>\n<p>Let&rsquo;s take a look at the&nbsp;<em>Combinations<\/em> array. The following JavaScript object is filled in the <em>product.tpl<\/em> template by the <em>ProductController<\/em> class.<br>\n<img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-11604 size-full\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2016\/08\/5_pr_comb.png\" alt=\"How to Add Product Combinations Involving the Use of Discount System on a Product Page in Prestashop\" width=\"456\" height=\"583\" title=\"Displaying Product Combinations With Discounts on a Product Page in Prestashop\"><\/p>\n<p>This object contains <em>price<\/em> (Combination Impact on price) and <em>specific_price<\/em> (Catalog Price Rules) elements.<\/p>\n<p>Also we have access to global price variables (ProductPrice, productPriceTaxIncluded, etc.) that affect the final product price with applied group discounts and country based taxes (also calculated in the ProductController).<\/p>\n<p>So now we are able to display prices with&nbsp;<em>Catalog Price Rules<\/em> and <em>Impact on Price<\/em> discounts applied.<\/p>\n<p>Here is a custom template with combinations and applied discounts.<br>\n<img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-11605 size-belvg-post-content\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2016\/08\/6_pr_comb-850x471.png\" alt=\"How to Add Product Combinations Involving the Use of Discount System on a Product Page in Prestashop\" width=\"850\" height=\"471\" title=\"Displaying Product Combinations With Discounts on a Product Page in Prestashop\"><\/p>\n<p>To achieve the same result you need to develop a custom module with template for calculations according to the available <em>Combinations<\/em> based on the <em>ProductController<\/em>. But what if we want to create <em>Price Rule<\/em> for a purchase of 10+ or even 100+ products? You expect <em>Combinations<\/em>&nbsp;to contain additional information about all available discounts. Yes, this could be rather helpful. But it is not the way PrestaShop is built.<\/p>\n<div class=\"content_sales_info\" style=\"background-image: url(https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/03\/Sales_background.png\"><img width=\"65\" height=\"65\" src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2015\/11\/Andrey_Dubina.png\" alt=\"Andrey_Dubina\" title=\"Displaying Product Combinations With Discounts on a Product Page in Prestashop\"><div class=\"content_part\"><h3 class=\"title\">Partner With Us <\/h3><span class=\"sales_content_text\">Let's discuss how to grow your business. Get a Free Quote.<\/span><\/div> <a class=\"call-to-action\" href=\"https:\/\/belvg.com\/contact?utm_source=blog&amp;utm_campaign=sales_block&amp;utm_content=middle\" target=\"_blank\" rel=\"noopener\">Talk to Andrey<\/a><\/div>\n<p>If you add a <em>PriceRule<\/em> with the <em>From quantity<\/em> parameter and reload a page, you will see that&nbsp;a new <em>Volume Discounts<\/em> table. And in case you increase the <em>Quantity<\/em> JavaScript will parse this table and update the current price. Such option does not suit us at all. The data that we need is not passed into JavaScript global variables, we don&rsquo;t need the <em>Volume Price<\/em> table as well.<\/p>\n<p>JavaScript adds anchor to the page URL after you select a combination. Thereafter the script calculates the final price with the applied discount and updates value on the page.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-11606 size-full\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2016\/08\/7_pr_comb.png\" alt=\"How to Add Product Combinations Involving the Use of Discount System on a Product Page in Prestashop\" width=\"754\" height=\"523\" title=\"Displaying Product Combinations With Discounts on a Product Page in Prestashop\"><\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/prestashop-development\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/06\/development_prestashop.png\" width=\"100\" height=\"100\" alt=\"development_prestashop\" class=\"module_image\" title=\"Displaying Product Combinations With Discounts on a Product Page in Prestashop\"><div class=\"module_content_part\"><h3 class=\"title\">PrestaShop Development<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG PrestaShop Development<\/p><a href=\"https:\/\/belvg.com\/prestashop-development\" 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<p>So the following solution can suit us:<br>\nLet&rsquo;s create a <em>hook<\/em> in our module<\/p>\n<pre class=\"lang:php decode:true \">public function hookProductFooter($params)\r\n{\r\n    $product = new Product(Tools::getValue('id_product'), true, $cookie-&gt;id_lang);\r\n    $grid_quantity_discounts = $this-&gt;getQuantityDiscounts(\r\n        $product, \r\n        $this-&gt;context-&gt;shop-&gt;id, \r\n        $this-&gt;context-&gt;currency-&gt;id, \r\n        $this-&gt;context-&gt;country-&gt;id, \r\n        (int)Group::getCurrent()-&gt;id\r\n    );\r\n\r\n    $smarty-&gt;assign(array('grid_quantity_discounts' =&gt; $grid_quantity_discounts));\r\n\r\n    return $this-&gt;display(__FILE__, 'our-template.tpl');\r\n}<\/pre>\n<p>We are going to use 2 native methods from the <em>ProductController<\/em>: <em>getQuantityDiscounts()<\/em> and <em>formatQuantityDiscounts()<\/em>:<\/p>\n<pre class=\"lang:php decode:true \">public function getQuantityDiscounts($product, $id_shop, $id_currency, $id_country, $id_group)\r\n{\r\n    $quantity_discounts = SpecificPrice::getQuantityDiscounts($product-&gt;id, $id_shop, $id_currency, $id_country, $id_group, null, true, (int)$this-&gt;context-&gt;customer-&gt;id);\r\n    foreach ($quantity_discounts as &amp;$quantity_discount) {\r\n        if ($quantity_discount['id_product_attribute']) {\r\n            $combination = new Combination((int)$quantity_discount['id_product_attribute']);\r\n            $attributes = $combination-&gt;getAttributesName((int)$this-&gt;context-&gt;language-&gt;id);\r\n            foreach ($attributes as $attribute) {\r\n                $quantity_discount['attributes'] = $attribute['name'] . ' - ';\r\n            }\r\n            $quantity_discount['attributes'] = rtrim($quantity_discount['attributes'], ' - ');\r\n        }\r\n        if ((int)$quantity_discount['id_currency'] == 0 &amp;&amp; $quantity_discount['reduction_type'] == 'amount') {\r\n            $quantity_discount['reduction'] = Tools::convertPriceFull($quantity_discount['reduction'], null, Context::getContext()-&gt;currency);\r\n        }\r\n    }\r\n    $tax = (float)$product-&gt;getTaxesRate(new Address((int)$this-&gt;context-&gt;cart-&gt;{Configuration::get('PS_TAX_ADDRESS_TYPE')}));\r\n\r\n    $ecotax_rate = (float)Tax::getProductEcotaxRate($this-&gt;context-&gt;cart-&gt;{Configuration::get('PS_TAX_ADDRESS_TYPE')});\r\n    $ecotax_tax_amount = Tools::ps_round($this-&gt;product-&gt;ecotax, 2);\r\n    if (Product::$_taxCalculationMethod == PS_TAX_INC &amp;&amp; (int)Configuration::get('PS_TAX')) {\r\n        $ecotax_tax_amount = Tools::ps_round($ecotax_tax_amount * (1 + $ecotax_rate \/ 100), 2);\r\n    }\r\n\r\n    $product_price = $product-&gt;getPrice(Product::$_taxCalculationMethod == PS_TAX_INC, false);\r\n    $address = new Address($this-&gt;context-&gt;cart-&gt;{Configuration::get('PS_TAX_ADDRESS_TYPE')});\r\n    return $this-&gt;formatQuantityDiscounts($quantity_discounts, $product_price, (float)$tax, $ecotax_tax_amount);\r\n}<\/pre>\n<pre class=\"lang:php decode:true\">protected function formatQuantityDiscounts($specific_prices, $price, $tax_rate, $ecotax_amount)\r\n{\r\n    foreach ($specific_prices as $key =&gt; &amp;$row) {\r\n        $row['quantity'] = &amp;$row['from_quantity'];\r\n        if ($row['price'] &gt;= 0) {\r\n            \/\/ The price may be directly set\r\n\r\n            $cur_price = (!$row['reduction_tax'] ? $row['price'] : $row['price'] * (1 + $tax_rate \/ 100)) + (float)$ecotax_amount;\r\n\r\n            if ($row['reduction_type'] == 'amount') {\r\n                $cur_price -= ($row['reduction_tax'] ? $row['reduction'] : $row['reduction'] \/ (1 + $tax_rate \/ 100));\r\n                $row['reduction_with_tax'] = $row['reduction_tax'] ? $row['reduction'] : $row['reduction'] \/ (1 + $tax_rate \/ 100);\r\n            } else {\r\n                $cur_price *= 1 - $row['reduction'];\r\n            }\r\n\r\n            $row['real_value'] = $price &gt; 0 ? $price - $cur_price : $cur_price;\r\n        } else {\r\n            if ($row['reduction_type'] == 'amount') {\r\n                if (Product::$_taxCalculationMethod == PS_TAX_INC) {\r\n                    $row['real_value'] = $row['reduction_tax'] == 1 ? $row['reduction'] : $row['reduction'] * (1 + $tax_rate \/ 100);\r\n                } else {\r\n                    $row['real_value'] = $row['reduction_tax'] == 0 ? $row['reduction'] : $row['reduction'] \/ (1 + $tax_rate \/ 100);\r\n                }\r\n                $row['reduction_with_tax'] = $row['reduction_tax'] ? $row['reduction'] : $row['reduction'] + ($row['reduction'] * $tax_rate) \/ 100;\r\n            } else {\r\n                $row['real_value'] = $row['reduction'] * 100;\r\n            }\r\n        }\r\n        $row['nextQuantity'] = (isset($specific_prices[$key + 1]) ? (int)$specific_prices[$key + 1]['from_quantity'] : -1);\r\n    }\r\n    return $specific_prices;\r\n}<\/pre>\n<p>Now we can create a JavaScript variable in the template:<\/p>\n<pre class=\"lang:html decode:true\">&lt;script type=\"text\/javascript\"&gt;\r\n    var ag_grid_quantity_discounts = {$grid_quantity_discounts|@json_encode};\r\n&lt;\/script&gt;\r\n<\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-11607 size-full\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2016\/08\/8_pr_comb.png\" alt=\"How to Add Product Combinations Involving the Use of Discount System on a Product Page in Prestashop\" width=\"380\" height=\"560\" title=\"Displaying Product Combinations With Discounts on a Product Page in Prestashop\"><br>\nFinally we have all necessary data in order to&nbsp;display &ldquo;<em>from quantity<\/em>&rdquo; discounts properly.<\/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=\"Displaying Product Combinations With Discounts on a Product Page in Prestashop\"><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\n","protected":false},"excerpt":{"rendered":"Our goal is to display available product&#160;combinations and their prices on a product page. For &#8230;","protected":false},"author":22,"featured_media":11608,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[15,520,523,522],"tags":[],"class_list":["post-11599","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-prestashop","category-prestashop-custom-development","category-prestashop-seo","category-prestashop-speed-optimization","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=\"Our goal is to display all product combinations and their prices on a product page. For example there is a discount system that is already set up in your store, and you want prices to be displayed in a proper way.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Mikhail Soiko\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.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-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#article\",\"name\":\"How to Add Product Combinations With Discounts on a Product Page in Prestashop | BelVG Blog\",\"headline\":\"Displaying Product Combinations With Discounts on a Product Page in Prestashop\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/mishell-soiko#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/08\\\/blog-discount-system.jpg\",\"width\":737,\"height\":200},\"datePublished\":\"2016-08-25T17:36:22+02:00\",\"dateModified\":\"2025-06-30T22:49:56+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#webpage\"},\"articleSection\":\"Prestashop, PrestaShop Custom Development, PrestaShop SEO, PrestaShop Speed Optimization, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.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-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#listItem\",\"name\":\"Displaying Product Combinations With Discounts on a Product Page in Prestashop\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#listItem\",\"position\":3,\"name\":\"Displaying Product Combinations With Discounts on a Product Page in Prestashop\",\"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\\\/mishell-soiko#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/mishell-soiko\",\"name\":\"Mikhail Soiko\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1603d45135617d53877de2d9ffe112a497830fa8a92f16dd13b43069b1e53482?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Mikhail Soiko\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html\",\"name\":\"How to Add Product Combinations With Discounts on a Product Page in Prestashop | BelVG Blog\",\"description\":\"Our goal is to display all product combinations and their prices on a product page. For example there is a discount system that is already set up in your store, and you want prices to be displayed in a proper way.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/mishell-soiko#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/mishell-soiko#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/08\\\/blog-discount-system.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html\\\/#mainImage\",\"width\":737,\"height\":200},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#mainImage\"},\"datePublished\":\"2016-08-25T17:36:22+02:00\",\"dateModified\":\"2025-06-30T22:49:56+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":"How to Add Product Combinations With Discounts on a Product Page in Prestashop | BelVG Blog","description":"Our goal is to display all product combinations and their prices on a product page. For example there is a discount system that is already set up in your store, and you want prices to be displayed in a proper way.","canonical_url":"https:\/\/belvg.com\/blog\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.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-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#article","name":"How to Add Product Combinations With Discounts on a Product Page in Prestashop | BelVG Blog","headline":"Displaying Product Combinations With Discounts on a Product Page in Prestashop","author":{"@id":"https:\/\/belvg.com\/blog\/author\/mishell-soiko#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2016\/08\/blog-discount-system.jpg","width":737,"height":200},"datePublished":"2016-08-25T17:36:22+02:00","dateModified":"2025-06-30T22:49:56+02:00","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#webpage"},"articleSection":"Prestashop, PrestaShop Custom Development, PrestaShop SEO, PrestaShop Speed Optimization, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.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-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#listItem","name":"Displaying Product Combinations With Discounts on a Product Page in Prestashop"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#listItem","position":3,"name":"Displaying Product Combinations With Discounts on a Product Page in Prestashop","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\/mishell-soiko#author","url":"https:\/\/belvg.com\/blog\/author\/mishell-soiko","name":"Mikhail Soiko","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/1603d45135617d53877de2d9ffe112a497830fa8a92f16dd13b43069b1e53482?s=96&d=mm&r=g","width":96,"height":96,"caption":"Mikhail Soiko"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#webpage","url":"https:\/\/belvg.com\/blog\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html","name":"How to Add Product Combinations With Discounts on a Product Page in Prestashop | BelVG Blog","description":"Our goal is to display all product combinations and their prices on a product page. For example there is a discount system that is already set up in your store, and you want prices to be displayed in a proper way.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/mishell-soiko#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/mishell-soiko#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2016\/08\/blog-discount-system.jpg","@id":"https:\/\/belvg.com\/blog\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html\/#mainImage","width":737,"height":200},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html#mainImage"},"datePublished":"2016-08-25T17:36:22+02:00","dateModified":"2025-06-30T22:49:56+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":"11599","title":"How to Add Product Combinations With Discounts on a Product Page in Prestashop | #site_title","description":"Our goal is to display all product combinations and their prices on a product page. For example there is a discount system that is already set up in your store, and you want prices to be displayed in a proper way.","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:28","updated":"2026-11-03 18:37:28"},"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\tDisplaying Product Combinations With Discounts on a Product Page in Prestashop\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":"Displaying Product Combinations With Discounts on a Product Page in Prestashop","link":"https:\/\/belvg.com\/blog\/how-to-add-product-combinations-involving-the-use-of-discount-system-on-a-product-page-in-prestashop.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/11599","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\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=11599"}],"version-history":[{"count":3,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/11599\/revisions"}],"predecessor-version":[{"id":29688,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/11599\/revisions\/29688"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/11608"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=11599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=11599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=11599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}