Guest Posted October 30, 2007 Posted October 30, 2007 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>'; ?>
bpmcclure Posted December 3, 2007 Posted December 3, 2007 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.
xmitman Posted January 22, 2008 Posted January 22, 2008 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.
Christinekrebs Posted January 31, 2008 Posted January 31, 2008 Me 2. Any help is appreciated as well. ~Thanx
Draeisme Posted February 17, 2008 Posted February 17, 2008 I came across this post. I'm having the same problem. http://www.oscommerce.com/community/contributions,2891 I haven't tested it yet, ill test it when i get home. There seem to be 2 different ways to fix it listed in the contributions info. Remember to backup before changing.
Draeisme Posted February 17, 2008 Posted February 17, 2008 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.