type:
integration
system:
SlideShowPro,
Flash
name:
SlideShowPro E-Commerce
description:
Adds "Purchase This Photo: (Size Drop-Down) (Add To Cart Button)" purchase controls for each image with defined costs.
tags:
photo gallery,
slideshow
date:
2009-04-01
developer:
http://stephen.chai.name/

SlideShowPro + FoxyCart for SlideShowPro E-Commerce

Description

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.

Installation

Edit the template

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.

Edit your ''gallery.xml''

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" />

Customization

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.

Discussion?

For discussion and help please see this forum thread.

Requirements

Code

 
integration/flash/slideshowpro.txt · Last modified: 2009/04/07 10:41 by foxybrett
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki