eightmedia Posted April 5, 2013 Share Posted April 5, 2013 Running version 1.5.3.1 I want to be able to display pricing with BOTH tax and excluding tax. Can someone help? I've seen some advice for earlier versions however nothing for 1.5.x.x Any help would be appreciated. Thanks Link to comment Share on other sites More sharing options...
vekia Posted April 7, 2013 Share Posted April 7, 2013 where exactly you want to display it? On product page? Product list? maybe smoe modules like homefeatured? Link to comment Share on other sites More sharing options...
eightmedia Posted April 8, 2013 Author Share Posted April 8, 2013 Ideally I need this displayed on all product pricing (Category Page / Product Page and Home Featured) Link to comment Share on other sites More sharing options...
vekia Posted April 8, 2013 Share Posted April 8, 2013 so in this case you need to modify template files for those sections. By that i mean that you have to add tax smarty variable into the: - modules/homefeatured/homefeatured.tpl - themes/your_theme/product.tpl - themes/your_theme/product-list.tpl of course you must remember that many other modules also showing prices ... all you need is to add smarty tax value variable, which usually looks like: for product.tpl file: tax excl: {convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)} tax incl: {convertPrice price=$productPrice} for other template files it usually looks the same, but all depends on variables... you can try. more information about that you can read here: http://www.prestashop.com/forums/topic/128287-display-product-price-with-and-without-tax/ 1 Link to comment Share on other sites More sharing options...
eightmedia Posted April 8, 2013 Author Share Posted April 8, 2013 Thanks for this - I have looked at the guide you linked too and if I follow instructions I still cannot get this to work. When I upload the file with changed code, the product page for example will not load and only shows a blank page? Any help would be great. Link to comment Share on other sites More sharing options...
vekia Posted April 8, 2013 Share Posted April 8, 2013 Thanks for this - I have looked at the guide you linked too and if I follow instructions I still cannot get this to work. When I upload the file with changed code, the product page for example will not load and only shows a blank page? Any help would be great. it all depends on where you insert this code, for example - do you use variables that i pasted above for product.tpl file? in other tpl files it may not work properly, because you have to use a bit different code Link to comment Share on other sites More sharing options...
eightmedia Posted April 8, 2013 Author Share Posted April 8, 2013 Vekia - I'm not sure where exactly to add that code in product.tpl ? Link to comment Share on other sites More sharing options...
vekia Posted April 8, 2013 Share Posted April 8, 2013 tax excl: {convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)} tax incl: {convertPrice price=$productPrice} this code is for product.tpl template file, you can add this variables / code anywhere you want in product.tpl file Link to comment Share on other sites More sharing options...
ukbaz Posted June 30, 2015 Share Posted June 30, 2015 I run a mostly B2B site and quote prices EX VAT - now Google Shopping ads are saying I must quote both prices on page. How Can I get both inc and ex Tax prices to display on the product page in v1.6? Link to comment Share on other sites More sharing options...
vekia Posted June 30, 2015 Share Posted June 30, 2015 with tax:{convertPrice price=$product->getPrice(true, $smarty.const.NULL)} without tax:{convertPrice price=$product->getPrice(false, $smarty.const.NULL)} Link to comment Share on other sites More sharing options...
ukbaz Posted July 1, 2015 Share Posted July 1, 2015 Hi Vekia Thanks - got that and it works fine when added to price box code. One issue remains with products that have combinations with price difference. If selecting from drop down an option that has a different price then... The Ex Tax Price changes, (all prices are set ex tax) however the without tax price (using {convertPrice price=$product->getPrice(true, $smarty.const.NULL)} )remains the same. Is there a fix for this so that inc tax will take in to account price difference? Link to comment Share on other sites More sharing options...
webadherhone Posted July 27, 2015 Share Posted July 27, 2015 hii everyone, i want to display the unit price tax excluded, but it seems that prestashop always displays it with taxes. I'm not the only one to have this problem and i don't find the answer to that question. Is Vekia's solution can work with $unit_price variable ? 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