Making "Recently Viewed " with Icons

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
smcfarland
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 26
Joined: Fri Oct 17, 2008 4:25 pm

Making "Recently Viewed " with Icons

Post by smcfarland » Thu Oct 23, 2008 1:03 am

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.

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

Re: Making "Recently Viewed " with Icons

Post by mazhar » Thu Oct 23, 2008 5:58 am

Hopefully you will get it with some CSS changes.

Robbie@FireFold
Commodore (COMO)
Commodore (COMO)
Posts: 433
Joined: Wed May 28, 2008 9:42 am
Location: Concord, NC
Contact:

Re: Making "Recently Viewed " with Icons

Post by Robbie@FireFold » Thu Oct 23, 2008 6:15 am

I'd like to see this and also "New" items.
Robbie Hodge
General Manager
Robbie@FireFold.com
http://www.FireFold.com

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

Re: Making "Recently Viewed " with Icons

Post by jmestep » Thu Oct 23, 2008 7:03 am

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.
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

smcfarland
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 26
Joined: Fri Oct 17, 2008 4:25 pm

Re: Making "Recently Viewed " with Icons

Post by smcfarland » Mon Oct 27, 2008 7:56 am

Got it.

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");
                }
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:

Code: Select all

                if (!string.IsNullOrEmpty(product.IconUrl))
                {
                    thumbnail.ImageUrl = product.IconUrl;
                    thumbnail.Attributes.Add("hspace", "2");
                    thumbnail.Attributes.Add("vspace", "2");
                }

Post Reply