Displaying text if Product Image is not available.

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Displaying text if Product Image is not available.

Post by Mike718NY » Thu Jul 24, 2008 10:40 am

For the Product page image, "ImageURL", I want to display
some text if there is not image available (NULL in the database).

ShowProduct.htm

If [[ConLib:ProductImage ShowImage="Image"]]
then <font> some text . . . .

Can this be done? thanks

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

Re: Displaying text if Product Image is not available.

Post by mazhar » Thu Jul 24, 2008 11:00 am

Hopefully it will help you

Code: Select all

#if($Product.ImageUrl.Length==0)
//Your Custom Text
#else
[[ConLib:ProductImage ShowImage="Image"]]<br />
#end

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Displaying text if Product Image is not available.

Post by Mike718NY » Thu Jul 24, 2008 12:28 pm

That worked. Thanks Mazhar.

Post Reply