ZAP Posted December 2, 2003 Share Posted December 2, 2003 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 More sharing options...
ZAP Posted December 9, 2003 Author Share Posted December 9, 2003 C'mon I know someone has dealt with this issue and figured it out... Gimme some help, please. Don't make me beg. Link to comment Share on other sites More sharing options...
natophonic Posted December 9, 2003 Share Posted December 9, 2003 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 More sharing options...
ZAP Posted December 9, 2003 Author Share Posted December 9, 2003 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 More sharing options...
radders Posted January 1, 2004 Share Posted January 1, 2004 Did you manage to find the solution to this bug/feature? Link to comment Share on other sites More sharing options...
ZAP Posted January 1, 2004 Author Share Posted January 1, 2004 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 More sharing options...
edtiger Posted March 15, 2004 Share Posted March 15, 2004 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 More sharing options...
subscript Posted March 16, 2004 Share Posted March 16, 2004 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 More sharing options...
Mark Evans Posted March 16, 2004 Share Posted March 16, 2004 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 More sharing options...
subscript Posted March 16, 2004 Share Posted March 16, 2004 Yep, it's one and the same problem and the fix supplied by [email protected] there does seem to work. Thanks much Sparky! Link to comment Share on other sites More sharing options...
subscript Posted March 16, 2004 Share Posted March 16, 2004 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 More sharing options...
Mark Evans Posted March 16, 2004 Share Posted March 16, 2004 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 More sharing options...
Mark Evans Posted March 16, 2004 Share Posted March 16, 2004 Ok I have fixed this in CVS. http://cvs.oscommerce.com/viewcvs.cgi/cata...r1=1.20&r2=1.21 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.