PayPal Modification for Coppermine

I receive numerous requests from other Coppermine users who want to know how to incorporate PayPal into Coppermine. Below I provide everything you need to incorporate PayPal into your installation of Coppermine exactly as I have incorporated it into mine.

Please support continued development of this feature through a donation of US$15. I provide this feature at no cost. I rely on donations from those who find it useful. Consider how this will provide revenue for your business and help support its maintenance and development through a modest donation.

DISCLAIMER: This is provided as is, free of charge, with no warranty or guarantee. Use this freely, but use it at your own risk.

My PayPal changes add three significant features to Coppermine:

  1. My changes add support for a PayPal shopping cart. The shopping cart is simple. Every image that is available as a print is available with exactly the same options. My changes do not support offering different options for different images.
  2. My changes add a means to indicate per image whether the shopping cart is offered to the customer. The was implemented so that I can include certain images in my gallery that demonstrate my skills and range of subject matter, but that I cannot sell as prints due to model or property release restrictions.
  3. My changes add a security feature to help reduce image theft. When a thumbnail is clicked to display the larger image, the larger image is overlayed with a transparent GIF. If a visitor to my web site tries to right-click and save the image, they save the transparent GIF instead of the actual image.
The following links are to ZIP files that contain my modified Coppermine files. Each link supports a different version of Coppermine. Make sure you select the ZIP file that corresponds your version of Coppermine.

Before you start, make a backup copy of the following files. Then drop my copy of these files in the place I indicate in your Coppermine installation. In the following bullets, the term "<coppermine root>" refers to the top level Coppermine directory on your web site.

The following are additional files in the ZIP file. Install them where indicated:

Customize the following files for the options and prices you offer, and for the location of paypal.js in your web site:
Next you must make the following MySQL database change: You also need to do a mass update to that column for all the pictures already in your database.

And finally, you must make sure the 'title' field is set for every picture. I use the Coppermine Admin screen to set the 'title' to the filename, as that is also my image ID in my image catalog database.

Those are all the modifications!

Any time you change your product offerings, you must change both the paypal.js and displayimage.php or themes.inc.php files.

Now log into your Coppermine gallery in admin mode and click the "Edit Files" button next to each of your albums. On that screen, you will see a new checkbox under every image description called "Show shopping cart ". You can check or uncheck that box to enable or disable the shopping cart for that image. The same "Show shopping cart" checkbox is displayed when you click the "Edit Description" button while viewing an image in admin mode.

I hope this is helpful and not too cryptic. Please write me with recommendations for enhancing these directions.

Feel free to e-mail me if you have problems. Please do not ask for enhancements. Remember that this is free and provided as is.