Adding icons to CategoryList Page

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
loafintree
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Tue Jun 30, 2009 2:10 pm

Adding icons to CategoryList Page

Post by loafintree » Fri Aug 07, 2009 8:21 am

The Category List Page seems to be the best fit for my customer but they would like to customize it. I've been able to do most of what was asked but I haven't figured out how to add icons of the products into the rows. Has anyone done this or able to help?

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

Re: Adding icons to CategoryList Page

Post by mazhar » Fri Aug 07, 2009 8:51 am

Read last post by me in following thread.
viewtopic.php?f=47&t=9343
Its about adding product thumbnail to product list.

loafintree
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Tue Jun 30, 2009 2:10 pm

Re: Adding icons to CategoryList Page

Post by loafintree » Fri Aug 07, 2009 12:35 pm

Thanks. That helped. I was able to add the image but where there is no image available I get the dreaded red "x" . I obviously need some sort of if>then statement to point to a generic "no photo available" image when there is no product image available but I'm not sure how to do that.

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

Re: Adding icons to CategoryList Page

Post by mazhar » Sat Aug 08, 2009 12:35 am

It will be something like

Code: Select all

if(!string.IsNullOrEmpty(product.ThumbnailUrl))
{
//thumbnail code here
}
else
{
//image not found code here
}

Post Reply