teralite Posted January 16, 2015 Share Posted January 16, 2015 Hi all! Im trying to display a text in productlist that shows if the price is with or without taxes but i cant get it to work properly. I need to find the $value to use for the proper display. Im trying to do this in category.tpl and using 1.5.3.1 The problem i get is that it has to change if you are logged in to your account that could display the prices without tax, otherwise it should be with tax. {if $products} <div class="content_sortPagiBar"> <div class="sortPagiBar clearfix"> {include file="./product-sort.tpl"} {include file="./nbr-product-page.tpl"} <!--Text med moms--> {if $something here that show price ex tax == 1} <span id=kategori_exmoms>Alla priser visas exkl. moms</span> {elseif $something here that show price with tax == 0} <span id=kategori_inkmoms>Alla priser visas inkl. moms</span> {/if} </div> </div> {include file="./product-list.tpl" products=$products} <div class="content_sortPagiBar onetwo"> <div class="sortPagiBar clearfix hideme"> {include file="./nbr-product-page.tpl"} </div> {include file="./pagination.tpl"} </div> {/if} {elseif $category->id} <p class="warning">{l s='This category is currently unavailable.'}</p> {/if} {/if} Link to comment Share on other sites More sharing options...
vekia Posted January 16, 2015 Share Posted January 16, 2015 prices with or without taxes depends on user group in your case also, am i right? Link to comment Share on other sites More sharing options...
teralite Posted January 16, 2015 Author Share Posted January 16, 2015 yes that is correct. Link to comment Share on other sites More sharing options...
teralite Posted January 19, 2015 Author Share Posted January 19, 2015 Anyone that can help me with this? Link to comment Share on other sites More sharing options...
Krystian Podemski Posted January 19, 2015 Share Posted January 19, 2015 (edited) Try to paste this code in category.tpl: {$priceDisplay|@var_dump} this code is assigned in FrontController.php and has information about price displaying method Edited January 19, 2015 by Krystian Podemski (see edit history) 1 Link to comment Share on other sites More sharing options...
teralite Posted January 19, 2015 Author Share Posted January 19, 2015 Thanks, that worked good =) 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