Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

automatically logs customers out when they click homepage


Guest

Recommended Posts

when my custome is logged in with products in their cart, if they click homepage it logs them out, can this be changed so that they remain logged in at all times even if they click the homepage

 

any help appreciated

Link to comment
Share on other sites

In /includes/application_top.php, find this code:

 

  $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);
 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_CATALOG));

Alter it to this:

 

  $breadcrumb->add(HEADER_TITLE_TOP, tep_href_link(FILENAME_CATALOG));
 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_CATALOG));

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

  • 3 weeks later...

this just brings up errors and doesnt work.

any more ideas, it isnt anything to do with sessions or anything like that is it

Link to comment
Share on other sites

My bad!!!

:blush:

 

FILENAME_CATALOG was something I made for my site.

 

The code should be:

 

$breadcrumb->add(HEADER_TITLE_TOP, tep_href_link(FILENAME_DEFAULT));
$breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...