Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Continue Shopping Button


Guest

Recommended Posts

When the Continue Shopping button is pressed it goes back to the product just ordered and I would expect it to go back to the order page to order a different product. How do I change the code in shopping_cart.php to go to index.php, instead of product_info.php?

Link to comment
Share on other sites

In this code, around lines 190-3:

    $back = sizeof($navigation->path)-2;
   if (isset($navigation->path[$back])) {
?>
               <td class="main"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td>

Try replacing the 2 in the first line with a 3 and see if that does what you want (or if it's a 1 in your case, try a 2). Also, you can try replacing the tep_href_link call with tep_href_link(FILENAME_DEFAULT).

 

Hth,

Matt

Link to comment
Share on other sites

It tells it how far to go back in the browser history. 2 is product_info.php. 3 is the page before it. 1 is probably product_info.php with the buy_now or add_product action. 0 would be the shopping cart page.

 

Hth,

Matt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...