Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Tax Selected by Default for Provider

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 10-12-2006, 12:29 AM
  Sutekh's Avatar 
Sutekh Sutekh is offline
 

Advanced Member
  
Join Date: Oct 2006
Posts: 41
 

Default 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.
__________________
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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:39 AM.

   

 
X-Cart forums © 2001-2020