Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

product_info.php?


speed2

Recommended Posts

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?

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

<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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...