Jump to content

SOLVED - Check if tax rule is applied to client


mitzayapa

Recommended Posts

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 by mitzayapa (see edit history)
Link to comment
Share on other sites

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 by Scully (see edit history)
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...