Benjjj6 Posted October 20, 2007 Share Posted October 20, 2007 Hey Is it possible to create a 'back' button that will return the customer to the previous page they were on when they click it. I would like to place it on my product_info.php page and make the link an image. Is this possible? Thanks, Ben Link to comment Share on other sites More sharing options...
Andrew Yuen Posted October 20, 2007 Share Posted October 20, 2007 Check this out: http://www.oscommerce.com/community/contributions,1586 Andrew Yuen osCommerce, Community Team Link to comment Share on other sites More sharing options...
Benjjj6 Posted October 20, 2007 Author Share Posted October 20, 2007 thanks, Ill try that :) Link to comment Share on other sites More sharing options...
Benjjj6 Posted October 20, 2007 Author Share Posted October 20, 2007 the latest version worked for me although it returned people to the first page of the category they are in. Is it possible to make it so that they are returned to whatever page they were on before they clicked on a product. At the moment, if they click back then they are taken to page 1 of that category even if the product they clicked on was on page 4. Heres the code its using: <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_path($current_category_id = '')) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td> Thanks, Ben Link to comment Share on other sites More sharing options...
star3am Posted October 21, 2007 Share Posted October 21, 2007 I like using <a href="java script:history.go(-1)">BUTTON</a> works pretty good Ciao/Riaan Check this out: http://www.oscommerce.com/community/contributions,1586 I'm an osCommerce Pimp .. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.