/includes/modules/pages/create_account_success/header_php.php
lines 19-24 say this:
Code:
if (sizeof($_SESSION['navigation']->snapshot) > 0) {
$origin_href = zen_href_link($_SESSION['navigation']->snapshot['page'], zen_array_to_string($_SESSION['navigation']->snapshot['get'], array(zen_session_name())), $_SESSION['navigation']->snapshot['mode']);
$_SESSION['navigation']->clear_snapshot();
} else {
$origin_href = zen_href_link(FILENAME_DEFAULT);
}
Try adding the following AFTER those lines:
Code:
// redirect customer to where they came from if their cart is not empty and they didn't click on create-account specifically
if ($_SESSION['cart']->count_contents() > 0) {
if ($origin_href != zen_href_link(FILENAME_DEFAULT)) {
zen_redirect($origin_href);
}
}
I apologize - I haven't tested this. This strategy should work without having to make any changes to other files, including filenames.php. The line-numbers above are based on v1.3.6