Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

free shipping bug


ZAP

Recommended Posts

I've searched the forums looking for a solution to this, but so far haven't found any...

 

I have a store set up to charge shipping by weight unless the order total is over $150. For orders over $150, shipping within the continental US is free. The weight and zone components are working fine, but the free shipping feature is being overly generous.

 

For example, if a customer adds a $140 item to her cart, she's offered free shipping. Since the actual shipping cost should be $9.50, I'm at a loss to understand why. Even if the code were not subtracting the (potential) shipping cost from the order total, it still shouldn't be $150.

 

When I look in the ot_shipping.php module, I see the following code:

        if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
         $order->info['shipping_method'] = $this->title;
         $order->info['total'] -= $order->info['shipping_cost'];
         $order->info['shipping_cost'] = 0;
       }

 

So it seems to me as if osC should be subtracting the shipping cost from the order total before deciding whether to offer free shipping...

 

But it ain't working correctly...

 

Anyone know why, and - more importantly - how to fix it?

 

THANKS in advance for your responses.

Link to comment
Share on other sites

not clear whether you're using the free shipping contribution (http://www.oscommerce.com/community/contributions,146), or the default free shipping function that comes from admin->modules->order total->shipping->Allow Free Shipping?

 

i'm using the UPS module, and added the free shipping module because i wanted to give customers the option of overnight/2-day/3-day/etc., but i only wanted to offer free ground shipping (don't have enough margin to spot them $70 :P ).

 

in any case, the only problem i had was with a trailing newline at the file end of catalog/includes/modules/shipping/freeamount.php (which PHP 4.3.4 merrily parsed, but borked on my hosted provider's PHP 4.3.3 box *sigh*).

 

hope that helps...

Link to comment
Share on other sites

THANKS for your reply!

 

I'm using the default free shipping module. I installed the other one, but found that this one integrated better with the options that we were offering for this store (from what I remember, using the default module automatically removed the corresponding paid option from the shipping methods list). I may have to try the other one again if I can't get this fixed, though.

 

Anyone else using the default module and run into/resolved this issue?

Link to comment
Share on other sites

  • 4 weeks later...

Nope. All I've found out is that it seems to be totally random. Sometimes a customer can buy up to 149.99 and still be charged shipping (as they should be), whereas another might spend only $140.00 and be offered free shipping (supposedly only for purchases over $150).

 

Now that the holidays are over (and I can take the store offline for a couple hours), I'll probably just switch to the other module.

 

It must be a session error, or something odd like that.

Link to comment
Share on other sites

  • 2 months later...

not sure if this helps but in my configuration the free shipping kicks in when the entire payment amount equals the set level for free shipping including tax and shipping charges.

 

i.e.

 

(free shipping set to orders over $50.00)

Product = $45.00

Tax = $1.00

Shipping = $4.95

Total = $50.95

 

free shipping is granted and the actual payment total is $46.00

 

 

Does anyone know how to apply free shipping to only the product totals?

Link to comment
Share on other sites

Just started with OS Commerce recently. Have set up a store up for a friend. Out of the first dozen orders they've received by it, two of them were granted free shipping when they were not qualified. We are currently using the built-in modules for free shipping and UPS estimates.

 

I noticed something just now --

I can push almost any order over the trigger price we've set for free shipping by selecting the fastest/most expensive shipping option there is. So basically, if the customer chooses a product with something like 'next day air' -- the free shipping option is triggered and it wipes out all other shipping options. So, not only does it wrongly give the customer free shipping, it also negates their ability to select a faster shipping option, even if they were willing to pay for it.

 

To my mind... it should work that if the product totals are more than the trigger price, free shipping should be offered as free 'Ground Service'... and faster shipping methods should still be presented as paid alternatives.

 

Will have to look into this more... but not tonight.

Link to comment
Share on other sites

I think there is a bug report on this...

 

Take a look at

 

http://www.oscommerce.com/community/bugs,1063

 

And tell me if its the same.

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

Note: The free shipping option does work now as intended... but we only offer free Ground shipping. Still have to figure out how to allow the customer a way to so the pay for a faster shipping option, if one is desired.

Link to comment
Share on other sites

Ok I will take a look and will get a fix commited in CVS.

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...