Jump to content

Error in updating data in product.tpl


fibo

Recommended Posts

Hi!

I've noted an issue in Prestashop 1.6.1.14.

I've created a rule so that, purchasing a quantity of 3 items, you got a discount of 10%.
The problem is in the product page, because when you increase the quantity and you reach the quantity that grants you the discount, the price is updated to 0€.
 

<p id="reduction_percent" {if $productPriceWithoutReduction <= 0 || !$product->specificPrice || $product >specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}>
  {strip}
   <span id="reduction_percent_display">
     {if $product->specificPrice && $product->specificPrice.reduction_type == 'percentage'}-
     {$product->specificPrice.reduction*100}%{/if}
   </span>
  {/strip}
</p>


It seems to me that the code that control the update of data in product.tpl is correct.

Any advice of what I can try?

Thanks

seconda.png

prima.png

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