pel024 Posted April 9, 2012 Share Posted April 9, 2012 Hi all, I have tax disabled under payment>tax and tax is set to "no tax" under shipping>carriers, yet when a customer checks out as guest under opc, the carrier prices are displayed £xx.xx tax exc. I've looked in order-carrier.tpl and commented out the following code... {if $use_taxes}{if $priceDisplay == 1} {*{l s='(tax excl.)'}{else} {l s='(tax incl.)'}*}{/if}{/if} .. but it doesn't go. Does anyone know how to remove this one and for all? Cheers Link to comment Share on other sites More sharing options...
phrasespot Posted April 12, 2012 Share Posted April 12, 2012 {if $use_taxes}{if $priceDisplay == 1} {*{l s='(tax excl.)'}{else} {l s='(tax incl.)'}*}{/if}{/if} {*if $use_taxes}{if $priceDisplay == 1} [spam-filter]l s='(tax excl.)'}{else} {l s='(tax incl.)'[spam-filter]{/if}{/if*} May be a better idea and make sure it is not a caching effect Link to comment Share on other sites More sharing options...
pel024 Posted April 13, 2012 Author Share Posted April 13, 2012 Hi phrasespot - I made the changes you suggested but "tax excl." still appears. See attached screenshot. Also, I've noticed I don't have an index.php in /tools/smarty/compile/ or /themes/your_theme/cache/ (I think I may have deleted them in the past), could this cause any problems? Cheers Link to comment Share on other sites More sharing options...
phrasespot Posted April 13, 2012 Share Posted April 13, 2012 Hi phrasespot - I made the changes you suggested but "tax excl." still appears. See attached screenshot. Note that the snippet you posted appears in two different places in the template. Make sure you are commenting out in both places. Also, I've noticed I don't have an index.php in /tools/smarty/compile/ or /themes/your_theme/cache/ (I think I may have deleted them in the past), could this cause any problems? No, it does not matter. Just copy an index.php from any other directory to the directories that don't have it. They are all the same and there to act as a directory index file in case the server is setup to list the directory content in the absence of an index file and a redirector to home page if a directory is requested. Link to comment Share on other sites More sharing options...
pel024 Posted April 14, 2012 Author Share Posted April 14, 2012 When I comment out the second snippet of code the entire right column and footer bizarrely disappear! What I've noticed is that the carrier price is displayed correctly (no reference to tax) when you land on the checkout page, but adds the tax info when the form is completed and saved. Not sure if this sheds any more light on it. I don't know why I'm having this problem - surely when tax is disabled there should be no references to tax at all? Thanks for all your help so far. Link to comment Share on other sites More sharing options...
phrasespot Posted April 14, 2012 Share Posted April 14, 2012 When I comment out the second snippet of code the entire right column and footer bizarrely disappear! This is possibly a Smarty error due to faulty commenting. Make sure to leave the single bracket at the end of second occurrence alone and watch there are no spaces between curlies and asterisks. This image shows how I commented them out. I don't know why I'm having this problem - surely when tax is disabled there should be no references to tax at all? True, true. Don't go there :/ Link to comment Share on other sites More sharing options...
pel024 Posted April 14, 2012 Author Share Posted April 14, 2012 I've commented out the code exactly as you posted (attached but converted to .txt as it wouldn't let me upload the .tpl for some reason) and deleted the cache god knows how many times but it just wont go away. I may need to give up as I feel my life slowly slipping away! order-carrier.txt Link to comment Share on other sites More sharing options...
phrasespot Posted April 14, 2012 Share Posted April 14, 2012 I may need to give up as I feel my life slowly slipping away! Not your fault. Locate the file /themes/your_theme/order-opc.tpl and assign blank strings to JS variables at the top of the file: From var txtWithTax = "{l s='(tax incl.)'}"; var txtWithoutTax = "{l s='(tax excl.)'}"; to var txtWithTax = ""; var txtWithoutTax = ""; Then next time you have a drink toast to PS way of tacking things on as an afterthought Link to comment Share on other sites More sharing options...
pel024 Posted April 14, 2012 Author Share Posted April 14, 2012 Hoorah, it works! Thanks so much. Now I can actually get on with trying to sell stuff!! Link to comment Share on other sites More sharing options...
adelaidejs Posted October 24, 2013 Share Posted October 24, 2013 I know this is marked solved, but i've done all that you said and the "tax excl" label still appears More ideas on this issue? Thank you. 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