Forced basepoint 11/05/2009 by Woolvey The prior solutions to this problem did not work for me. The solution that worked for me was to combine the product_info page check described earlier with another change to force the first entry in navigation history to always be the home page, Continue Shopping Again 07/22/2009 by FOD All credit to FWR Media - Found his solution and though others may benefit. File attached same as written here. Quote from FWR Media "I've always been confused by the continue button in the shopping cart page .. why on earth would a user want to return to the product they just added to cart (or am I missing something). I'm sure this must have been done before but I've not seen it. Anyway this tip will modify the continue button and users will be sent to the category of the last product they added to cart." catalog/shopping_cart.php Find ... CODE $back = sizeof($navigation->path)-2; if (isset($navigation->path[$back])) { ?> 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) . ''; ?> } ?> Replace with .. CODE $back = sizeof($navigation->path)-2; // BOF FWR Mod category based continue button $count = count($products); if( isset($products[$count-1]['id']) ) { $continueButtonId = tep_get_product_path(str_replace(strstr($products[$count-1]['id'], '{'), '', $products[$count-1]['id'])); } if( isset($continueButtonId) ) { ?> ' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . ''; ?> // if (isset($navigation->path[$back])) { } elseif (isset($navigation->path[$back])) { // EOF FWR Mod category based continue button ?> ' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . ''; ?> } ?>Another way of doing it 05/12/2005 by Matt Peace 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' 02/02/2005 by Sincraft 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*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) . ''; ?> *TO THIS* ' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . ''; ?> DONE. (copy from here or download file, same thing)
As experienced osCommerce Experts, we are glad to help you to install this addon. The process is as follow:
You placed an order of this addon or other addons, checkout and receive an email notification of order status
Or you can contact us directly using email form , asking us to install this addon for you
Once you and we have agreed to start, please send us FTP access by email
You will be updated of the installation status
You may ask for customization jobs of this addon
You Risk Nothing: No Upfront Payment Required
Our
NO RISK POLICY is clear. You pay only for the successful completion of the installation. If you are not satisfied or we are unsuccessful, your site will be returned to its previous working state and
you pay nothing! NOT A PENNY!
Once you are satisfied with our help, you can pay us through Paypal.
Add to Cart: