speed2 Posted November 22, 2003 Posted November 22, 2003 Hi, 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?
chfields Posted November 24, 2003 Posted November 24, 2003 This is the code you need to change <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>
speed2 Posted November 24, 2003 Author Posted November 24, 2003 HI chfields, thanks for your help, but its not working its going back to product_info.php? not to index.php please help
Pharkie Posted November 24, 2003 Posted November 24, 2003 speed2, the help chfields gave was only to tell you which code to change. You'll need to alter the code he shows to send the user to whichever page you want, either using the tep_href_link, function - or if you're not familiar with that, just change it for a normal link to the page you need?
speed2 Posted November 24, 2003 Author Posted November 24, 2003 hi Pharkie, sorry I am new to this, sorry, so for example, If I want the continue shopping to go to index.php, how do I do that? do I change IMAGE_BUTTON_CONTINUE_SHOPPING to what? index.php? please advise!
Guest Posted November 24, 2003 Posted November 24, 2003 <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td> Matti
speed2 Posted November 25, 2003 Author Posted November 25, 2003 Johnson, thanks a LOTTTTTTTTTTTTTTTTTTTTTTTTTTT
Guest Posted November 28, 2003 Posted November 28, 2003 Yeah Johnson way to help out, that was cool I think the button should just be deleted - anyone know how? my 2 cents. thanks
mozart3000 Posted December 4, 2003 Posted December 4, 2003 I have a similar back button issue. On the product_info page when you ?click to enlarge? I changed the link from a popup and now have the image sent to a regular page in oscommerce. (many people are becoming tried of popups) My question is how to return from the ?no popup? page and send them back to the item description they came from in product_info. I tried the navigation back link posted here but oscommerce reads ?Error! Unable to determine the page link!? I guess it would look something like below. I'm sure their needs to be some cpath info in this link and some short coding that passes cpath and pID to go with the link?? <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'pID=' . $product_info['products_id']) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?> When it comes to php, I know just enough to be dangerous :blink: Thank for your help in advance.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.