X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Tax Selected by Default for Provider (https://forum.x-cart.com/showthread.php?t=25636)

nft 10-08-2006 09:36 PM

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

Sutekh 10-12-2006 12:29 AM

Re: Tax Selected by Default for Provider
 
We did this and removed this option client side for all providers. Now the server assigns GST to all products against an Australia GST Zone. My view is Xcarts native way of doing this is wrong as Providers dont decide how tax regimes do - countries do. Now any sale into Australia has the GST tax automatically calculated and ALL products created have GST tax assigned to them on server side.


All times are GMT -8. The time now is 07:46 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.