| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to Display inc VAT & Ex VAT Pricing, Plz Help! | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Hi all
I am totally baffled and lost at working out how I can make X-Cart display all prices with an inc and EX VAT price. I see loads of people who have done it, so I think it must be easy, but I cant do it. ![]() I have searched for 2 days on the forums trying to find a thread with this on but cant. Could someone please please help me find out how to do it? All I need is for the page to display something like this: Price: бё30.00 ex VAT бё35.25 inc VAT Thanks VERY much in advance!
__________________
XC 4.2 inc (unofficial) patch release. |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() Anyone?
![]()
__________________
XC 4.2 inc (unofficial) patch release. |
|||||||||
#3
|
|||||||
|
|||||||
![]() One way to do this would be to use a Math equation in the Smarty template:
Code:
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 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Hi
Thanks very much. It is the headstart we need. Right now we have had to hard code it as the same display for the normal price *1.175 Obviously the hard coding of such is not good for the site, so I want to find the correct way to do it. I have to say I thought I would be flamed with loads of replies saying how easy it was and how I should search better, as sooo many sites have this working already. But I guess it is not as common or easy as I thought. Many thanks.
__________________
XC 4.2 inc (unofficial) patch release. |
|||||||||
#5
|
|||||||
|
|||||||
![]() The code in my previous post pulls the VAT value from each product in the $products array, so you could have seperate VAT values for each product.
i think the later version have a central VAT figure that you can reference. About you getting flamed, I dont think I have ever seen anyone get flamed on here for asking a question, that is what's great about this forum. Also, the search isn't that great to be honest, most of what I search for either pulls back 2000+ results or about 5 ![]()
__________________
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 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Cheers mate, appreciate it again.
Altho I appear to have found the flaming sessions you have managed to avoid in that case. ![]() I put on my asbestos suit just in case. ![]()
__________________
XC 4.2 inc (unofficial) patch release. |
|||||||||
#7
|
|||||||
|
|||||||
![]() hahahaha, good luck
![]()
__________________
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 |
|||||||
#8
|
|||||||
|
|||||||
![]() Okay, I'm getting stuck on this too....
Which template do you alter to achieve the item being listed with both the VAT inclusive and NON inclusive across the product page and listing pages. Many thanks in advance for this...
__________________
Cheers Stuart ----------------------- X-Cart Version Gold 5.4.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|