digilinkmedia Posted February 12, 2019 Share Posted February 12, 2019 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 More sharing options...
JBW Posted February 13, 2019 Share Posted February 13, 2019 Clear your cache/recompile smarty files Link to comment Share on other sites More sharing options...
digilinkmedia Posted February 13, 2019 Author Share Posted February 13, 2019 3 hours ago, JBW said: Clear your cache/recompile smarty files Thanks for advice, but it's done and still the same. For a second it shows RRP, then coming back to numbers Link to comment Share on other sites More sharing options...
JBW Posted February 13, 2019 Share Posted February 13, 2019 You should give it a different ID - there is some javascript in place hiding/showing this ID in product.js 1 Link to comment Share on other sites More sharing options...
digilinkmedia Posted February 14, 2019 Author Share Posted February 14, 2019 19 hours ago, JBW said: You should give it a different ID - there is some javascript in place hiding/showing this ID in product.js awesome, sort it! Thank you very much for help Link to comment Share on other sites More sharing options...
NoslenZuir Posted February 18, 2021 Share Posted February 18, 2021 (edited) Hello there. I have a similar problem. Which ID did you change and where? I guess it affects other files. Edited February 18, 2021 by NoslenZuir (see edit history) 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