Guest estelle Posted October 25, 2005 Share Posted October 25, 2005 Hey guys, I finally got around to looking at this bug. The bug is observable in 3.0.3 onwards. When a user starts to checkout and selects a shipping method, then stops at the payment gateway step and starts shopping again - when they next view their cart the total will be incorrect. The total still includes the selected shipping price, but the shipping is displayed as n/a. In includes/content/cart.inc.php, find this line: $shippingPrice = $lang['front']['cart']['na']; Insert these lines *after* it: // Bug fix for incorrect total - reset shipping cost $basket = $cart->setVar(0,"shipCost"); Tiny change, hey. Please post here if you discover any problems with this fix! Estelle. Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted October 25, 2005 Share Posted October 25, 2005 I am also waiting for the results :D Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted October 25, 2005 Share Posted October 25, 2005 Added to 3.0.6. Estelle you are wonderfull!! Added a credit for you in the code. :D Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted October 25, 2005 Share Posted October 25, 2005 Thanks But really it was nothing... Quote Link to comment Share on other sites More sharing options...
Guest Frustrated Father Posted October 25, 2005 Share Posted October 25, 2005 When you say 'after' do you mean behind the code or on the next line down? Yes, I admit it, I'm a complete newbie with this stuff, but I ask so I don't screw something up. Quote Link to comment Share on other sites More sharing options...
markscarts Posted October 25, 2005 Share Posted October 25, 2005 "insert these lines after . . . " Each line starts on a new line :D Quote Link to comment Share on other sites More sharing options...
Guest Posted October 26, 2005 Share Posted October 26, 2005 Pretty sure I did the change correct but still get the N/A on shipping Get the na when I click to view basket. Updates the shiping when I click continue then I click Homepage and then view basket and still get the N/a? Do I have something else messed up? Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted October 26, 2005 Share Posted October 26, 2005 The fix does not change the n/a. The n/a is there to indicate that the shipping value is not known until the customer reaches step4 where they select the shipping method. The fix is to correct the *total*. The total was incorrect under particular circumstances that I explained in my first post. The bug was: The total still includes the selected shipping price, but the shipping is displayed as n/a. After the fix: Now, when the shipping is displayed as n/a, the selected shipping price will be reset to zero and the total will be correct. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 26, 2005 Share Posted October 26, 2005 That makes scense that it would not know the shipping until the customer chose the method. Sorry, I am just learning the program and sometimes I miss the obvious...When running low on coffee...I am getting the hang of it though..thanks for explaining it to me.. Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted October 26, 2005 Share Posted October 26, 2005 No worries Kemp, thats what we're all here for :rolleyes: Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted October 29, 2005 Share Posted October 29, 2005 bump (just in case there's any more support questions related to this bug ) Quote Link to comment Share on other sites More sharing options...
Guest sunshine Posted October 29, 2005 Share Posted October 29, 2005 Good stuff! Thanks Estelle. Quote Link to comment Share on other sites More sharing options...
Guest tbladecki Posted January 19, 2006 Share Posted January 19, 2006 the only problem that i see is it is included in the 3.0.7pl1 code already and it still is not calc the shipiinng correct?? I am using UPS and USPS Quote Link to comment Share on other sites More sharing options...
Guest graphixw Posted February 19, 2006 Share Posted February 19, 2006 I am using 3.07 p|1 and the fix is already in the cart.inc.php. Now as I proceed to check out the "n/a" is there until the last page before the payment page, then it gives me a blank drop down box with nothing inside it. Is there a fix for that? I tried using flat rate shipping in this case. When I use ship by price it works but I have to enter an amount for free shipping and I do not want this. Can someone please advise? Thanks! :D Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted February 19, 2006 Share Posted February 19, 2006 If you want to use ship by price, why don't you just enter a really really big number for free shipping Flat rate shipping should also work. Quote Link to comment Share on other sites More sharing options...
Guest graphixw Posted February 20, 2006 Share Posted February 20, 2006 I think i got it to work for ship by price! I wanted $5.95 so I just typed in "5.9500000000" (filled it up with zeros at the end until it couldnt go no more)in the box and now it appears on the step 4 page of checkout BUT in a drop down box. Why is that? Is there maybe a way to type a little message on the step 3 before proceeding "shipping will be calulated on the next page"...or something similar to this? It would be nice! :D Quote Link to comment Share on other sites More sharing options...
Guest susanfrancis Posted March 10, 2007 Share Posted March 10, 2007 i'm trying to ship by category, and also have that empty drop down box. anybody know how to fix this? my shipping NEVER shows up, and i can't afford to ship for free!!!!! Quote Link to comment Share on other sites More sharing options...
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.