Hello all!
In this post I want to describe how you can integrate Image Uploader into Virtuemart (a free, open source e-commerce solution based on joomla CMS). This post was inspired by this question:
how to integrate aurigma with virtuemart.
Introduced sample application provides basic functionality:
- a customer can easily upload photos and specify params like quantity & paper size;
- uploaded photos are placed into customer's shopping cart, where he/she can finish order processing.
If you are looking for similar stand-alone sample - take a look at
Aurigma Image Uploader Demos - Photo Order Demo.
Short description of how it worksAfter installation, application creates a new product named
photo in the Virtuemart database. Each ordered photo will be presented as an instance of the
photo product. All additional information, like image, size, paper type, number or prints, etc. will be stored as attibutes. Here is the list of used attributes:
- *imagepath - path to the image to print
- *Quantity - number of ordered prints
- Size
- Paper type
Marked with (*) are the attributes that are obligatory and used inside the application code. The rest were added for illustration and can be edited/removed without any consequences.
Here is a screenshot of customer's front-end page of the PhotoOrder application.

It contains an embedded Image Uploader control and additional fields which automatically reflect all attributes from the
photo product.
After user uploads images, the uploaded images appear in his shopping cart.
How to install PhotoOrder sampleI assume you have installed joomla and virtuemart already and have administrative access to it. If so, you need to take only a few steps to complete:
- Download the photoorder component attached to this post. Go to the Extension Manager and install this component. It should appear in the components list.

- Go to Product List in Virtuemart Administration and find photo product (SKU == photo). Click on it to edit and specify product's price.
- Next step is to add a link to the page which will be seen by customers. Go to the Menu Manager and add a new menu item into the main menu. Set the menu item type to photoorder, title to Upload Photos, parent item is Top.

Thats all! Now we are ready to receive photo orders. Open the virtuemart front-end and click on the 'Upload Photos' link in the main menu. Add some images to upload and specify order details. For every image that you select for upload, you can see the order details under the filename. Then click Send button and wait until all images have been uploaded. Now you can go to the cart and make sure the uploaded images are now in the cart.
That's all, hope this was helpful. If you have any thoughts about it - feel free to post them there.
P.S.We made a small customization of previous photoorder version. The difference is that one creates three products (photo, poster and shildersdoek) in the photo category. Also there are two views has been added. One for ordering particular product and another - photo products list. Download
photoorder2.zip to get it.
Best regards,
Andrew Mironov
Edited by user Monday, May 31, 2010 11:02:40 PM(UTC)
| Reason: Not specified
File Attachment(s):
andreym attached the following image(s):