| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Free Ground Shipping Mod | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Free Ground Shipping Mod
Hi All,
I made some tweaks and got it so when modifying the product you select the option for free ground shipping under the free shipping drop down. This then will display a specific shipping charge/zone that you setup. I have posted it on my blog and I will work on moving it into this forum once I have some more time (hopefully later today). Let me know your thoughts. http://joltedlabs.com/software/x-cart/free-ground-shipping-mod I have not fully tested this yet so feedback is welcomed. At the same time make sure you test this on a dev site.
__________________
4.1.9 |
|||||||
#2
|
|||||||
|
|||||||
Re: Free Ground Shipping Mod
Free Ground Shipping Mod
The purpose of this mod is to allow people to create a zone that offers free shipping but still keep the existing prices for other shipping options. Currently x-cart has a free shipping option but once selected it will change the price of all shipping methods to zero. READ THIS: * This is not the easiest mod to install and should be done by an intermediate - advanced user. I will do my best to make it as simple as possible. * I have only tested this with X-Cart 4.1.8 M * This is not fully tested so please test it in a dev site first. We are not responsible for any damages. Some Pre-Reqs before getting started: 1) Create a shipping zone 2) Create a shipping charge for that particular zone (free one) our is called ⌠Free USPS/UPS Ground Shipping■ and is set to zero dollars for the US (lower 48 states) zone we created earlier. 3) X-Cart 4.1.8 (only one tested so far) 4) Get the shipping charge ID number this can be found by viewing the source on the shipping charges page. You should get a two digit number or three digit number that will be in the value of the radio button for that shipping charge. Mine was 167 and you can see that in the code later. 5) I have this installed http://forum.x-cart.com/showthread.php?t=8901 (use post 59) Not sure if needed or not. I have not tested without it installed. Please let me know when you test. Step 1 Add this to cart.php Code:
Should go around line 450 and right after this chunk of code: Code:
Step 2 Replace these two lines in skin1/modules/Fast_Lane_Checkout/shipping_methods.tpl Code:
with Code:
Step 3 Add this line in skin1/main/product_details.tpl (Around line 300) Code:
The whole chunk should look like this: Code:
Technical Notes: 1) In order for the free shipping to show in the shipping methods all products in the cart must be set to ⌠Free Ground Shipping■. The conditions of the shipping zone and charge field must also be met. 2) Currently if a customer adds any products that are not free ground shipping they will void any products that are free ground shipping. So if you have a large item that is free ground shipping and adds something small but not free ground shipping they will ground shipping on both.
__________________
4.1.9 |
|||||||
#3
|
|||||||||
|
|||||||||
Re: Free Ground Shipping Mod
I think that this is exactly what I am looking for. any reason that you think that this would not work with Special Offers - Free Shipping?
__________________
jonc X-Cart Gold 4.1.10 - http://www.hypnoskates.com X-Cart Gold 4.1.10 - http://tryten.com/shop/ X-Cart Gold 4.1.10 - http://www.bluecurl.ca/shop/ |
|||||||||
#4
|
|||||||
|
|||||||
Re: Free Ground Shipping Mod
Hmmm I can't see it not working with special offers. I didn't touch anything specific to that. I would recommend just trying it out. It simply works off a zone shipping Id.
Give it a shot. Backup your files first and let me know how you make out. Good luck.
__________________
4.1.9 |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Free Ground Shipping Mod
I installed, exactly as listed above (MAKE SURE YOU CHECK THE QUOTES WHEN COPYING OUT OF THIS FORUM!!!), and then changed the following code from 'Y' to 'G' in /modules/Special_Offers/func.php and it worked!!!!!
Code:
Thanks so much for this wonderful tidbit of code!!!
__________________
jonc X-Cart Gold 4.1.10 - http://www.hypnoskates.com X-Cart Gold 4.1.10 - http://tryten.com/shop/ X-Cart Gold 4.1.10 - http://www.bluecurl.ca/shop/ |
|||||||||
#6
|
|||||||
|
|||||||
Re: Free Ground Shipping Mod
So can I use this with calculated shipping and set all UPS ground for say orders over $100 to ship free but all other methods will still calculate? I would hate for a customer to select free overnight service!
Thanks!!!
__________________
- - Versions: 4.1.10 and 4.3.0 (see post for which cart) "Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison "Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982 "Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes |
|||||||
#7
|
|||||||
|
|||||||
Re: Free Ground Shipping Mod
Well, step 2 of this does not work since we are using calculated shipping. You can not define shipping charges for zones if you use calculated shipping.
I am going to see what I can figure out for a work around to this... Don't count on anything though.
__________________
- - Versions: 4.1.10 and 4.3.0 (see post for which cart) "Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison "Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982 "Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes |
|||||||
#8
|
|||||||
|
|||||||
Re: Free Ground Shipping Mod
I've implemented the mod, however, whenever a non-free ground item is in the shopping cart, I will get an error on top of the page at the "your cart" page. The error says:
Quote:
Line 491 is a line in the mod: Quote:
Everything still seems to work (maybe), but the error is really annoying. Any suggestion?
__________________
X-Cart Gold Version 4.1.8 |
|||||||
#9
|
|||||||
|
|||||||
Re: Free Ground Shipping Mod
I am using calculated shipping too, but you can still use this mod. Just go to "shipping methods" and add a new shipping method first.
In my case, I added one call "Free Ground (for specified items only)". Then go to "shipping charges" and follow the rest of the steps described in the original post.
__________________
X-Cart Gold Version 4.1.8 |
|||||||
#10
|
|||||||
|
|||||||
Re: Free Ground Shipping Mod
Tried the above solutions, but they didn't quite do it. We needed to use the Special Offers module to allow free ground shipping in a particular zone on purchases above a certain amount.
We added a function to /shipping/shipping.php PHP Code:
Then in our shipping module, we need to call the function and evaluate it. This project is using FedEx, but the same logic would work for others. /shipping/mod_FEDEX_direct.php: After: PHP Code:
Add: PHP Code:
After: PHP Code:
Add: PHP Code:
We found that X-Cart wasn't using the handling charge that FedEx was returning. This was added to the total shipping charge.
__________________
Xcart v4.1.9 [unix] |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|