Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

need assistance


Guest

Recommended Posts

Can someone tell me all the files that are associated with the continue shopping button so I can try to figure out what happened to it.

Mine is not there anymore.

 

 

Thanks

Link to comment
Share on other sites

depending on the version you use, there was on old fix for the navigation history browser crash that more or less deleted the history, making the continue shopping button not show as it was dependant on back history.

Look at your catalog / includes / application_top.php see if you have this code around line 301

 

// navigation history
 if (tep_session_is_registered('navigation')) {
if (PHP_VERSION < 4) {
 	$broken_navigation = $navigation;
 	$navigation = new navigationHistory;
 	$navigation->unserialize($broken_navigation);
}
 } else {
tep_session_register('navigation');
$navigation = new navigationHistory;
 }
 $navigation->add_current_page();

 

see if it exactly matches that

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

Looks like that was commented out and a new one put in

 

// navigation history

if (tep_session_is_registered('navigation')) {

if (PHP_VERSION < 4) {

$broken_navigation = $navigation;

$navigation = new navigationHistory;

$navigation->unserialize($broken_navigation);

} else {

$navigation = new navigationHistory;

}

} else {

tep_session_register('navigation');

$navigation = new navigationHistory;

}

$navigation->add_current_page();

/*

// navigation history

if (tep_session_is_registered('navigation')) {

if (PHP_VERSION < 4) {

$broken_navigation = $navigation;

$navigation = new navigationHistory;

$navigation->unserialize($broken_navigation);

}

} else {

tep_session_register('navigation');

$navigation = new navigationHistory;

}

$navigation->add_current_page();

*/

 

 

What do you think?

Link to comment
Share on other sites

change it to

 

// navigation history
 if (tep_session_is_registered('navigation') && is_object($navigation)) {
   if (PHP_VERSION < 4) {
     $broken_navigation = $navigation;
     $navigation = new navigationHistory;
     $navigation->unserialize($broken_navigation);
   } else {
     $navigation = new navigationHistory;
   }
 } else {
   tep_session_register('navigation');
   $navigation = new navigationHistory;
 }
 $navigation->add_current_page();

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

I commented out the top code

and reinstated the bottom code and it works fine now.

 

I remember having an issue with the continue shopping button taking you to somplace not last product, I cant remember.

I think thats when it got changed.

 

I just changed the code so the continue shopping button takes you to the home page now.

 

 

Thanks for your help, working the way I want it to now.

 

Much appreciated!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...