php shopping cart
free shopping cart   shopping cart software

Free Shopping Cart PHP Software

thumbnailer

Back to Functions List
This Function Has Been Available Since:
(AFCommerce v 2.1,     Functions v 1.1)

Calculates a height to be used as a thumbnail for an image.

Description

integer = thumbnailer (prodimage, mode)

Creates a thumbnail image for a product's image based on the mode that is passed when the function is called. It returns a different size thumbnail depending on if mode is for a product or for a category.


Parameters

prodimage (string) - The image for the product. This should be a relative path to the file, i.e. images/someproduct.jpg

mode (string) - Whether the thumbnail is for a product or category. When mode = "prod", which is used on the getproduct.php page, the maximum size of the thumbnail will be 200 pixels. When mode = "cat", which is used on the getcategory.php page, the maximum size of the thumbnail will be 150 pixels.

Return Values

Returns an integer representing the height that should be used in an image (img) html tag.

Open Source: No

Paul's Examples


Check getproduct.php and getcategory.php for specific examples.



Back to Functions List




thumbnailer

There are currently no posts for this topic.











AFCommerce Documentation


High End Website DevelopmentCompletely Free
Dating Service
Copyright 2004 - 2006
www.afcommerce.com
AFCommerce Website
And Cart Builder