Phoca Gallery is the best gallery component that I have come across for Joomla. It only lacks the ability of displaying plugins in the descriptions. That would allow a SimpleCaddy plugin to sell your pictures, straight from the gallery.
See a demonstration here: http://demo15.atlanticintelligence.net/index.php?option=com_phocagallery&view=category&id=1&Itemid=73
As you already know, I am not a fan of hacking other people’s code, mostly because after an update, I will have to do this again. Jan Pavelka from Phoca (http://phoca.cz) promised to look into the matter. Until then, you can download the modified files on http://atlanticintelligence.net.
Once the integration is done by Jan, I will remove the hacked files from the download section.
So, once you have downloaded the updates to the different files and uploaded them to your server, what else needs to be done?
In Phoca Gallery, you will need to edit the description of each of your images you want to sell. Since you already add descriptions, this is only a small extra step.
Add the simplecaddy code as follows:
Note the picname= parameter, this one is very important. It corresponds to the name of the picture you want to sell and that the customer is currently viewing. If you have a different system of naming your pictures, please use that.
Only the updated version of the simplecaddy files will provide support for Phoca Gallery for now.
Now when you are viewing your pictures, you should see the following:
As you can see, this is the lightbox version of the full display of the pictures. Your PG settings should obviously show the description of the picture.
Clicking the Add-to-Cart button adds the picture to the cart, including options and additionally the picture name. It ends up in the cart like this:
All product options are allowed, formulas and captions. The picture name is appended to the option chosen and will show in the orders in the SimpleCaddy administration.