Putting Category Content at Bottom

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:

Putting Category Content at Bottom

Post by kwikstand » Fri Aug 23, 2013 6:18 pm

In AC 7.0.7, I customized the CategoryGridPage4 to display the content at the bottom, below the the products and subcategories. How can this be done in AC Gold?

Thanks,

Scott Kahle
Contractor's Solutions
www. contractors-solutions.net

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Putting Category Content at Bottom

Post by kwikstand » Sat Aug 24, 2013 11:37 am

I figured it out. I hade to move the followig code on the CategoryGridPage4.ascx:

Code: Select all

<asp:PlaceHolder ID="CategoryDescriptionPanel" runat="server" EnableViewState="false">
	<div class="section">
		<div class="content">
		<asp:Literal ID="CategoryDescription" runat="server" Text="" EnableViewState="false" />		
		</div>
	</div>
	</asp:PlaceHolder>
to just above </ContentTemplate>

What I would like to be able to do now, is have two areas for description / content. One at the top for a short description and one at the bottom for more informative content. For example; in the top area, I could desribe what the category is or have a slaes message. Like possibly "We offer several quality brands of scaffolding.
Choose the type that meets your application; Construction, maintenance, interior, exterior, etc. BLAH, BLAH sale stuff. Maybe a graphic or slider.

The bottom could be for technical informative content like how to choose the type and options to meet your requirements and safely setting up scaffolding.

The problem is, now the admin page needs to have a field in which to add content.

Is this possible?

Thanks,

Scott Kahle
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: Putting Category Content at Bottom

Post by jmestep » Mon Aug 26, 2013 5:44 am

Are you using your category summary field for something else? If no, you can populate the top with that and the bottom with the category description.
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

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Putting Category Content at Bottom

Post by kwikstand » Mon Aug 26, 2013 8:15 am

The summary field doesn't show up on category pages. Is there a way to make it show up there too? It would be a dual use filed.
Contractor's Solutions
www. contractors-solutions.net

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Putting Category Content at Bottom

Post by kwikstand » Mon Aug 26, 2013 9:19 am

I just realized that the CategoryDetailsPage does show the summary at the top but not the long description. I tried to figure how that works so I can modify the CategoryGridPage4 to do that and keep the decroption at the bottom as well. I can't seem to figure it out. They both use: <asp:Literal ID="CategoryDescription" runat="server" EnableViewState="false"></asp:Literal>
But it seems to mean different things in each page.

Any suggestions?
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: Putting Category Content at Bottom

Post by jmestep » Tue Aug 27, 2013 5:58 am

You would need to look at the code behind file (ends in .ascx.cs) and search for what populates the CategoryDescription literal, something like CategoryDescription.Text = xxxx;
You can add a new literal with a different name and populate that from the code behind also - one with the summary, the other with the description.
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

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Putting Category Content at Bottom

Post by kwikstand » Tue Aug 27, 2013 8:21 am

Thanks. I think I need to read up on .NET. I think I need to also add

Code: Select all

asp:PlaceHolder ID="CategorySummaryPanel"......
Maybe something like:

Code: Select all

<asp:PlaceHolder ID="CategorySummaryPanel" runat="server" EnableViewState="false">
	<div class="section">
		<div class="content">
		<asp:Literal ID="CategorySummary" runat="server" Text="" EnableViewState="false" />		
		</div>
	</div>
	</asp:PlaceHolder>
But I don't know how to add an ID. I think I have a book on .NET somewhere.
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: Putting Category Content at Bottom

Post by jmestep » Wed Aug 28, 2013 5:02 am

You can make the id anything you want as long as there isn't something else on the page with the same id. The id is usually something to indicate fairly clearly what the control is for.
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

Post Reply