adding product summary to category grid
adding product summary to category grid
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?
Summary doesn't appear on Product 1, or product1 with options grid either. Is there any page that Product "Summary" will appear on?
Mike Keith
http://www.musicmart.com
http://www.musicmart.com
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: adding product summary to category grid
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
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
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
Re: adding product summary to category grid
I'd like to add it to CategoryGridPage2.ascs and i'm guessing Product.aspx (the content says Show Product 1)
Mike Keith
http://www.musicmart.com
http://www.musicmart.com
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: adding product summary to category grid
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:
$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
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
Re: adding product summary to category grid
I've changed the category page, but i don't see where i should place the following:This should work on Show Product 1.htm
$Product.Summary
"$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
Mike Keith
http://www.musicmart.com
http://www.musicmart.com
Re: adding product summary to category grid
You have to place the
code line in Website/App_Data/Scriptlets/Default/Contents/Show Product1.htm
Code: Select all
$Product.Summary
Re: adding product summary to category grid
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.
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.
Re: adding product summary to category grid
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.
Mike Keith
http://www.musicmart.com
http://www.musicmart.com
Re: adding product summary to category grid
You can go with any of them.
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: adding product summary to category grid
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
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
Re: adding product summary to category grid
Which category page does "Summary" show up on by default (without adding code manually)?
Mike Keith
http://www.musicmart.com
http://www.musicmart.com
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: adding product summary to category grid
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
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
Re: adding product summary to category grid
Can I add this same code to [[ConLib:CategoryGridPage]] and show a product summary?
Bryan Bundgaard
AC7 User http://www.SchoolSupplyStore.com
AC7 User http://www.SchoolSupplyStore.com
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: adding product summary to category grid
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.
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
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