KonaKart Community Forum

General Category => Miscellaneous => Topic started by: yuanja on September 04, 2007, 02:57:32 am

Title: Mulitple pictures?
Post by: yuanja on September 04, 2007, 02:57:32 am
Hi there, this app has everything I wanted.  i am pleased that things just work right out of the box.  Good job.

How can I add muliple pictures for a product?  I looked at the schema and it seems that it's not supported out of the box.  I might have to add extensions to the data model to support it.  But how do I customize the app to handle it?

Thanks
James.
Title: Re: Mulitple pictures?
Post by: trevor on September 04, 2007, 06:05:46 am
Hi James,

Probably the easiest way to do this is to use the custom fields to store the filenames of the other images.  There are 5 custom fields on product for you to use as you wish.

These custom fields are returned/updated by the KonaKart APIs just as the others are, so you use them in the same way as the other attributes in the app.   Therefore I would look at the way the app uses prod.getImage() and make the necessary changes to use prod.getCustom1() or whatever is appropriate for your needs.

(There are similar custom attributes available on other objects such as customer, order, manufacturer etc.  They can all be maintained via the KonaKart Admin APIS - and also by using the KonaKart admin App).

Good luck,

Trevor