Products in two categories
Products in two categories
Has anybody seen this one:
If a product is in two categories, the product detail page will switch to the category that has the lowest CategoryID (in the ac_Categories table) when the product is selected.
This is a problem since the "breadcrumb" trail will change. Also (in our case) the theme changes.
Any ideas?
If a product is in two categories, the product detail page will switch to the category that has the lowest CategoryID (in the ac_Categories table) when the product is selected.
This is a problem since the "breadcrumb" trail will change. Also (in our case) the theme changes.
Any ideas?
I saw that too during my site testing. I ended up reverting to one-category-per-product for other reasons so it never became a factor for me. I haven't seen anyone else mention it in the forums which surprises me.
Wish I had a solution for you - that would really mess up user presentation with themed category designs.
Wish I had a solution for you - that would really mess up user presentation with themed category designs.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
In 5.5 the dual category worked OK because the Category ID was passed in the URL. I experimented in 7 with the C# in the URL and the product retained the category it was in and the breadcrumbs worked OK. For example, the end of one of my URLs is P6C9.aspx.
It might be possible to do something with the rewrite rules, but I'm not into AC7 that deep yet. In the App_Code folder, there is a RewriteURLLookupEngine.cs
It might be possible to do something with the rewrite rules, but I'm not into AC7 that deep yet. In the App_Code folder, there is a RewriteURLLookupEngine.cs
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
I did find this line commented out in the above .cs file
// <add key="-(C|P|W)\(\d+(?:\|\d+)*)\)" (?:C(\d*))?\.aspx(?:\?(.*))?" value="$1/product1.aspxproduct1.aspx?Product_ID=$2&Category_ID=$3&$4" />
But I got this error when I uncommented it:
CS1009: Unrecognized escape sequence
Maybe it's something Able is still working on?
// <add key="-(C|P|W)\(\d+(?:\|\d+)*)\)" (?:C(\d*))?\.aspx(?:\?(.*))?" value="$1/product1.aspxproduct1.aspx?Product_ID=$2&Category_ID=$3&$4" />
But I got this error when I uncommented it:
CS1009: Unrecognized escape sequence
Maybe it's something Able is still working on?
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Will, I thought maybe there was a setting in the admin to define rewrite rules. Did you have to make any changes or did yours show C in the URL automatically? Or does it not show C and the breadcrumbs are still OK?
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Here is my understanding:
For products which are in multiple categories, AbleCommerce uses the 'C' part of the product URL to determine which category is selected to be displayed in the breadcrumbs.
In terms of whether the 'C' part is present in the product URLs, this is dependant on which category template you use. E.g. "Category Grid Page 2" uses the 'C' URLs, wherease "Category Grid Page" (the default) doesn't.
For products which are in multiple categories, AbleCommerce uses the 'C' part of the product URL to determine which category is selected to be displayed in the breadcrumbs.
In terms of whether the 'C' part is present in the product URLs, this is dependant on which category template you use. E.g. "Category Grid Page 2" uses the 'C' URLs, wherease "Category Grid Page" (the default) doesn't.
Mitch
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Mitch, thanks for this info. I couldn't figure out why it worked for some stores and not for others.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx