Divide the Description of a category page into 2 parts

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
Jaz
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Nov 05, 2008 4:04 am
Location: Torrance, CA
Contact:

Divide the Description of a category page into 2 parts

Post by Jaz » Mon Sep 20, 2010 10:39 pm

On my category pages, I want to put a significant amount of information in the description tag. Some of this information is relevant for immediate decisions by the customer and other information is just details that a few people will want to read. More importantly, this information will be valuable to search engines.

The problem I have, is that if I provide all the information I want on the page it will push all the categories or products to the bottom of the page. Obviously this is a bad place for my links to be. If I move the descriptions below the category buttons, the relevant information for my customers will be at the bottom of the page.

So my questions is, can I put a brief description at the top of the page and a detailed description under the category links? I know there is only one description field, but there has to be a way around this.

Thanks,
David Jasiewicz
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: Divide the Description of a category page into 2 parts

Post by plugables » Tue Sep 21, 2010 3:22 am

There are 3 fields you can use for descriptions. Summary, Description and Detailed Description (More Details). There are a number of ways you can handle this
- You can use Summary at the top and description/more description under category links.
- Or you can use Description at the top and Detailed Description under category links.
- Or you can create a new custom field or template field and use it for description
- Or if you insist on using the same field for both brief description at top and detailed description after category links you can truncate first say 200 characters from the description and use it at the top and use the remaining characters later.

User avatar
Jaz
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Nov 05, 2008 4:04 am
Location: Torrance, CA
Contact:

Re: Divide the Description of a category page into 2 parts

Post by Jaz » Tue Sep 21, 2010 4:57 am

Thanks.

I think I want to use the Summary as intended so that one is out.

I do not use the detailed description for anything, so this would be ideal, but detailed description is only available for products, not categories. Is there a way to add detailed description to categories?

I know you offer a plugin for custom fields, and that was the first place I went, but does it work for categories, or just for products? If it does work for categories, can I call out to have one of the custom fields to be at the top. This would be my ideal solution if you can tell me how to make it work. I am not a programmer, but I follow instructions well.

The last option sounds the least desirable but would work if there are not any other options, but I am not sure how i would call this out.

Thanks,
David Jasiewicz
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --

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

Re: Divide the Description of a category page into 2 parts

Post by jmestep » Tue Sep 21, 2010 7:18 am

You could put some kind of text in the description, like [split]. Then look for that text and put the characters before it into one location and the characters after it into another.
Or you might try something like in this site- it is an Able 5 site where she put classes inside the description for different sections, then used css classes for the expansion- you can see those by viewing her style sheet.
http://www.backdesigns.com/BetterBack-w ... 1C119.aspx
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

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: Divide the Description of a category page into 2 parts

Post by plugables » Tue Sep 21, 2010 10:13 am

Jaz, I do have the customization code that allows custom fields UI for categories. It was never compiled in form of a plugin and put on the store as I thought it is not something that would be needed commonly.
You can get the custom fields UI for products from http://www.plugables.com/Product-Custom ... I-P20.aspx
For custom fields UI for categories you can contact us at http://www.plugables.com/ContactUs.aspx

User avatar
Jaz
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Nov 05, 2008 4:04 am
Location: Torrance, CA
Contact:

Re: Divide the Description of a category page into 2 parts

Post by Jaz » Tue Sep 21, 2010 6:12 pm

Thanks Judy. I think that would work, but it looks like the plugables solution will be easier.

My question with plugables is, what is involved with calling out the part of the description that I want at the top of the page? I assume this is done with some type of CSS call out or something. I am ready to buy the plugables plugin, but i need to know that I can get the details on how to make it do what I need it to.

Thanks,
David Jasiewicz
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: Divide the Description of a category page into 2 parts

Post by plugables » Wed Sep 22, 2010 2:44 am

Ability to set the custom field is one aspect. The ability to display it at the desired location is another. By default custom fields will get displayed on the product page after the description. In order to display a certain custom field at in a certain way you will need some custom code. Examples of how to access and display the custom fields may be found in some other posts in forum.

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: Divide the Description of a category page into 2 parts

Post by plugables » Wed Sep 22, 2010 2:50 am

You have something similar to this code to access the custom field and display it

Code: Select all

        foreach (ProductCustomField customField in Product.CustomFields)
        {
            if (customField.FieldName == "NAME_OF_THE_CUSTOM_FIELD_IM_INTERESTED_IN")
                {
                    if (!string.IsNullOrEmpty(customField.FieldValue))
                        {
                            //This is the field I am interested in.
                            //Set the value of corresponding display field on the page and make it visible
                            MY_FIELD.Text = customField.FieldValue;
                            MY_FIELD.Visible = True;
                            break;
                        }
                }
        }
Replace 'NAME_OF_THE_CUSTOM_FIELD_IM_INTERESTED_IN' and 'MY_FIELD' with appropriate values.

User avatar
Jaz
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Nov 05, 2008 4:04 am
Location: Torrance, CA
Contact:

Re: Divide the Description of a category page into 2 parts

Post by Jaz » Wed Sep 22, 2010 7:09 pm

Thanks, I have to go out of town, but I will look at it next week and see how it goes.
David Jasiewicz
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --

User avatar
hassonmike
Lieutenant (LT)
Lieutenant (LT)
Posts: 76
Joined: Tue Apr 19, 2011 2:13 pm
Contact:

Re: Divide the Description of a category page into 2 parts

Post by hassonmike » Tue May 17, 2011 4:21 pm

So its been a few months since this has been active, but I am taking over for Jaz on this project and would like catch up on all this so that we finally find a solution to this.

At this point, I'm wondering where this code specified by Plugables is applied to, and if this would interfere with our custom templates.

Post Reply