Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Link to problem with categories menus


IBeaumont

Recommended Posts

Posted

I have a number of categories on my site, and I have also created a "Sale" category. When an item is on Sale, I link that product into the Sale category. All works fine.

 

The problem I have is that if a user selects one of the products in the "Sale" category the category menus change to show the location of the original product. I want the menus to remain pointing at the "Sale" category as this gets confusing for the user.

 

So if my menus look like this:

Clothes->Womens->Tops

Clothes->Womens->Dresses

Sale->Size Small

Sale->Size Medium

Sale->Size Large

 

So if I put a dress on sale, I link it into all the size categories that are appropriate. If the user however selects Sale->Size Small and clicks on the dress, the Category menus change to select "Clothes->Womens->Dresses". This is confusing for the user.

 

Any ideas if it is possible to fix this?

 

TIA

Ian

Posted

do you have a url?

 

what are you doing with cpath?

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

Yes it will, as I though your product links do not include the cpath, when clicked application_top detects cpath is not set, so finds default cpath to product, thats then used by your categories box.

 

Solution: include cpath in product url for sale items, but add a no-follow to prevent duplicate issues.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

Thanks, that seems to have fixed it. I added the cPath to the product URLs.

I'm not sure what you mean by "but add a no-follow to prevent duplicate issues" though.

Posted
Thanks, that seems to have fixed it. I added the cPath to the product URLs.

I'm not sure what you mean by "but add a no-follow to prevent duplicate issues" though.

 

 

$link = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id'] . '&cPath=' . $cPath ) . '" rel="nofollow" >';

 

When there are multiple paths to products google will detect duplicate content & may then apply a penalty.

 

See http://www.oscommerce.com/forums/index.php?sho...=307749&hl= and http://www.oscommerce.com/forums/index.php?sho...c=314234&hl=

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Archived

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

×
×
  • Create New...