Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Free shipping special?


varnco

Recommended Posts

Posted

Trying to figure out how I can easily offer free shipping for certain items only, even though most items are charged for shipping based on weight.

 

I tried changing the weight of an item to 0 lbs, but the shipping calculator still figured the item weighed up to 5 lbs.

 

Anyone mod their store so that if the weight of a product = zero, then the shipping is free for that particular item?

 

Thanks.

Posted

Try setting the weight to 9999 and creating a table rate for 9999 of 0. Or you might just try setting the weight to 0. It can be done by configuring the standard admin, and should not require any coding to accomplish.

Sincerely,

 

Michael G. Myles

Posted

I have done this by setting the item weight to 0.00 then adding a rule in the shipping module like 0.00:0.00,0.100:1.50 etc etc

Posted

Alvin, that intrigues me...

 

Where is the "shipping module" where I can set the prices?

 

I looked in the shipping.php in the module directory, but I can't see anywhere that I could add the text that you recommended.

 

Any additional information that you can provide is appreciated.

 

BTW, I am using UPS shipping.

Posted

Michael,

 

I tried using table shipping, and it would work, except that I want free shipping for a particular item, and if customer is purchasing an item that has free shipping and another item that doesn't have free shipping, the customer can select the free shipping for their entire shopping cart - no matter if they select a product that doesn't have FREE shipping.

 

Good strategy though... almost there...

Posted

I just installed the USPS Methods v2.6 contribution and it uses weight to calculate shipping via the USPS website.

 

I also have 'donations' in my store to help support my site (I send out some promo items with each donation that I dont want to charge shipping for) and I don't want to add shipping to those items, or have them count towards shipping if the customer orders additional items.

 

What I did was set the weight to zero for the donation products and edit the checkout_shipping.php main file and added at line 100:

 

  if ( $total_weight == 0 ) {
    include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php');
  $free_shipping = true;
 }

 

I had to edit the above listed language file with:

 

  //define('FREE_SHIPPING_DESCRIPTION', 'Free shipping for orders over %s');
 define('FREE_SHIPPING_DESCRIPTION', 'Free shipping on your order.');

 

That way, the orders_total module still works if you offer free shipping by some weight and if an order total weight is zero then you can get free shipping, and if you have some items that require shipping and some don't, then a weight based shipping calculation wont be effected by 'free shipping' items.

 

Hope this helps some of you.

Posted

Hmmm.

 

I'll see if something similar will work in the UPS (not USPS) shipping module.

 

Thanks.. I'll give it a try to see if I can hack my UPS.php module and get it to work.

 

"I'll be back".

Posted

Any solution here for UPS shipping?

 

I have a item that is 49.00 and I want free shipping on it. I have tried all these things - but nothing seams to work.

 

Thanks,

Philip

Posted

I couldn't get the recommendations here to work, but I've come across another possible solution: A contribution.

 

Free shipping payment v5.

 

I haven't installed it yet, and a bit afraid to, as I've moded so many of my files, that I'm afraid I'll mess something up.

 

Perhaps this weekend, if I have time, as I'm not really pressed for a solution at this time, but will need one shortly.

Posted

Pavemen your solution is exactly what I needed. I'm having trouble making it work though.

 

Could you show me exactly how the checkout_shipping.php code fits in.

 

My file is dated

*

$Id: checkout_shipping.php,v 1.16 2003/06/09

 

Thanks, I've trying for a while to solve this problem for donations.

 

thanks,

 

Gary

  • 1 month later...
Posted
Pavemen your solution is exactly what I needed. I'm having trouble making it work though.

 

Could you show me exactly how the checkout_shipping.php code fits in.

 

My file is dated

*

$Id: checkout_shipping.php,v 1.16 2003/06/09

 

Thanks, I've trying for a while to solve this problem for donations.

 

thanks,

 

Gary

I know this is old but I realized that when I provided a line number, I had other edits above that makes teh line 100 I provided incorrect for your files.

 

Basically I put the code Imentioned previously ABOVE this peice of code:

 

// process the selected shipping method
 if ( isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process') ) {
   if (!tep_session_is_registered('comments')) tep_session_register('comments');
   if (tep_not_null($HTTP_POST_VARS['comments'])) {
     $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
   }

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...