
Originally Posted by
phineas77
I've read through this thread and am having the same problem with shipping not being added to the total when the FEC single-page checkout loads. The shipping is correctly added to the total when you click the shipping radio button, but not on the initial load.
I have Zone Rate shipping set up with two zones, both of which calculate correctly. The shipping is set up so that only one shipping option will be available in any order. Since the radio button already has focus, it is unlikely that a customer will re-select the radio button. Thus, the shipping is never added to the order.
The shipping will calculate and be included in the total if, after viewing the single-page checkout, I then add a second item to the cart, even if I don't click the shipping radio button. So the problem appears to be limited to the initial page load.
I tried applying lankeeyankee's fix (19th December 2007 09:57 PM), to no avail. He suggested adding zen_redirect(zen_href_link(FILENAME_CHECKOUT, 'action=null', 'SSL')); } to the code, but it was already there as:
if ($_SESSION['sendto'] != false) {
$_SESSION['shipping'] = $shipping_modules->cheapest();
zen_redirect(zen_href_link(FILENAME_CHECKOUT, '', 'SSL'));
}
I'm on FEC 2.1 with Zen 1.3.7.1 and I have Admin Login As Customer 2.1 as well.
Any help on getting the shipping to be included in the total on the initial page load?
I don't know if this is related, but sometimes (15% of the time) the Zone Rate line of the Total is listed as 'unable to determine rate at this time'. Otherwise, this behaves as described above.
Thanks for your help. This is a great mod.
In 1.23 if you change:
PHP Code:
if ($_SESSION['sendto'] != false) {
$_SESSION['shipping'] = $shipping_modules->cheapest();
zen_redirect(zen_href_link(FILENAME_CHECKOUT, '', 'SSL'));
}
to:
PHP Code:
if ($_SESSION['sendto'] != false) {
$_SESSION['shipping'] = $shipping_modules->cheapest();
zen_redirect(zen_href_link(FILENAME_CHECKOUT, 'action=null', 'SSL'));
}
Do you still get the error?
Bookmarks