mitzayapa Posted August 24, 2017 Share Posted August 24, 2017 (edited) Hey guys , I wonder , is there any easy way to check if somebody sees the price with tax applied or no (product.tpl)? I mean , - if clients sees the price with TAX -then to enable a div for example - if clients sees the price without TAX - hide div Regards , Edited August 24, 2017 by mitzayapa (see edit history) Link to comment Share on other sites More sharing options...
Scully Posted August 24, 2017 Share Posted August 24, 2017 (edited) Log in as client and see how the front end display is working. Create a new account which corresponds to the one you want to test. Or you can save the hashed password from the database table, change the password from the backoffice, make your tests and set the password back to the initially saved value. Edited August 24, 2017 by Scully (see edit history) Link to comment Share on other sites More sharing options...
mitzayapa Posted August 24, 2017 Author Share Posted August 24, 2017 hmm .. i don't get it ; need something like : {if $prices_are_displayed_with_tax_included == 1} <div> yes </div> {if} Is there any variable for : $prices_are_displayed_with_tax_included ? Link to comment Share on other sites More sharing options...
Scully Posted August 24, 2017 Share Posted August 24, 2017 (edited) Your initial question was how to check what a users sees and not how to change tax display, which is normally controlled by the user group settings. If you want to change the normal behavior, just open your product.tpl and you see all variables used there. Edited August 24, 2017 by Scully (see edit history) Link to comment Share on other sites More sharing options...
mitzayapa Posted August 24, 2017 Author Share Posted August 24, 2017 I think i have it , $priceDisplay is the variable , testing it , it seems it can be 0 (tax included) or 1 (tax excluded) so i can do : {if $priceDisplay == 0} <div> hello </div> {/if} And would solve my problem. Thanks for heeelping. Link to comment Share on other sites More sharing options...
Scully Posted August 24, 2017 Share Posted August 24, 2017 Your welcome - and the code looks good. Add 'SOLVED' to the topic title if this works. 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