Miva Merchant 4 Module FAQs » Category Page Templates (BROK_CTGYTEMPLATES)


{docurl}

Using Tokens To Conditionally Display Alternate Images

Are there tokens to conditionally display an alternate image if the product has no image or if the image is missing? (2003/05/30)

Yes, conditional tokens have been added:

%begin_hasimage%...%end_hasimage% displays contents if product image file exists
%begin_hasnoimage%...%end_hasnoimage% displays contents if product image file does not exist
%begin_hasthumbnail%...%end_hasthumbnail% displays contents if product thumbnail file exists
%begin_hasnothumbnail%...%end_hasnothumbnail% displays contents if product thumbnail file does not exist
%begin_nopricediscount%...%end_nopricediscount% displays contents if the list price is NOT lower than product price
%begin_nocostdiscount%...%end_nocostdiscount% displays contents if the price is NOT lower than the cost

which you can use for this. For example, to display a generic image in the place of missing images you would replace the %prodimage% token with:

%begin_hasimage%
%prodimage%
%end_hasimage%
%begin_hasnoimage%

%end_hasnoimage%



Last update: 2003-07-29 00:16
Author: Support
Revision: 1.0

Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

Records in this category