dirk.j.herrmann Posted May 13, 2016 Share Posted May 13, 2016 (edited) Hi everyone, I couldn't figure this one out and I have tried a lot but this is the problem. In Turkey, the "%" sign is in front of the number (%20), not after (20%) because it is also spoken before the number. Now, I am trying to move the "%" but it really doesn't work. Does anyone have an idea how to do it? Thx Dirk Edited August 11, 2016 by dirk.j.herrmann (see edit history) Link to comment Share on other sites More sharing options...
Teapot Creative Posted May 17, 2016 Share Posted May 17, 2016 Hi Have you imported the 'Localisation' pack for Turkey. Goto BO / Localisation / Localisation / Import Country (see screenshot) Hope this helps. NickC Link to comment Share on other sites More sharing options...
dirk.j.herrmann Posted May 17, 2016 Author Share Posted May 17, 2016 Yes I have and it doesn't change the position of the "%" sign... but thanks for the tip Link to comment Share on other sites More sharing options...
Teapot Creative Posted May 17, 2016 Share Posted May 17, 2016 Hi Where are you trying to achieve this? NickC Link to comment Share on other sites More sharing options...
dirk.j.herrmann Posted May 17, 2016 Author Share Posted May 17, 2016 I have attached a couple of pics where I need the % sign to be moved before the number; basically on all product related items. Thx Link to comment Share on other sites More sharing options...
Teapot Creative Posted May 17, 2016 Share Posted May 17, 2016 (edited) Hi If you look in the product.tpl you will find this code: {if $product->specificPrice && $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if} change it to: {if $product->specificPrice && $product->specificPrice.reduction_type == 'percentage'}-%{$product->specificPrice.reduction*100}{/if} You will see this code in product_list.tpl so move the % in the same way. Hope this helps NickC PS you may need to look for this code in the product.tpl too: {$quantity_discount.real_value|floatval}% and place % before the value. Edited May 17, 2016 by Teapot Creative (see edit history) Link to comment Share on other sites More sharing options...
dirk.j.herrmann Posted May 17, 2016 Author Share Posted May 17, 2016 ok thank you for your help. it works Link to comment Share on other sites More sharing options...
dirk.j.herrmann Posted May 17, 2016 Author Share Posted May 17, 2016 (edited) I just realized that it doesn't work with combination products, just for single ones. Do you know what I have to change for combination products? Edited May 17, 2016 by dirk.j.herrmann (see edit history) Link to comment Share on other sites More sharing options...
Teapot Creative Posted May 17, 2016 Share Posted May 17, 2016 Hi In Themes / js / product.js find (approx line: 900): $('#reduction_percent_display').html('-' + parseFloat(discountPercentage).toFixed(toFix) + '%'); change to: $('#reduction_percent_display').html('- %' + parseFloat(discountPercentage).toFixed(toFix)); Hope this helps.. NickC Link to comment Share on other sites More sharing options...
dirk.j.herrmann Posted May 18, 2016 Author Share Posted May 18, 2016 Thank you NickC !!! Great help !!! this topic is SOLVED !!! Link to comment Share on other sites More sharing options...
Teapot Creative Posted May 20, 2016 Share Posted May 20, 2016 Hi Brilliant, great to hear! Nick 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