benbogart Posted February 13, 2008 Posted February 13, 2008 (edited) Has anyone had this problem? For some reason OSC is calling the quote() function in the FedEx shipping module (v. 2.07) twice, resulting in duplicates of each shipping method. In checkout it looks like this: Federal Express (Total items: 2 pcs. Total weight: 0.82 lbs) Federal Express Home Delivery (2 days) $8.23 Express Saver (3 Day) $10.60 Home Delivery (2 days) $8.23 Express Saver (3 Day) $10.60 With debug on I added some output to the beginning and end of the quote() function to see why this was happening and sure enough it pumped out the debug info twice, once before outputting progress bar and once after. Does anyone have any idea why the quote function would be called 2x. Maybe something leftover from a previous module that wasn't completely removed... but what? Thanks for your help. I'm still pretty new to osc. Edited February 13, 2008 by benbogart Quote
Jan Zonjee Posted February 13, 2008 Posted February 13, 2008 Does anyone have any idea why the quote function would be called 2x. Actually, the shipping modules are loaded and the function quote called twice: once when the page is opened and then when the customer makes a choice and submits. But never twice when the page get opened to get the rates doubled. That is bizar. Quote
benbogart Posted February 13, 2008 Author Posted February 13, 2008 Actually, the shipping modules are loaded and the function quote called twice: once when the page is opened and then when the customer makes a choice and submits. But never twice when the page get opened to get the rates doubled. That is bizar. ... and it only happens with the fedex module. The others are fine. Ben Quote
benbogart Posted February 13, 2008 Author Posted February 13, 2008 ok, thats not the problem. I added the same code to the ups module to see if it had quote called 2x and it did just like the fedex module, once before and once after the status bar. The difference is that the UPS doesn't duplicate the shipping methods. Anyone know why? Thanks... Quote
Roaddoctor Posted February 14, 2008 Posted February 14, 2008 (edited) ok, thats not the problem. I added the same code to the ups module to see if it had quote called 2x and it did just like the fedex module, once before and once after the status bar. The difference is that the UPS doesn't duplicate the shipping methods. Anyone know why? Thanks... Fedex 2.07 has two tracks of calculation... one is for normal items processed per the stores configuration, and another path that is followed if your designate an item "ship seperate"... perhaps you are seeing both paths for some bizarre reason. But that still doesnt explain the symptoms you describe.. that is strange Edited February 14, 2008 by Roaddoctor Quote -Dave
benbogart Posted February 14, 2008 Author Posted February 14, 2008 Well, I sort of gave up... I noticed that for some reason the rates were not duplicated in the MVS version of the FedEx module (but the quote function is still called twice and the data is sent to FedEx twice). I had also noticed some other strange behavior with the regular shipping like the change address box being duplicated with some shipping modules enables which also was not happening using mvs on and using the mvs versions of the modules. So I modified my one custom shipping module for MVS (not so hard actually now that I have an idea whats going in) and everything seems to be working fine -- at least on the surface. I still have burning curiosity to find out what was going on, and I will have to resolve problem of the data being sent twice to FedEx at some point, but I have to get this site released as soon as possible so I'll have to wait until I have a little free time to track it down. Oh well. Thanks for the replies. Ben Quote
cdi-buy.com Posted May 16, 2008 Posted May 16, 2008 Mine's duplicating the rates as well ever since upgrading to 2.07.1. So odd. Quote
gwynwyffar Posted May 16, 2008 Posted May 16, 2008 I'm having the same issue. I have quite a few items with "ship seperately" checked and it definitely does it with them. I'll have to do some testing for non-ship seperately items, but if anyone has a solution, please post! Quote
NewVibe Posted June 27, 2008 Posted June 27, 2008 Hi All, I was having this problem, and in my case the culprit was in the file: catalog/checkout_shipping.php. This line appeared twice in my page, once near the top and then again in the body: $quotes = $shipping_modules->quote(); I had this line added into the body due to the Multiple Vendor Shipping (MVS) module that I installed some time ago. I removed the entry at the top, because the one in the body was part of MVS and it fixed the issue. So, check for the line, $quotes = $shipping_modules->quote(); and make sure it only appears once. Good luck! 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.