Community Add-Ons

Add file to this package
Top » Order Total Modules

Continue Shopping 'Fix'
for osCommerce Online Merchant v2.2

Continue Shopping 'Fix' 1.0
Added 1.2.05 by Sincraft (whitestype@yahoo.com)
(Credits go to: Steve Bisset - OSC Team Member, for the actual code)

-----
What Is It?
-----
The purpose of this rather short but neccessary Contribution is to take the user back to the main Catalog page after they click the button CONTINUE SHOPPING , Once they add a product to their cart. By Default: OSC 2.2 Takes the user back to the product they recently added. Customers were getting confused and thought there product wasn't being added. This truly allows customers to....CONTINUE SHOPPING, and that's why we have our pages up right! :)

-----
How to Install.
-----
BACKUP THIS FILE FIRST! Then...
*In catalog/shopping_cart.php change this line of code*
<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>

*TO THIS*
<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>

DONE.

(copy from here or download file, same thing)

Legend:  Download   Report
Expand All / Collapse All
Another way of doing it Matt Peace 12 May 2005  

I got around the same problem a different way.

In shopping_cart.php replace

$back = sizeof($navigation->path)-2;

if (isset($navigation->path[$back])) {

With

$back = sizeof($navigation->path)-2;

if($navigation->path[$back]['page']=="product_info.php"){
$back = sizeof($navigation->path)-3;
}
if (isset($navigation->path[$back])) {

Continue Shopping 'Fix' Sincraft 2 Feb 2005