Jump to content

Prestashop 1.6.1.17 Discount show's negative values


Sergio

Recommended Posts

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.

 

demo1.jpg

demo2.jpg

 

[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.

 

 

newdemo1.jpg

newdemo2.jpg

Edited by Sergio (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...
  • 2 years later...

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...