Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

DHtml Menu/Cookies/Ultimate SEO Problem


Pilly

Recommended Posts

Heres my problem,

 

On first visiting my test site here the menu is ok, after visiting a category on the menu defaults back to the original menu and the dhtml menu never returns.

 

Im sure its something to do with cookies or sessions.

 

configure.php

define('HTTP_COOKIE_DOMAIN', '.xyz.com');	 
define('HTTP_COOKIE_PATH', '/directory/');
define('STORE_SESSIONS', 'mysql');

 

the catalog is in a directory off the root.

 

Ive tried another 2 other menu contribs and its the same with them.

 

Anyone with any ideas on whats going on as ive done so many searches on this subject its driving me mad? :(

Link to comment
Share on other sites

See if you have caching turned ON. Your admin panel >> configuration >>cache

 

The stock osC caching only works when there's no session id present. On the first page view, there is one...and on subsequent ones there is not (that's normal) ...so that might explain why the stock menu reappears on the second click.

Link to comment
Share on other sites

Cool, I'm glad it worked.

 

If you want to be able to turn it back on later, you can just exclude the category box from caching by editing the includes/column_left.php

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

just change all of that to just simply....

 

include(DIR_WS_BOXES . 'categories.php');

 

:)

Edited by choosealogin
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...