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

Procedural File: zenPaypal.php

Source Location: /plugins/zenPaypal.php

Page Details

zenPaypal -- PayPal ordering support

Provides a PayPal ordering form for image print ordering.

Plugin option 'zenPaypal_userid' allows setting the PayPal user email. Plugin option 'zenPaypal_pricelist' provides the default pricelist. Plugin option 'zenPaypal_checkout_currency' Plugin option 'zenPaypal_checkout_ship_cost'

Price lists can also be passed as a parameter to the zenPaypal() function. See also zenPaypalPricelistFromString() 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 zenPaypal() call. This would give you individual pricing by image.

Author:  Ebrahim Ezzy (Nimbuz) adapted as a plugin by Stephen Billard (sbillard)
Version:  1.0.1
Classes
Class Description
zenPaypalOptions Plugin option handling class
Functions
zenPaypal  [line 96]

Places a Paypal button on your form

Parameters:
array   $pricelist:  optional array of specific pricing for the image.
bool   $pricelistlink:  set to true to include link for exposing pricelist
string   $text:  The text to place for the link (defaults to "Price List")
string   $textTag:  HTML tag for the link text. E.g. h3, ...
string   $idtag:  the division ID for the price list. (NB: a div named $id appended with "_data" is


void zenPaypal( [array $pricelist = NULL], [bool $pricelistlink = false], [string $text = NULL], [string $textTag = "l1"], [string $idtag = "zenPaypalPricelist"]  )

[ Top ]
zenPaypalPricelistFromString  [line 75]

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 zenPaypalPricelistFromString( string $prices  )

[ Top ]
zenPaypalPrintPricelist  [line 178]

Prints a link that will expose the zenPaypal Price list table

Parameters:
array   $pricelist:  the zenPaypal price list
string   $text:  The text to place for the link (defaults to "Price List")
string   $textTag:  HTML tag for the link text. E.g. h3, ...
string   $id:  the division ID for the price list. (NB: a div named $id appended with "_data" is created for the hidden table.


void zenPaypalPrintPricelist( [array $pricelist = NULL], [string $text = NULL], [string $textTag = &quot;l1&quot;], [string $id = &quot;zenPaypalPricelist&quot;]  )

[ Top ]


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