Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need Free Shipping Per Item along with regular shipping methods


Recommended Posts

Posted

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.

Posted

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

Posted

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

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...