[ class tree: plugins ] [ index: plugins ] [ all elements ]

Procedural File: GoogleCheckout.php

Source Location: /plugins/GoogleCheckout.php

Page Details

GoogleCheckout -- Google ordering support [experimental]

Provides a Google Checkout ordering form for image print ordering.

Plugin option 'GoogleCheckout_merchantID' allows setting the GoogleCheckout user email. Plugin option 'GoogleCheckout_pricelist' provides the default pricelist. Plugin option 'googleCheckout_currency' Plugin option 'googleCheckout_ship_method' Plugin option 'googleCheckout_ship_cost' Plugin option 'googleCheckout_cart_location'

Price lists can also be passed as a parameter to the GoogleCheckout() function. See also GoogleCheckoutPricelistFromString() for parsing a string into the pricelist array. This could be used, for instance, by storing a pricelist string in the 'customdata' field of your images and then parsing and passing it in the GoogleCheckout() call. This would give you individual pricing by image.

Author:  Jeremy Coleman (mammlouk), Stephen Billard (sbillard)
Version:  1.0.1
Classes
Class Description
GoogleCheckoutOptions Plugin option handling class
Functions
googleCheckout  [line 128]

Places Google Checkout Options on your page.

Parameters:
array   $pricelist:  optional array of specific pricing for the image.


void googleCheckout( [array $pricelist = NULL]  )

[ Top ]
GoogleCheckoutPricelistFromString  [line 95]

Parses a price list element string and returns a pricelist array

Parameters:
string   $prices:  A text string of price list elements in the form <size>:<media>=<price> <size>:<media>=<price> ...


array GoogleCheckoutPricelistFromString( string $prices  )

[ Top ]
googleCheckoutTesting  [line 119]

Sets Google Checkout to Post to the Google Checkout Sandbox for configuraiton testing


void googleCheckoutTesting( )

[ Top ]
printGoogleCartWidget  [line 111]

Places Google Cart Widget inline on your page instead of attached to the browser


void printGoogleCartWidget( )

[ Top ]


Documentation generated on Tue, 30 Sep 2008 20:23:25 +0200 by phpDocumentor 1.4.1