Category web page item

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Category web page item

Post by AbleMods » Wed Oct 03, 2007 5:01 pm

Are web page item types working?

I create a new category and add a web page with some sample text.

The category shows in the store but clicking it doesn't any items in the category.
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

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Post by Shopping Cart Admin » Wed Oct 03, 2007 5:08 pm

Hello Joe,

It depends on the category page you're using for display of the categories. All but one of the category pages are optimized for use with only products since that's the focus of our product.

To get an idea of the display options, run though the available category display pages.

The 'Category List' page is currently the only page which will display webpages.
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Post by AbleMods » Wed Oct 03, 2007 6:34 pm

Ok, didn't realize that. I figured it would just show up listed like any other item.

Just a suggestion, why not make the option to show web page items selectable at the category level instead of via a particular page design or ConLib?

That would give some flexibility for webpage-only categories, like reference materials and such that are informational in nature. If that were possible, I could create detailed reference pages with specific product technical specs that go beyond a particular product page. Or, product manuals for download etc.

I'll play some more with that category list page and see what I can do with it - perhaps I can produce the same result as I just described.
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

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Post by Logan Rhodehamel » Thu Oct 04, 2007 8:32 am

SolunarServices wrote:I'll play some more with that category list page and see what I can do with it - perhaps I can produce the same result as I just described.
I think you should be able to do exactly what you described. The display page can definitely be set at the category level. There is an overall "store" default setting, but then for each category you can override. The override setting can be accessed either in the on screen editor when viewing the category, or you can get to it by editing the category through the admin catalog interface.

Some category designs just don't lend themselves nicely to mixed content. For example, where to include webpages in a category view that is sorted by manufacturer?
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

User avatar
mfreeze
Commodore (COMO)
Commodore (COMO)
Posts: 421
Joined: Mon Jan 24, 2005 2:07 pm
Location: Washington, NJ
Contact:

Re: Category web page item

Post by mfreeze » Tue Apr 01, 2008 5:22 pm

I have a category called 'recipes'. I selected CategoryListPage as the display page and the webpage still doesn't display. I added the same info as a product and it displays fine.

What am I doing wrong?

I looked at the categorylistpage.ascx. and I see the following at line 93:

//INITIALIZE THE CONTENT NODES
_ContentNodes = new CatalogNodeCollection();
foreach (CatalogNode node in _Category.CatalogNodes)
{
if ((node.CatalogNodeType == CatalogNodeType.Product)
&& (node.Visibility == CatalogVisibility.Public)) _ContentNodes.Add(node);
}

Trace.Write(this.GetType().ToString(), "Load Complete");
}

Granted, I am an ASP novice but shouldn't there be a line to add CatalogNodeType.Webpage?

I tried adding the following but it blew up with the message [[ConLib:Custom/CategoryListPage]] d:\hshome\buffalo\buffalogal.com\ConLib\Custom\CategoryListPage.ascx.cs(101): error CS0103: The name 'node' does not exist in the current context :

{
if ((node.CatalogNodeType == CatalogNodeType.Webpage)
&& (node.Visibility == CatalogVisibility.Public)) _ContentNodes.Add(node);
}
Mary E Freeze

Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development

http://www.ffgraphics.com

User avatar
mfreeze
Commodore (COMO)
Commodore (COMO)
Posts: 421
Joined: Mon Jan 24, 2005 2:07 pm
Location: Washington, NJ
Contact:

Re: Category web page item

Post by mfreeze » Tue Apr 01, 2008 7:41 pm

I swallowed my pride and called one of my ASP developers. I wasn't far off. She changed the code to:

//INITIALIZE THE CONTENT NODES
_ContentNodes = new CatalogNodeCollection();
foreach (CatalogNode node in _Category.CatalogNodes)
{
if ((node.CatalogNodeType == CatalogNodeType.Product)
&& (node.Visibility == CatalogVisibility.Public)) _ContentNodes.Add(node);

if ((node.CatalogNodeType == CatalogNodeType.Webpage)
&& (node.Visibility == CatalogVisibility.Public)) _ContentNodes.Add(node);
}
Trace.Write(this.GetType().ToString(), "Load Complete");
}

Now it's displaying web pages!!! WooHoo! Amazing what removing a couple of brackets will do.....
Mary E Freeze

Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development

http://www.ffgraphics.com

Post Reply