| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Tax Selected by Default for Provider | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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.
__________________
Regards, Scott. ![]() http://www.pocketselect.com using: X-Cart PRO 4.0.18 (modified) Linux, Apache 1.3, MySQL 4.1.22, PHP 4.4.7 |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|