![]() |
How To Display Price Including and Excluding VAT
Hi All
I want my prices to show both including and excluding VAT, but don't want the calculation. I've added this code at the end of my taxed_price.tpl file:- Code:
I works how i wanted but it shows net price, not taxed price. Am I trying to pass the wrong Variable? Is there a list anywhere of what variables are available in X-Cart to play with? Any help would be very much appreciated Thanks Dave |
|
I've altered the debug console to show variables.
I'm sure this will be very usefull, when i know smarty a little better. My featured product array is as follows:- Code:
Array (3) As you can see above I've got 2 variables both named taxed_price. The code I've typed is obviously referencing the first one. How do I reference the second? I thought altering this:- Code:
{include file="currency.tpl" value=$products[product].taxed_price} Code:
{include file="currency.tpl" value=$products[product].taxes.taxed_price} Any Ideas???? Thanks Dave |
I've now got this displaying the correct info everywhere except the product detail itself.
It works on featured products, in my category pages and even the shopping cart, just not the products detail page, which shows the price including VAT as 0. I really dont understand it! Someone please help! My final taxed_price.tpl looks as follows:- Code:
{* $Id: taxed_price.tpl,v 1.7.2.1 2005/07/27 09:50:23 max Exp $ *} To see for yourself the URL is http://www.lasafety.co.uk/xcart |
Tax - VAT 17.5%
Hi,
Checked your site, looks like everything is working. I am trying to display the taxed price only, how would I go about doing that? Zaid www.nikkoe.com |
Easier way to display TAX in product.
1. Login as admin
2. Open General settings page and activate "When a customer isn't logged in, it is presumed that he is from the default country" option. After you have activated the option all anonymous users (before they log in order enter registration information) will see prices for UK location (with taxes value). 3. Open the VAT 17.5 tax page at http://nikkoe.com/xcart/admin/taxes.php?taxid=1, tick "Display product price including tax" option and save the changes. Now you customer will see prices including tax rate. |
Re: How To Display Price Including and Excluding VAT
Hi,
Its a very old post but i will be grateful if any one could reply to this vat issue i have copied all the code now the vat is showing properly on product list page but it shows 00.00 in product details page. Any help PLEASE Thanks |
Re: How To Display Price Including and Excluding VAT
An oldish thread, but maybe useful to some people.
If you wish to do the same thing on the product page - this is one answer. Duplicate the taxed_price.tpl template that is shown earlier, e.g call it taxed_price_p.tpl and in the else line, change the value to this: value=$product.taxes then edit the product.tpl file and call this new file, instead of the original. |
Re: How To Display Price Including and Excluding VAT
v4.5.2 - I am trying to display product prices as follows:
Ex VAT Price (larger font) Vat amount Inc VAT Price I know this is an old thread but any assistance appreciated Regards |
Re: How To Display Price Including and Excluding VAT
Try using:
{currency value=$product.price}, {currency value=$product.taxed_price} |
All times are GMT -8. The time now is 05:41 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.