AndersUndSeim Posted June 3, 2016 Share Posted June 3, 2016 Hello! we're having a issue with PrestaShop (1.6.1.4) We want to display the Produkt Price without Tax and with Tax. In product.tpl we have that code: <span id="pretaxe_price"> <span id="pretaxe_price_display" itemprop="price">{convertPrice price=$product->getPrice(true, $smarty.const.NULL)}</span> {l s='tax incl.'} </span> That Works fine and it Shows both Prices. But when we change the Product Variation, only the Price wthout Tax changes. In product.js we added: $('#pretaxe_price_display').text(formatCurrency(basePriceWithTax * currencyRate, currencyFormat, currencySign, currencyBlank)); But "basePriceWithTax" is not in the JS. only "basePriceWithoutTax". Can someone help us what we have to add to the product.js to get it work? Thx a lot BR Link to comment Share on other sites More sharing options...
AndersUndSeim Posted June 6, 2016 Author Share Posted June 6, 2016 Hi, no one with an Idea? Also didn't find the solution with google. BR Link to comment Share on other sites More sharing options...
AndersUndSeim Posted June 8, 2016 Author Share Posted June 8, 2016 Hi, @mod Hope thats the right place, for that question. BR Link to comment Share on other sites More sharing options...
AndersUndSeim Posted June 16, 2016 Author Share Posted June 16, 2016 Solved it... $('#pretaxe_price_display').text(formatCurrency(priceWithDiscountsDisplay * (taxRate/100 + 1) * currencyRate, currencyFormat, currencySign, currencyBlank)); 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