View Single Post
  #3  
Old 11-26-2004, 08:30 AM
 
Jonny Jonny is offline
 

Advanced Member
  
Join Date: Sep 2002
Posts: 67
 

Default

One way to do this would be to use a Math equation in the Smarty template:

Code:
{math equation="price*((100+vatamount)/100)" price=$products[product].price vatamount=$products[product].vat format="%.2f" assign="incvat"}

the 'vatamount' needs to be the percentage of vat i.e 17.5

incvat variable would then include your vat inclusive price.

Please note that this is taken from our version of XCart which is 3.2.1, so this may differ in later versions.

But it gives you an idea.
__________________
John Bloomfield
Web Development
Overclock.co.uk [X-Cart v3.2.1]
[V4.0.14 In Dev]
http://www.overclock.co.uk
jbloomfield@overclock.co.uk
Reply With Quote