Designating Product Types

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Designating Product Types

Post by kwikstand » Sun Aug 21, 2016 7:08 am

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
Contractor's Solutions
www. contractors-solutions.net

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Designating Product Types

Post by jmestep » Sun Aug 21, 2016 11:30 pm

You can try a couple of different things. In ProductPage.ascx.cs, it uses

Code: Select all

_CategoryId = AbleCommerce.Code.PageHelper.GetCategoryId();
You could also do something like the following to see if a product is in category 2 and act upon that.

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Designating Product Types

Post by mazhar » Sun Aug 21, 2016 11:34 pm

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.

Post Reply