natebc Posted July 5, 2016 Share Posted July 5, 2016 Hi, We used total import pro to upload our csv file. Are theme has (reduction percent display) when we upload the file the Specific prices rows that are blank will show up as 0%. Does any one here know how to eliminate or erase only the 0% but keep 5% and higher from reduction percent display? Website link Natebc Link to comment Share on other sites More sharing options...
musicmaster Posted July 5, 2016 Share Posted July 5, 2016 You have to go into your template (product.tpl) and change that location. As every theme can be programmed differently I can't say what will work for you. But in my template I see the following <span id="reduction_amount_display"> {if $product->specificPrice AND $product->specificPrice.reduction_type == 'amount' AND $product->specificPrice.reduction|intval !=0} -{convertPrice price=$productPriceWithoutReduction-$productPrice|floatval} {/if} </span> Link to comment Share on other sites More sharing options...
natebc Posted July 5, 2016 Author Share Posted July 5, 2016 You have to go into your template (product.tpl) and change that location. As every theme can be programmed differently I can't say what will work for you. But in my template I see the following <span id="reduction_amount_display"> {if $product->specificPrice AND $product->specificPrice.reduction_type == 'amount' AND $product->specificPrice.reduction|intval !=0} -{convertPrice price=$productPriceWithoutReduction-$productPrice|floatval} {/if} </span> Hi musicmaster, Yes we have found it in the same file(product.tpl) <span id="reduction_amount_display"> {if $product->specificPrice && $product->specificPrice.reduction_type == 'amount' && $product->specificPrice.reduction|floatval !=0} -{convertPrice price=$productPriceWithoutReduction|floatval-$productPrice|floatval} {/if} </span> But how do we get eliminate or erase only the 0%? Would you know the code we should use? Thanks 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