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

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

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 02-20-2009, 01:34 AM
 
shimmy shimmy is offline
 

Advanced Member
  
Join Date: Jun 2008
Posts: 41
 

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

Thanks for answering so quick. I have read it many times as I have done several template changes already but I just took another look at it anyway. I probably wasn't to clear about my question. What does it mean to "change" the line and then "replace" the line. It seems to me replacing the line will just undo the change
__________________
Shimmy

www.hatsandheadscarves.com
Feedback welcome
shimmy@hatsandheadscarves.com
x-cart version 4.3
one page checkout & buy together mods

Reply With Quote
  #12  
Old 02-20-2009, 01:46 AM
  Holub's Avatar 
Holub Holub is offline
 

X-Adept
  
Join Date: Jan 2008
Posts: 432
 

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

Ooops, I'm very sorry, I've really didnot understand you. I have made mistake in my that post ( copypasting is the evil!!!), so please excuse me. I've corrected mistake so please refer to my post http://forum.x-cart.com/showpost.php?p=247082&postcount=6
__________________
Regards,
Anthony Holub

X-Cart Skins Store
- twenty two different skins available;
- both 4.1.x and 4.2.x versions compatible;
- refresh you store now!

Smart menu X-Cart add-on
Featured Products Slide Show X-Cart add-on
"What's New?" FREE X-Cart add-on
Reply With Quote
  #13  
Old 02-20-2009, 03:35 AM
 
shimmy shimmy is offline
 

Advanced Member
  
Join Date: Jun 2008
Posts: 41
 

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

Thanks for your patience, worked like a charm.
__________________
Shimmy

www.hatsandheadscarves.com
Feedback welcome
shimmy@hatsandheadscarves.com
x-cart version 4.3
one page checkout & buy together mods

Reply With Quote
  #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
  #15  
Old 03-04-2009, 02:34 AM
  Holub's Avatar 
Holub Holub is offline
 

X-Adept
  
Join Date: Jan 2008
Posts: 432
 

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

You should execute this QL query via "Patch/Upgrade" admin interface:

Code:
update xcart_products set free_shipping='Y', free_tax='Y';

This query set free shipping and tax exempt for all products.
__________________
Regards,
Anthony Holub

X-Cart Skins Store
- twenty two different skins available;
- both 4.1.x and 4.2.x versions compatible;
- refresh you store now!

Smart menu X-Cart add-on
Featured Products Slide Show X-Cart add-on
"What's New?" FREE X-Cart add-on
Reply With Quote
  #16  
Old 03-04-2009, 02:48 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 execute this QL query via "Patch/Upgrade" admin interface:

Code:
update xcart_products set free_shipping='Y', free_tax='Y';

This query set free shipping and tax exempt for all products.

Thanks Holub for your response. Can you explain me the procedure of updating this (from admin panel or from phpmyadmin)? If from phpmyadmin in which table?
If from admin panel then exactly what to do? Please help me.

Thanks to all again.
__________________
4.6.1 Platinum


Reply With Quote
  #17  
Old 03-04-2009, 02:57 AM
  Holub's Avatar 
Holub Holub is offline
 

X-Adept
  
Join Date: Jan 2008
Posts: 432
 

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

If you use PHPMyAdmin, then you should open SQL tab at right panel, insert this query in field and press go. Table name is already in query, so you shouldn't worry about anything.

Via admin panel, open section "Patch/Upgrade", find dialog "Apply SQL patch" and past the query in the field "SQL query(ies):", and press "Apply"
__________________
Regards,
Anthony Holub

X-Cart Skins Store
- twenty two different skins available;
- both 4.1.x and 4.2.x versions compatible;
- refresh you store now!

Smart menu X-Cart add-on
Featured Products Slide Show X-Cart add-on
"What's New?" FREE X-Cart add-on
Reply With Quote
  #18  
Old 03-04-2009, 08:29 PM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

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

Thanks Holub for your response.One question again.
If I want to activate free shipping ="yes"by modifying the codes and applying the patches from the admin panel for a certain period( four or five days) for all uploaded products,can I able to return from present states to original states that is free shipping="no" after this period by modifying codes and patches again to "no"?

Can you help me?

Thanks to all again.
__________________
4.6.1 Platinum


Reply With Quote
  #19  
Old 03-07-2009, 04:08 PM
 
Amy Amy is offline
 

Senior Member
  
Join Date: Feb 2004
Posts: 147
 

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

I didn't have some of that stuff to change and have changed lots of stuff in x-cart so ended up letting it be for now
__________________
X-Cart Pro 4.0.19; Unix

Other:
XAOM
XOffers
XGift Reg

Other Mods:
Customers Who Also Bought, Download Link Regenerate, Easy Checkout, Newest Products, SEO/CDSEO, Marketing Manager Pro, View Wishlist for Providers (custom by xcart), Email New Releases (a fav!), Telefirma's Dynamic Image Generator, Download Links on Invoice
Reply With Quote
  #20  
Old 03-08-2009, 08:16 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
If you use PHPMyAdmin, then you should open SQL tab at right panel, insert this query in field and press go. Table name is already in query, so you shouldn't worry about anything.

Via admin panel, open section "Patch/Upgrade", find dialog "Apply SQL patch" and past the query in the field "SQL query(ies):", and press "Apply"

Thanks Holub for your response.After modification from admin panel can I able to return from previous states that is free shipping="no" for all products by applying
update xcart_products set free_shipping='N'; Patch/Upgrade & and also modifying /skin1/main/product_details.tpl file?

Waiting for your response.

Thanks to all again.
__________________
4.6.1 Platinum


Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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:06 AM.

   

 
X-Cart forums © 2001-2020