Jump to content

Change reduction_percent_display on the product.tpl to static value


Recommended Posts

Hello,

I have small issue with product.tpl

When i do add specific price for example -50% on the product page i can see exactly -50%

But i would like to remove this dynamic value to static one, what i made:

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

replaced to this one 

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

									<span id="reduction_percent_display">

										RRP:

									</span>

								{/strip}</p>

But it's still shows -50% 

If i remove specific price, in browsers source code it shows RRP, but if i switch it on, then it shows -50%

 

What else should i do? 

Link to comment
Share on other sites

  • 2 years later...

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