Kilaz Posted December 7, 2006 Posted December 7, 2006 Hi, I'm using the Free Shipping Per product contrib version 1.1 found here http://www.oscommerce.com/community/contributions,2517 The problem with this mod is if you have the Free shipping per item enabled it will only give the Free shipping option during the checkout process. None of the regular shipping methods are displayed. I've had customers complain about that because they needed the item overnight and where willing to pay the overnight charges, etc. My question is.. What needs to be changed in order to show both the normal shipping methods along with the free shipping method so the customer can select if they want the free shipping or not? Here is the code I found in checkout_shipping.php but I'm a little confused on if this is where I need to make my change or not. if ($free_shipping == false) { $check_free_shipping_basket_query = tep_db_query("select products_id from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . (int)$customer_id . "'"); while ($check_free_shipping_basket = tep_db_fetch_array($check_free_shipping_basket_query)) { $check_free_shipping_query = tep_db_query("select products_free_shipping from " . TABLE_PRODUCTS . " where products_id = '" . (int)$check_free_shipping_basket['products_id'] . "'"); $check_free_shipping = tep_db_fetch_array($check_free_shipping_query); $check_free_shipping_array[] = $check_free_shipping['products_free_shipping']; } if (in_array("1", $check_free_shipping_array) && !in_array("0", $check_free_shipping_array)) { $free_shipping = true; include_once(DIR_WS_LANGUAGES . $language . '/checkout_shipping.php'); } } if ($order->delivery['country_id'] != STORE_COUNTRY && FREE_SHIPPING_TO_ALL_COUNTRIES == "false") { $free_shipping = false; } Please help if you can. Quote
benjatado Posted December 8, 2006 Posted December 8, 2006 YES! - This is exactly where I am now. I am looking into using the Free Ship for Ground and still allow the radio checks for 2Day, Overnight etc. I will let you know where I get on this - but I think I will need to somehow turn off Ground aka: make it default to "Free" when free shipping is checked on the product category config - but still pass the other methods for shipping/choosing. Let me know if you get anywhere with this as well... -b Quote
Kilaz Posted December 10, 2006 Author Posted December 10, 2006 I have an idea. We should be able to use the "Free Shipping w/ Minimum Amount" contribution to accomplish this. Instead of having it check the Minimum amount we can have it checkt to see if the items free shipping flag is checked. If it is it will just use the Free shipping with Minimum amount shipping module which does list all the other shipping methods along with a Free shipping method. I'll try and work on that today. I'll let you know if I make any progress. YES! - This is exactly where I am now. I am looking into using the Free Ship for Ground and still allow the radio checks for 2Day, Overnight etc. I will let you know where I get on this - but I think I will need to somehow turn off Ground aka: make it default to "Free" when free shipping is checked on the product category config - but still pass the other methods for shipping/choosing. Let me know if you get anywhere with this as well... -b Quote
Jack_mcs Posted December 10, 2006 Posted December 10, 2006 This might do what you want. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Kilaz Posted December 13, 2006 Author Posted December 13, 2006 Hi Jack, Thanks for the info but thats not what we are looking to do. I think that mod has actually been added to the Free Shipping over a certain amount contribution which is not what we are working with. We are working with the Free shipping per Product contribution which works a little different. With the Free shipping per product contribution it only gives you Free shipping as an option and none of the other shipping options are displayed. I would think it would be a pretty simple change in the code to list all the other shipping options also but my limited codeing skills just dont seem good enough to find what needs to be modified :) This might do what you want. Jack Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.