Code to integrate FoxyCart with SlideShowPro for ecommerce-enabled slideshows. Adds “Purchase This Photo: (Size Drop-Down) (Add To Cart Button)” purchase controls for each image with defined costs.
In the sspfc layer of the template, edit the actionscript sspfc_foxycart_url variable to your foxycart URL.
In the content layer of the template, add your SSP instance, and name it my_ssp. Or, you can edit the sspfc_ssp variable to whatever you named your SSP instance.
On each <img /> tag add a sizes attribute with comma separated size description|size cost pairs. E.g.,
<img src="my-image.jpg" caption="This is my foxycart purchase-able image with configurable sizes and costs" title="My Image" sizes="4x6|100,5x7|125,8x10|150" />
The integration uses flash's built-in ComboBox and Button components. Skin the components however you like to change their appearance.
The purchase controls are positioned in the sspfc_onImageFormatEvent() method. Change up where you want the controls to appear there.
For discussion and help please see this forum thread.
ssp+foxycart.as)