Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shopping Cart Checkout Problems


Grounder

Recommended Posts

So I just installed a new OScommerce MNK edition and when I add something to the shopping cart and go through the checkout process, it asks me to either login or create a new account. I create a new account and it does it ok, then goes to the screen where it asks me to continue and goes back to my index page instead of finishing the checkout process. If I go into the shopping cart again when I am logged in, it will go through the entire checkout process. Does anyone know what I can do to make it finish the checkout process when it is a new user, instead of it going back to the index page after?

Link to comment
Share on other sites

in a standard osC package there is a set of code at the top of the page, this controls the continue button.

If the user has added something to their cart, then is directed to the log in page to create an account or log in, they then create an account and the osC will know they have come from the shopping cart page and have clicked the checkout button, it will then, once successfully created an account direct them on to the checkout_shipping page which is the start of the checkout pages.

If there is no navigation history then it will redirect to the index page.

If you do the above and are directed to the index page still you are going to have to check the code exists, and that your configure file (catalog/includes/configure.php) is set up correctly.

 

This is the code at the top of checkout_success.php.

 

in a standard osC package there is a set of code at the top of the page, this controls the continue button.

If the user has added something to their cart, then is directed to the log in page to create an account or log in, they then create an account and the osC will know they have come from the shopping cart page and have clicked the checkout button, it will then, once successfully created an account direct them on to the checkout_shipping page which is the start of the checkout pages.

If there is no navigation history then it will redirect to the index page.

If you do the above and are directed to the index page still you are going to have to check the code exists, and that your configure file (catalog/includes/configure.php) is set up correctly.

 

This is the code at the top of checkout_success.php.

 

 if (sizeof($navigation->snapshot) > 0) {
$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);
$navigation->clear_snapshot();
 } else {
$origin_href = tep_href_link(FILENAME_DEFAULT);
 }

 

 

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...