Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change "Continue Shopping" to go to main category


Guest

Recommended Posts

Posted

I am trying to change the link for "continue shopping" to go to the main category, not just "back".

 

Here is the code where I think it needs changed. Can anyone advise me how to change this?

 

?><?php echo '<td><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('btn_3_2.gif', IMAGE_BUTTON_CONTINUE_SHOPPING,'','','style="margin:0px 9px 0px 9px;"') . '</a></td>'; ?>

  • 1 month later...
Posted
I am trying to change the link for "continue shopping" to go to the main category, not just "back".

 

Here is the code where I think it needs changed. Can anyone advise me how to change this?

 

?><?php echo '<td><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('btn_3_2.gif', IMAGE_BUTTON_CONTINUE_SHOPPING,'','','style="margin:0px 9px 0px 9px;"') . '</a></td>'; ?>

 

 

I'd like to do this too; go from "Continue Shopping" all the way to some other page, not necessarily within OS Commerce. Back to the customer developed home page, for example.

  • 1 month later...
Posted
I'd like to do this too; go from "Continue Shopping" all the way to some other page, not necessarily within OS Commerce. Back to the customer developed home page, for example.

 

I'd also like to do this, any help would be appreciated.

  • 2 weeks later...
  • 3 weeks later...
Posted
Another way of doing it Matt Peace 12 May 2005

 

I got around the same problem a different way.

 

In shopping_cart.php replace

 

$back = sizeof($navigation->path)-2;

if (isset($navigation->path[$back])) {

 

With

 

$back = sizeof($navigation->path)-2;

if($navigation->path[$back]['page']=="product_info.php"){
$back = sizeof($navigation->path)-3;
}
if (isset($navigation->path[$back])) {

 

Here is what i use. It can be found in this contrib. ( http://addons.oscommerce.com/info/2891 ). After adding to cart, you click continue shopping and it takes you back to the category listing.

 

Exactly what i wanted.

Archived

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

×
×
  • Create New...