Nice Paypal Button
From Kb_JMY(晉明夷)
Coding Format
- Ref:
- trinitronic.com -- nice-paypal-button-documentation
- trinitronic.com -- Can this plugin have options, quantity & then calculate?
- General format:
{nicepaypal:button type;custom graphic URL|amount|item name|item number|shipping|shipping2|tax|item quantity|weight|option1|option2}
- button type: buy, pay, donate, cart, cart_view, cart_noview,
- "cart" will render a Add to Cart & View Cart buttons together.
- "cart_view" will only render the View Cart button.
- "cart_noview" type will only render the Add to Cat button
- custom graphic URL: The URL of the button image, e.g. http:/www.domain.com/images/customdonatebutton.jpg
- example: {nicepaypal:donate;http:/www.domain.com/images/customdonatebutton.jpg|10.00|Feed the Children}
- shipping:
- -- If you specify shipping and shipping2 is not defined, this flat amount is charged regardless of the quantity of items purchased.
- -- This use of the shipping variable is valid only for Buy Now and Add to Cart buttons.
- -- Default: If profile-based shipping rates are configured, buyers are charged an amount according to the shipping methods they choose.
- Shipping2:
- Option1
- -> for use with the "Add to Cart" button type only
- -> has 2 possible configurations
- (i) a text entry options field
- format: |option type;option label;option message;max length of text|
- e.g: |field;size;Enter your size;60
- (ii) or a drop-down options box.
- format: |option type;option label;option message;option value;option value;option value|
- e.g: |drop;color;Select t-shirt color;Red;Blue;White;Black
- Option2
- -> for use with the "cart" button type only
- -> supports 3 configuration types
- (i) syntax is same as option1
- (ii) syntax is same as option1
- (iii) a price specifying drop-down box
- format: |option type;option label;option message;option value:price;option value:price;option value:price|
- Example: {nicepaypal:cart||Joomla T-Shirt||||1.30|1|.3||dropprice;size;Select your t-shirt size;Sm:13.00;Md:15.00;Lg:17.00;Xl:20.00}
Example
{nicepaypal:pay||Yoga Classes|DH-LStg-CA-001||||item quantity||option1|option2}

