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)
-   -   make ~ free shipping and tax exempt "yes" by default? (https://forum.x-cart.com/showthread.php?t=42474)

Amy 09-20-2008 02:19 AM

make ~ free shipping and tax exempt "yes" by default?
 
We have a downloadable product store and these should be marked free shipping and tax exempt 99.9% of the time and what we run into is the designers forget to change this setting; so what we'd like to do is set them as yes by default so if they forget its already done for them.

Otherwise what happens is the cart tries to charge someone for shipping of a downloadable product when the manuf./designer forgets to change this = loss of sales for them and us.


How would I make these set to yes instead of no by default in the admin/provider areas?

JWait 09-20-2008 07:19 AM

Re: make ~ free shipping and tax exempt "yes" by default?
 
For free shipping...
Choose "search for products" and search for all products (main cat, sub cats, additional cats) and "check all" (or uncheck those that don't get free shipping).
choose "modify selected"...
Check the box next to "free shipping" and change to "yes".. click update.

I think your taxes are still applicable for downloaded products, and local customers should still be paying them. If you don't want to apply taxes to anyone, then simply change the taxes the same way you changed the free shipping by changing the "tax exempt" to "yes".

Amy 09-20-2008 01:38 PM

Re: make ~ free shipping and tax exempt "yes" by default?
 
actually what we want is to have them as the default option when they create a new product in the store - not after they have already added it :)

Amy 11-12-2008 12:17 PM

Re: make ~ free shipping and tax exempt "yes" by default?
 
anyone ???? please :]

pfarcus 02-10-2009 06:21 PM

Re: make ~ free shipping and tax exempt "yes" by default?
 
Yes, I'm having this question too.

Have it default to yes in the box instead of no.

pls.pls.

(Amy if you figured it out pls tell me all about it):wink:

Thanks!

Holub 02-11-2009 04:32 AM

Re: make ~ free shipping and tax exempt "yes" by default?
 
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.

pfarcus 02-11-2009 11:16 AM

Re: make ~ free shipping and tax exempt "yes" by default?
 
It works, thx!

Holub 02-12-2009 12:36 AM

Re: make ~ free shipping and tax exempt "yes" by default?
 
Not at all, glad to help you!

shimmy 02-20-2009 01:03 AM

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

Originally Posted by Holub

Also with shipping, find line (about 308):

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_shipping eq 'Y'} selected="selected"{/if}>{$lng.lbl_yes}</option>

and replace 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.


Hi holub, thanks I would also like to apply this modification but I'm a bit new to this and a little confused. For the shipping you said to find line X change it to y and replace it to Z. Can you clarify for me what you mean by change it and then replace it?
Thanks in advance

Holub 02-20-2009 01:13 AM

Re: make ~ free shipping and tax exempt "yes" by default?
 
First of all, have you read post with guide about template edition? Here it is: http://forum.x-cart.com/showthread.php?t=21529

As I said, all changes should be made in file /skin1/main/product_details.tpl. Please read about template edition at link above.


All times are GMT -8. The time now is 08:08 PM.

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