manuel1972 Posted September 22, 2010 Share Posted September 22, 2010 Hi,My shop works on a 'tax excl. basis. Almost everywhere this is mentioned,i.e. prices are without VAT, TAX excl., etc... .Only now when adding an accessory product to a product, only the price of that accessory is mentioned without anything added.I tried to add in product.tpl: {l s='Tax exc.'} but it didn't work.This is the piece of code of product.tpl: {displayWtPrice p=$accessory.price} {l s='Tax exc.'} {l s='View'} {l s='Add to cart'} Maybe some of you had the same problem? Link to comment Share on other sites More sharing options...
bambi Posted September 22, 2010 Share Posted September 22, 2010 I have noticed that some time ago and agree that it would be consistent if ex. tax would be mention in the accessory display. Link to comment Share on other sites More sharing options...
rocky Posted September 23, 2010 Share Posted September 23, 2010 Try the following: {displayWtPrice p=$accessory.price} {l s='Tax exc.'} {l s='View'} {l s='Add to cart'} Link to comment Share on other sites More sharing options...
manuel1972 Posted September 23, 2010 Author Share Posted September 23, 2010 Hi Rocky,Thanks for helping me out!However, I replaced the code but it didn't do the job..Even with the code I put above the problem is that it displays in the accessories page:' Tax exc.' and doesn't take the translation as put in the nl.php file.In fact with the main product, {l s='Tax exc.'}, is displayed as: 'BTW excl.'; which is the correct translation as put in the php.nl file. Link to comment Share on other sites More sharing options...
rocky Posted September 23, 2010 Share Posted September 23, 2010 The text should be translatable, since it uses the {l s} syntax. Go to Tools > Translations > Front Office translations, then scroll down to the "prestashop - product" section. Can you post a screenshot of this section? Link to comment Share on other sites More sharing options...
manuel1972 Posted September 23, 2010 Author Share Posted September 23, 2010 I checked the file but translation is there.I put a screeshot in the attachment.Strange is that it works in the regular product-list.tplI guess it works with the same {l s= }. Link to comment Share on other sites More sharing options...
manuel1972 Posted September 25, 2010 Author Share Posted September 25, 2010 I found the problem!Apparently the {l s} syntax for VAT is not the same in product and product-list.So if you add the syntax you should take the one from product.tpl, which is {l s=tax excl.} and not the one from product-list.tpl ( {i s=Tax exc.}.If you switch both it will not work. Link to comment Share on other sites More sharing options...
bambi Posted September 25, 2010 Share Posted September 25, 2010 Hi Manuel,Can you please summerise exactly what code and on whice files I should change to get the excl. VAT displayed?ThanXDan Link to comment Share on other sites More sharing options...
manuel1972 Posted September 25, 2010 Author Share Posted September 25, 2010 Can you please summerise exactly what code and on whice files I should change to get the excl. VAT displayed? First thing is that you should check in the Back Office under Tools/Translations/Front-Office/Product section, if the translation for 'tax excl.' is filled in, if not fill in a translation and save. Also check if it says 'tax excl' or something else i.e. Tax exc. ,etc... . This text should be entered in the syntax. In my case it is as below.You should add {l s='tax excl.'} or other (see above) in the product.tpl in the accessories zone. It should look like this: {displayWtPrice p=$accessory.price} {l s='tax excl.'} {l s='View'} {l s='Add to cart'} 1 Link to comment Share on other sites More sharing options...
bambi Posted September 25, 2010 Share Posted September 25, 2010 ThanX a lot Rocky & Manuel Link to comment Share on other sites More sharing options...
Gabor@ Posted January 14, 2013 Share Posted January 14, 2013 Should this work with 1.5? I have some problems. 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