View Single Post
  #1  
Old 10-08-2006, 09:36 PM
 
nft nft is offline
 

Advanced Member
  
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 52
 

Default Tax Selected by Default for Provider

Hi All,
I have been spending a substantial amout of time trying to figure out how to have the type of tax selected by default when a provider adds a new product. For Australia I am using GST which is pretty much the same as the VAT tax in the Uk.

Here is the section of product_details.tpl that I have been attempting to modify:

<TR>
{if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[free_tax]"></TD>{/if}
<TD class="FormButton" nowrap>{$lng.lbl_tax_exempt}</TD>
<TD class="ProductDetails">
<SELECT name="free_tax"{if $taxes} onchange="javascript:ChangeTaxesBoxStatus();"{/if}>
<OPTION value='N' {if ($product.free_tax eq 'N')} selected {/if}>{$lng.lbl_no}</OPTION>
<OPTION value='Y' {if ($product.free_tax eq 'Y')} selected {/if}>{$lng.lbl_yes}</OPTION>
</SELECT>
</TD>
</TR>

{if $taxes}
<TR>
{if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[taxes]"></TD>{/if}
<TD class="FormButton" nowrap>{$lng.lbl_apply_taxes}</TD>
<TD>
<SELECT name="taxes[]" multiple{if $product.free_tax eq "Y"} disabled{/if}>


{section name=tax loop=$taxes}
<OPTION value="{$taxes[tax].taxid}"{if $taxes[tax].selected gt 0 and $product.productid ne ""} selected {/if}>{$taxes[tax].tax_name} </OPTION>


{/section}
</SELECT>

If anyone can shed some light on this as to how I can have GST selected as default it would be much appreciated.

James
__________________
X-Cart Pro 4.1.9
FreeBSD
Apache
MySQL 5
PHP 4.4.8
Reply With Quote