Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Show VAT Exempt

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-02-2008, 04:10 AM
 
Mistic Mistic is offline
 

Newbie
  
Join Date: May 2005
Posts: 6
 

Default Show VAT Exempt

Hi, I have tried to edit the products.tpl to show '(VAT Exempt)' on items that don't have VAT. I tried changing this

{if $products[product].taxes}
<br />
<div class="PListTaxBox">{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}</div>
{/if}

to

{if $products[product].taxes}
<br />
<div class="PListTaxBox">{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}</div>
{else}
(VAT Exempt)
{/if}

it didn't work, I tried a couple of other things but decided I didn't understand exactly what is going on.

Any help appreciated.
__________________
X-Cart 4.1.8
Reply With Quote
  #2  
Old 12-02-2008, 05:28 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Show VAT Exempt

Quote:
Originally Posted by Mistic
Hi, I have tried to edit the products.tpl to show '(VAT Exempt)' on items that don't have VAT. I tried changing this

{if $products[product].taxes}
<br />
<div class="PListTaxBox">{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}</div>
{/if}

to

{if $products[product].taxes}
<br />
<div class="PListTaxBox">{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}</div>
{else}
(VAT Exempt)
{/if}

it didn't work, I tried a couple of other things but decided I didn't understand exactly what is going on.

Any help appreciated.

Try used field "taxed_price"
Reply With Quote
  #3  
Old 12-05-2008, 09:03 AM
 
Mistic Mistic is offline
 

Newbie
  
Join Date: May 2005
Posts: 6
 

Default Re: Show VAT Exempt

Hi Yurij, thanks for the reply, I tried this

{if $products[product].taxes}
<br />
<div class="PListTaxBox">{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}</div>
{if $products[product].taxed_price eq "0"}
(VAT Exempt)
{/if}
{/if}

but it did not show anything, I tried a few other variations but none would show, am I getting it wrong?
__________________
X-Cart 4.1.8
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:48 AM.

   

 
X-Cart forums © 2001-2020