View Single Post
  #4  
Old 05-18-2006, 07:09 AM
 
sank sank is offline
 

Advanced Member
  
Join Date: May 2006
Location: West Midlands
Posts: 34
 

Default

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 $ *} {if $taxes} {foreach key=tax_name item=tax from=$taxes} {if $tax.tax_value gt 0} {if $tax.display_including_tax eq "Y"} {if $display_info eq ""}{assign var="display_info" value=$tax.display_info}{/if} {$lng.lbl_including_tax|substitute:"tax":$tax.tax_display_name}{if $display_info eq "V" or ($display_info eq "A" and $tax.rate_type eq "$")} {if $is_subtax ne 'Y'}<SPAN id="tax_{$tax.taxid}">{/if}{include file="currency.tpl" value=$tax.tax_value}{if $is_subtax ne 'Y'}</SPAN>{/if}{elseif $display_info eq "R"} {if $tax.rate_type eq "$"}{include file="currency.tpl" value=$tax.rate_value}{else}{$tax.rate_value}%{/if}{elseif $display_info eq "A"} {if $tax.rate_type eq "%"}{$tax.rate_value}% ({if $is_subtax ne 'Y'}<SPAN id="tax_{$tax.taxid}">{/if}{include file="currency.tpl" value=$tax.tax_value}{if $is_subtax ne 'Y'}</SPAN>{/if}){/if}{/if} {else}{include file="currency.tpl" value=$products[product].taxes.VAT17_5.taxed_price}{$lng.lbl_including_tax|substitute:"tax":$tax.tax_display_name} {/if} {/if} {/foreach} {/if}

To see for yourself the URL is http://www.lasafety.co.uk/xcart
__________________
X-Cart Gold Version 4.1.9

www.fredsbedshed.co.uk
Reply With Quote