View Single Post
  #14  
Old 03-04-2009, 01:51 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: make ~ free shipping and tax exempt "yes" by default?

Quote:
Originally Posted by Holub
You should modify /skin1/main/product_details.tpl

Find in this template (line about 281):

Code:
<option value='Y'{if $product.free_tax eq 'Y'} selected="selected"{/if}>{$lng.lbl_yes}</option>

and change it to

Code:
<option value='Y'{if $product.free_tax eq 'Y' || $product.productid eq ""} selected="selected"{/if}>{$lng.lbl_yes}</option>

This allow to assign free tax if new product being added.

Also with shipping, find line ( about 308 ):

Code:
<option value='Y'{if $product.free_shipping eq 'Y'} selected="selected"{/if}>{$lng.lbl_yes}</option>

and change it to

Code:
<option value='Y'{if $product.free_shipping eq 'Y' || $product.productid eq ""} selected="selected"{/if}>{$lng.lbl_yes}</option>

This allow to assign free shipping by default.

Thanks Holub for your fine modification of codes.But does this modification effects on already uploaded product on item card or necessary to save it again for individual product?
Please help me.
Thanks to all again.
__________________
4.6.1 Platinum


Reply With Quote