Is there a way to designate product pages as part of a category or some other type?
There are various things you can do depending on the product type that is viewed. For example, you can serve appropriate ads to people that have viewed a type of product on your website. You can have a pop-up or widget display for product pages belonging to a certain category. This is usually done with the URL, but it needs to have the category name in it, like http://www.website.com/catgoryA/prodcutB. Able's URL's don't have that anymore.
I am just wondering if there is some way to work around this.
Thanks
Designating Product Types
Designating Product Types
Contractor's Solutions
www. contractors-solutions.net
www. contractors-solutions.net
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Designating Product Types
You can try a couple of different things. In ProductPage.ascx.cs, it uses
You could also do something like the following to see if a product is in category 2 and act upon that.
Code: Select all
_CategoryId = AbleCommerce.Code.PageHelper.GetCategoryId();
Code: Select all
if(_Product.Categories.IndexOf(2)>-1)
{
//do something
}
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
Re: Designating Product Types
If its just about showing different content then without any code changes you can do it via Product Batch editing and setting product specific display page. For example you can batch edit products under certain category and choose some specific display page for each of them. Those products will be served using selected display page instead of store's default product display page.
Regarding URL having certain format, either you can use custom URL feature or write your own UrlRewriter.
Regarding URL having certain format, either you can use custom URL feature or write your own UrlRewriter.