Sergio Posted January 7, 2018 Share Posted January 7, 2018 (edited) Hi there, I am working with prestashop since version 1.4, and now in version 1.6.1.17, i've noticed that when i specify a quantity discount to a product, then on the product front office, when i reach the quantity of discount the price that it shows is a negative value. I attach two pics, one before reach the quantity discount, and the other when i reach the quantity discount. I already followed some tutorials on discount prices here in the forum, and nothing changes, even with clear cache and recompile function. Then i got back to original files. Also, i'm using default theme from prestashop 1.6.1.17. I would appreciate any help. [EDIT] I have changed the attribute of discounts to percentage and now, the value is "0" when reached the quantity discount. Pics attached before and after reach discount quantity. Edited January 7, 2018 by Sergio (see edit history) Link to comment Share on other sites More sharing options...
reza117 Posted February 5, 2018 Share Posted February 5, 2018 Hi I found same issue Any one can help regarding this issue? Link to comment Share on other sites More sharing options...
hakeryk2 Posted February 8, 2018 Share Posted February 8, 2018 It was fixed in 1.6.1.18 so try to update or change those lines manually https://github.com/PrestaShop/PrestaShop/pull/8538/files Link to comment Share on other sites More sharing options...
bedigital Posted April 21, 2020 Share Posted April 21, 2020 In product.tpl change. <tr class="quantityDiscount_{$quantity_discount.id_product_attribute}" data-real-discount-value="{convertPrice price = $realDiscountPrice}" data-discount-type="{$quantity_discount.reduction_type}" data-discount="{$quantity_discount.real_value|floatval}" data-discount-quantity="{$quantity_discount.quantity|intval}"> to <tr class="quantityDiscount_{$quantity_discount.id_product_attribute}" data-real-discount-value="{convertPrice price=$productPrice-$quantity_discount.real_value|floatval}" data-discount-type="{$quantity_discount.reduction_type}" data-discount="{$quantity_discount.real_value|floatval}" data-discount-quantity="{$quantity_discount.quantity|intval}"> Link to comment Share on other sites More sharing options...
Guest Posted April 21, 2020 Share Posted April 21, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
bedigital Posted April 22, 2020 Share Posted April 22, 2020 On 4/21/2020 at 12:45 AM, Guest said: My module works with both percentage and reduced cost and reduced cost variants 😉 It only works with the default template and original tpl files. Demo 1: https://e-apps.eu/test/ps-16/en/blouses/2-blouse.html#/1-size-s/11-color-black Demo 2: https://e-apps.eu/test/ps-16/en/tshirts/1-faded-short-sleeves-tshirt.html Demo 3: https://e-apps.eu/test/ps-16/en/tshirts/1-faded-short-sleeves-tshirt.html#/13-color-orange/2-size-m What is the module link? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now