Iggy Posted January 7, 2004 Share Posted January 7, 2004 Hi, I'm setting up a customized store and I've run into a little problem in navigation. The store displays products 6 at a time so most categories have more than one page. If you click on a product to see the product info page and decide to go back via the link it drops you on the first page of the category. Is there an easy way to lead customers back to whichever page they came from? This is the code I'm using right now <a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=' . $cPath); ?>">Link</a> But I'm a little stumped as to how to pick up the sort= and page= variables You can see what I mean at http://www.kimberlybaker.com/index.php The back link appears on product info pages at the top right. Thanks for any help, comments, suggestions! Iggy Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
Marg Posted January 7, 2004 Share Posted January 7, 2004 How about a back link? <a href="javascript:history.go(-1)">Go Back</a> Just a thought M~ Link to comment Share on other sites More sharing options...
Iggy Posted January 7, 2004 Author Share Posted January 7, 2004 Oh, see, now that just makes me feel dumb. But in a happy kind of way :rolleyes: Thanks Marg! Works like a charm! Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
Marg Posted January 7, 2004 Share Posted January 7, 2004 Cool! I prefer the category back button over the back to shopping link... Nice looking site, btw. Very tidy. M~ Maybe this: <?php echo '<a onmouseover="window.status=\' Back to ' . tep_get_categories_name(tep_get_products_catagory_id($product_info['products_id'])) . ' \'; return true" href="javascript:history.go(-1)">Back to ' . tep_get_categories_name(tep_get_products_catagory_id($product_info['products_id'])) . '</a>'; ?> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.