Need to sell products. Paypal plugin bring a cart to your geeklog site.
The PayPal plugin allows you to have an online product list and accept payment via PayPal. Products can be downloadable as program or pdf files, or can be physic as books, CD, DVD… New: Paypal plugin 1.2 handle subscriptions. You can sell access to your content.
Instructions for (un)installation of the paypal plugin for geeklog.
Require PHP 5.2 or greater. I also recommend using the jquery plugin to support lightbox feature in the shop.
Back-up your sites database.
1. As one of your site's Root users
2. If the installation completed successfully you can skip to the next step. Otherwise, check the geeklog error.log for errors.
3. Set the necessary permissions to <geeklog_dir>/logs/paypal_downloads.log.
4. Modify paypal's config online to reflect your site and suite your needs.
Take special note of the $_PAY_CONF['paypalURL'] variable. It should be www.sandbox.paypal.com for testing on paypal's development site. For live web sites it should point to www.paypal.com.
5. Update the security settings. By default the paypal plugin will grant administrative rights to the plugin to the Root Group. Shopping (purchasing) privileges will be granted to the “Logged-In Users” group. Viewing privileges will be granted to the “All Users” group. By adding users or groups as members of the “Paypal Admin” or “Paypal Users” or “Paypal Viewers” group you can control who has administrative, shopping, and viewing privileges.
6. Create images folders
Geeklog can auto install plugins. See above.
If you need to manualy install the plugin.
A paypal business account is required in order for this plugin to operate correctly. In addition, there are several items in your paypal account that must be set up correctly in order purchases to be logged.
1. Create a PayPal business account (note: you can update an existing account to a business account by logging into the paypal account and clicking on “Upgrade Account”)
2. Verify your account. This is needed to transfer money out of your paypal account and into a bank account. You can do this from your paypal account.
3. Update seller preferences. From the “My Account” tab or your Paypal account, select the “Profile” sub-tab. Click on “Instant Payment Notification Preferences”. For french accounts “Mon compte » Préférences » Préférences des ventes » Préférences de Notification instantanée de paiement”. Edit the preferences. You want to ENABLE instant payment notification. In the box provided for a URL, enter:
4. Update *optional* seller preferences. From the “My Account” tab or your Paypal account, select the “Profile” sub-tab. You may want to consider entering information for the following date:
0. Back-up your site database, just in case.
1. As one of your site's Root users, run the plugin's uninstallation script.
2. Delete the directories and files created during the plugins installation.
To upgrade an existing Paypal plugin installation, please upload all the files from the archive to their respective location, replacing the older versions of the same files.
Once you've uploaded all the files, log into your site as a member of the Root group (e.g. as user Admin). Go to the Admin's “Plugins” panel.
You can upgrade just by clicking the icon “Update” or click on the “edit” link for the paypal plugin. You will be presented with an “Update” button. Click that button and you should get a message that the upgrade was successful. That's all.
Go to the paypal plugin online config to review your settings.
To be compatible with auto upgrade (by uploading the plugin archive) in the future and with Multi plugin, the “products” and “cache” folders where the paypal plugin stores product images had to be move to a new public_html/images/paypal/ folder.
Plugin configuration is now online with paypal vers 1.1+
| General settings | |
|---|---|
| Paypal public folder | Allow to move the directory where the users's paypal program is store. Rename your public_html/paypal folder and change the config name according your new folder name. |
| Paypal menu label | Allow to set a different menu label. Default is Shop. |
| Folder name for images | |
| Paypal login required | Restrict the access to the Logged-in Users group. |
| Hide Paypal menu | Set to yes to hide the “paypal” entry from the top menu. |
| Paypal url | URL for paypal verification should be www.paypal.com for live service or www.sandbox.paypal.com for testing. If your version of PHP is 4.3.0 or greater and OpenSSL has been compiled into PHP, you can prefix the url with ssl to encrypt the paypal 'postback'. |
| Receiver email address | PayPal email addresses for your business receiver account. |
| Currency | This is the currency that you want all transactions to occur in. Your Paypal account must have the choosen currency enabled (on the Paypal website see: Selling Preferences→Paypment Receiving Preferences). This plugin currently requires you to have only one currency balance enabled in your Paypal account. |
| Anonymous user can buy | Do you allow anonymous users to make purchases without logging in first? Note that anonymous users won't have access to purchase history or to direct downloads. |
| Email User upon purchase | yes if logged in users should get a purchase email. Configuration parameters to specify whether “on purchase” emails will be sent. You can edit the files templates/purchase_email_subject.txt and templates/purchase_email_message.txt to customize the email message. You should disable the *_attach options below if you are distributing large files or it is likely that a purchaser will be buying many medium files otherwise the email will become too large and will likely never be received. |
| Attach files to user's email message | Yes if logged in users should get purchases emailed as attachments. |
| Email anonymous buyer upon purchase | Yes if anonymous users should get a purchase email. |
| Attach files to anonymous buyer email | Yes if anonymous users should get purchases emailed as attachments. |
| Enable pay by check | Default is no |
| Enable buy now buttons | Default is yes |
| Default Permissions | |
|---|---|
| Permissions by default[0] | Owner permissions |
| Permissions by default[1] | Group permissions |
| Permissions by default[2] | Members (Looged-in) permissions |
| Permissions by default[3] | Anonymous permissions |
| Permissions are use to set owner, group, members and anonymous rights on products. | |
| Display settings | |
|---|---|
| Main page header, autotag welcome | Here you can use some text or autotags to custom your header. |
| Main page footer, autotag welcome too | Here you can use some text or autotags to custom your footer. |
| Number of columns of products to display (max 1-4) | Chose how many product you want to display by row. |
| Products list order | Can by product name, product ID, product price. |
| Display list of memberships | Do you want to display a link to the list of memberships. Yes or no. |
| Display 2nd buttons | Buttons “Buy now” and “Add to cart are display after the short description on the product page. Do you want to display also buttons above the long description? Yes or no. |
| Display blocks | Choose between left blocks only, right blocks only, both or none. |
| Display item ID on products list | Do you want to display item ID on product list. In all cases, item id is displayed on product detail page. |
| Images settings | |
|---|---|
| Max images per product | Choose how many images you want to display for each product. |
| Max image width | Image greater than this value will not be upload. |
| Max image height | Image greater than this value will not be upload. |
| Max image size | Image bigger than this value will not be upload. |
| Max thumbnail size | Set the thumnail size for the products pictures. |
| Catalogue thumb width | Set size in pixel. Default is 75 |
| Catalogue thumb height | Set size in pixel. Default is 75 |
| Number of products to display per page | 0 indicates that all products should be displayed on a single page. |
| Number of columns of categories to display | Set to 0 to disable categories. If you don't have any categories set, this setting is meaningless. |
| Display category image | Do you want to display image for each category. Yes or no |
| Category image width in pixel | Set in pixel the image width. e.g 300 |
| Paypal checkout page | |
|---|---|
| The URL of the 150×50-pixel image displayed as your logo in the upper left corner of the PayPal checkout pages. | PayPal recommends that you provide an image that is stored only on a secure (https) server. |
| The image at the top left of the checkout page. The image's maximum size is 750 pixels wide by 90 pixels high. | PayPal recommends that you provide an image that is stored only on a secure (https) server. |
| The background color for the header of the checkout page | Valid value is case-insensitive six-character HTML hexadecimal color code in ASCII. |
| The border color around the header of the checkout page. The border is a 2-pixel perimeter around the header space, which has a maximum size of 750 pixels wide by 90 pixels high | Valid value is case-insensitive six-character HTML hexadecimal color code in ASCII. |
| The background color for the checkout page below the header | Valid value is case-insensitive six-character HTML hexadecimal color code in ASCII. |
| The background color of the checkout page | Valid value is case-insensitive six-character HTML hexadecimal color code in ASCII. |
| Shop details | |
|---|---|
| Shop name | Your shop name |
| Street 1 | Street name |
| Street 2 | street name |
| Postal code | Postal code |
| City | City name |
| Country | Country name |
| Pro ID | Professional ID, company ID, SIREN number (french), SIRET number (french), TVA or VAT number… It is the identification number for your selling activity. |
| Phone 1 | Your phone number |
| Phone 2 | Your phone number |
| Fax | Your fax number |
On the admin paypal plugin page you can create, edit or remove products.
They must be writable.
Sell access to your content | Subscriptions
With paypal plugin 1.2+ your can sell access to content of your site or establish management paying members of a club or association.
This new version 1.2 introduces a new type of product, subscritions. This feature allows you to create membership for one or several days, weeks, months or years. Users who subscribe online are automatically added to a group you specify. Group members can then access content reserved for them during the entire period of their membership. Once it is completed, the member is automatically removed from the group.
How to sell access to your content?
Manage shippings
You need to create first a shipping destination, then create a shipper, and then create a shipping rate where you choose the shipper, the minimum weight (in kilograms), the maximum weight (in kilograms), the destination and the shipping amount.
How does this work?
Since paypal plugin 1.4 products can be set to Physical, Downloadable or Virtual/Service. For “Physical” product, you can set a weight (in kilograms) if you want to use shipping feature, and choose between “Apply shipping costs” or “No shipping - Free shipping” for each product.
Like this the cart can handle the total weight of items and can provide the display of different shipping costs according to destinations and services.
“Downloadable” or “Virtual/Service” products do not use shipping features.
Pay by check
With paypal plugin 1.3+ users can pay by check. When they validate the cart and choose to pay by check, there order is pending.
How to validate a pending order?
Blocks
Paypal plugin can display several blocks.
| Cart | Paypal cart block is automically created on install or upgrade. You can enable/disable it on the blocks admin page. |
| Random product | A random product block is automically created on install or upgrade. You can enable/disable it on the blocks admin page. |
| Shop | If needed you can add a shop block: Create a php block on the blocks admin page and set function to phpblock_paypal_displayProducts |
Shop in a static page
You can add your shop (products display page) in a static php page (execute php):
echo phpblock_PAYPAL_displayProducts();
If jquery plugin is available and lightbox plugin is active, pictures products are display in a lightbox.
Users can print an online receipt for each purchases on the purchases history page. They also can find on this page a download link for each downloadable product they have purchased.
[paypal : XXX] where XXX is the product id display a link to product page.
[paypal_product : YYY] where YYY is the product id display a product block with buttons.
Q. Some HTML I tried to use in the product description got stripped out.
A. All HTML input (such as the product description field) gets check with geeklog's built in COM_checkHTML function. That function depends on the contents of $_CONF['user_html'] and $_CONF['admin_html'] array variables found in the config. Edit those to control what HTML is allowed in the paypal's HTML fields.
With version 1.2, paypal pro version will be available.
Why a Pro version? To enable and encourage the future development of the plugin, a small financial contribution is requested. This contribution allows you to enjoy the following additional functions:
Avec la version 1.2, une version Pro du plugin Paypal sera disponible.
Pourquoi une version Pro ? Pour permettre et encourager le développement futur du plugin, une légère contribution financière est demandée. Cette contribution vous permet de profiter des fonctions supplémentaires suivantes:
Install Paypal Pro Version
See know-issues
FEATURE REQUESTS
Is the Paypal plugin missing that one killer feature that you simply MUST have?
If you are a do it yourselfer, you can submit a patch. If accepted, patches will be incorporated into the main branch of the plugin and maintained by the developer (that's me).
Else you need to sumit this feature request to ::Ben on geeklog.net or geeklog.fr
Requested by Kobab on nov 28th 2011 :
1. to promote album (category) purchase rather than individual tunes, - 'add to cart button' at category enables all products in the subject category. - to set album (category) price lower sum of tunes prices if necessary
2. random block for category (album) not only for products (tunes)
3. built-in amazon mp3 like audio player
TODO – long term
Les payements récurrents (Recurring Payments)