• Welcome to KonaKart Community Forum. Please login or sign up.
 

Get all images for a specific Product

Started by tqumhieh, February 27, 2013, 09:16:01 am

Previous topic - Next topic

tqumhieh

Hi Guys,

How can I get all images for a specific product? in addition of getting the number of available images using Server APIs as product.getImage() returns one image, however product.getImageX() return null for all products.

ming

How you use the image fields is up to you.   One common usage is for one one of the image fields on the product to be populated and all the names of media relating to that product being derived from that name.... eg  you could store "bike" in the Image() field and have 3 images on the  filesystem called bike1.jpg, bike2.jpg, bike3.jpg and bike4.jpg.

v6.5.0.0 introduces a new way of loading images for a product which is a lot simpler from an Admin perspective - and allows the automatic sizing of a definable set of image sizes for each image that's loaded.