Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Continue Shopping Button's Destination


gcullins

Recommended Posts

Posted

I'm using osC to manage my products, in terms of collecting a shopping cart full o' stuff and processing the orders. I'm using static pages for my storefront to maintain the look and feel of our site. I'm cool with the links adding the products to the shopping cart. That's working great (as far as I can tell...I haven't done too much testing yet).

 

My question is, when a product is added to the cart a Continue Shopping button is displayed, which is what I want. But, when clicked it takes the user to the osC generated product page. Is it possible to make a change that would take the user back to the page from which they originally added their product (i.e. my site's static product page)?

 

And, I promise, I've searched the forums for this topic and haven't found the answer. Sorry if I missed this topic...I was surprised to not find anything about this! B)

You can't win if you don't play!

Posted

You can redirect someone wherever you'd like. Look for the code that performs the action, then look for the redirect ... usually something like 'onclick' or tep_redirect.

Posted

I wanted to do the same so on the "shopping_cart.php" page, I replaced:

 

<?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>'; ?>

 

with:

 

<?php echo '<a href="http://www.mystore.com/catalog/index.php">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?>

 

Just be sure you backup your file before you make any changes to it.

Posted

Thanks for the reply!

 

I started with that angle, but that took my users back to the shop's homepage, as opposed to the page from which they came. I've been working on some functions that will eventually use a session variable to accomplish the return, but it's not been as easy task. I just can't seem to work out how osCommerce uses sessions.

You can't win if you don't play!

Posted

are your main pages html or php?

GEOTEX from Houston, TX

 

(George)

Archived

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

×
×
  • Create New...