I'm in the process of updating the One-Page Checkout plugin to handle shipping selections that become invalid after the first page entry.
I've got updates to the plugin's AJAX handler to unset the session's shipping selection if the customer's current selection has somehow gone invalid, but the variable's "unset" was never kicking in.
FWIW, I'm using the following construct for that variable-removal since the session-variable is being accessed within a function:
Code:
unset ($GLOBALS[_SESSION]['shipping']);
I traced the issue down to the fact that the default ajax.php handler (ZC 1.5.5a) doesn't end with the inclusion of the application_bottom.php script (the one that closes/saves the session on exit).
When I updated /ajax.php, adding the following line at the end, the session-related variables were properly saved:
Code:
require ('includes/application_bottom.php');
Bookmarks