adding product summary to category grid

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
mkeith1
Commander (CMDR)
Commander (CMDR)
Posts: 120
Joined: Wed Jul 25, 2007 12:46 pm
Contact:

adding product summary to category grid

Post by mkeith1 » Mon Sep 08, 2008 1:29 pm

I didn't see a post on adding the product summary field to any of the category grid pages. I've tried changing the contents of the page using each of the category grids, but it doesn't appear.

Summary doesn't appear on Product 1, or product1 with options grid either. Is there any page that Product "Summary" will appear on?

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

Re: adding product summary to category grid

Post by jmestep » Mon Sep 08, 2008 3:26 pm

It can be added to category conlibs. Which one are you wanting to add it to?
You could add it to product page also, code would depend on where you wanted to put it.If you add it to scriplets/content/ Show Product.htm, it would be something like
$Product.Summary
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

mkeith1
Commander (CMDR)
Commander (CMDR)
Posts: 120
Joined: Wed Jul 25, 2007 12:46 pm
Contact:

Re: adding product summary to category grid

Post by mkeith1 » Mon Sep 08, 2008 4:58 pm

I'd like to add it to CategoryGridPage2.ascs and i'm guessing Product.aspx (the content says Show Product 1)

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

Re: adding product summary to category grid

Post by jmestep » Mon Sep 08, 2008 5:57 pm

This should work on Show Product 1.htm
$Product.Summary


On CategoryGrid2.ascx.cs, this would put it right under the product rating -- last two lines are the new code:

Code: Select all

                    //OUTPUT RATING
                    if (Token.Instance.Store.Settings.ProductReviewEnabled != CommerceBuilder.Users.UserAuthFilter.None)
                    {
                        itemTemplate2.Controls.Add(new LiteralControl(string.Format("<br /><img src=\"{0}\" />", NavigationHelper.GetRatingImage(product.Rating))));
                    }
                    itemTemplate2.Controls.Add(new LiteralControl("<br/>"));
                    itemTemplate2.Controls.Add(new LiteralControl(product.Summary));
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

mkeith1
Commander (CMDR)
Commander (CMDR)
Posts: 120
Joined: Wed Jul 25, 2007 12:46 pm
Contact:

Re: adding product summary to category grid

Post by mkeith1 » Thu Sep 11, 2008 3:20 pm

This should work on Show Product 1.htm
$Product.Summary
I've changed the category page, but i don't see where i should place the following:

"$Product.Summary"

there isn't a page called product 1.htm.

i've added this as per above

itemTemplate2.Controls.Add(new LiteralControl("<br/>"));
itemTemplate2.Controls.Add(new LiteralControl(product.Summary));

to CategoryGrid2.ascx.cs

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

Re: adding product summary to category grid

Post by mazhar » Fri Sep 12, 2008 12:39 am

You have to place the

Code: Select all

$Product.Summary
code line in Website/App_Data/Scriptlets/Default/Contents/Show Product1.htm

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Re: adding product summary to category grid

Post by sohaib » Fri Sep 12, 2008 7:48 pm

Recommended Good Practice
Please avoid using scriptlets for display purposes. Use them only to control the layouts.
To change what is displayed on the page customize the corresponding conlib controls.

mkeith1
Commander (CMDR)
Commander (CMDR)
Posts: 120
Joined: Wed Jul 25, 2007 12:46 pm
Contact:

Re: adding product summary to category grid

Post by mkeith1 » Tue Sep 16, 2008 3:54 pm

sohaib wrote:Recommended Good Practice
Please avoid using scriptlets for display purposes. Use them only to control the layouts.
To change what is displayed on the page customize the corresponding conlib controls.

OK, on a different note, is "summary" supposed to be a field that a customer can view? or is that field for only the merchant to view when editing/viewing a product on the merchant side. Should what i'm typing in that field go in the "Description" field, and what's in that field be moved to the "More Description" Field?, because that would also solve the problem.

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

Re: adding product summary to category grid

Post by mazhar » Tue Sep 16, 2008 9:01 pm

You can go with any of them.

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

Re: adding product summary to category grid

Post by jmestep » Wed Sep 17, 2008 3:41 pm

Summary is supposed to be a field for the customer to view, but it was mostly used on the category display pages as a short blurb, then the other two description fields display on the product pages.
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

mkeith1
Commander (CMDR)
Commander (CMDR)
Posts: 120
Joined: Wed Jul 25, 2007 12:46 pm
Contact:

Re: adding product summary to category grid

Post by mkeith1 » Mon Sep 22, 2008 10:55 am

Which category page does "Summary" show up on by default (without adding code manually)?

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

Re: adding product summary to category grid

Post by jmestep » Mon Sep 22, 2008 1:00 pm

CategoryGridPage4.ascx.cs
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
Tomgard
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 108
Joined: Sun Jul 20, 2008 1:00 pm

Re: adding product summary to category grid

Post by Tomgard » Mon Sep 22, 2008 7:32 pm

Can I add this same code to [[ConLib:CategoryGridPage]] and show a product summary?
Bryan Bundgaard
AC7 User http://www.SchoolSupplyStore.com

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

Re: adding product summary to category grid

Post by jmestep » Tue Sep 23, 2008 8:23 am

You should be able to-I've added it in other places. You might have to change the
itemTemplate1.Controls.Add(new LiteralControl(catalogNode.Summary));
to itemTemplate2 .......
depending on where you want to display it.
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