I didn't see this anywhere...
I love the recently view feature, but it takes up more space than I want to give up... Has anyone changes this to just have the item description, an icon and the price (similar to the mini basket contents)?
If not, I will do it later today and post it.... almost been up 24 hours and I am pooped.
Making "Recently Viewed " with Icons
-
- Lieutenant, Jr. Grade (LT JG)
- Posts: 26
- Joined: Fri Oct 17, 2008 4:25 pm
Re: Making "Recently Viewed " with Icons
Hopefully you will get it with some CSS changes.
-
- Commodore (COMO)
- Posts: 433
- Joined: Wed May 28, 2008 9:42 am
- Location: Concord, NC
- Contact:
Re: Making "Recently Viewed " with Icons
I'd like to see this and also "New" items.
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Making "Recently Viewed " with Icons
I did to just show link it in the RecentlyViewed.ascx by leaving only this section in for display:
<ItemTemplate>
<p>
<b><a href="<%# Page.ResolveClientUrl(Eval("NavigateUrl").ToString()) %>"><%#Eval("Name")%></a></b><br />
</asp:PlaceHolder>
</p>
</ItemTemplate>
New Products- I think I got that from something Joe had posted on the forums. You can take an existing control and change the data source. I'm using the following instead of Featured Products code:
ProductList.DataSource=ProductDataSource.LoadForCriteria("DisablePurchase='0' and VisibilityId=0", 30, 0, "CreatedDate DESC");
30 is the count of products to show.
<ItemTemplate>
<p>
<b><a href="<%# Page.ResolveClientUrl(Eval("NavigateUrl").ToString()) %>"><%#Eval("Name")%></a></b><br />
</asp:PlaceHolder>
</p>
</ItemTemplate>
New Products- I think I got that from something Joe had posted on the forums. You can take an existing control and change the data source. I'm using the following instead of Featured Products code:
ProductList.DataSource=ProductDataSource.LoadForCriteria("DisablePurchase='0' and VisibilityId=0", 30, 0, "CreatedDate DESC");
30 is the count of products to show.
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
-
- Lieutenant, Jr. Grade (LT JG)
- Posts: 26
- Joined: Fri Oct 17, 2008 4:25 pm
Re: Making "Recently Viewed " with Icons
Got it.
Go to conlib/RecentlyViewed.ascx.cs
at line 100, you will see:
What the code is saying is to look at the PRODUCT table and Check the THUMBNAIL link. You are going to replace both instances of THUMBNAILURL with ICONURL, like this:
Go to conlib/RecentlyViewed.ascx.cs
at line 100, you will see:
Code: Select all
if (!string.IsNullOrEmpty(product.ThumbnailUrl))
{
thumbnail.ImageUrl = product.ThumbnailUrl;
thumbnail.Attributes.Add("hspace", "2");
thumbnail.Attributes.Add("vspace", "2");
}
Code: Select all
if (!string.IsNullOrEmpty(product.IconUrl))
{
thumbnail.ImageUrl = product.IconUrl;
thumbnail.Attributes.Add("hspace", "2");
thumbnail.Attributes.Add("vspace", "2");
}