NEW! UPDATED! 11-11-2005.
1-of-3 Mods[/color]
- Now with a simpler if..else routine to handle different pricing structures for different items in your gallery.
- Removed the baseprice in favor or using the dropdown list for base price options.
- JavaScript now supports the use of Radio buttons and checked boxes for added services.
- A 2nd, 3rd, 4th, and 5th dropdown list has been included in the form for additional options.
- New mod is based on displayimage.php rather than ecard.php and therefore provides a
much improved theme consistency when using custom themes or less well-behaving themes.
- Three ways to install. Easier than ever. Choose 1, 2, or all three ways.
Please be sure to download the version that is appropriate to your cpg version..
To test this cart, simply download the attached zip file. Expand it, and save options.php to your Coppermine root directory. Save the ecart1.gif file to your coppermine/images and your theme's images folder.
Open your browser to an intermediate image page and replace the "displayimage.php" in the URL of your browser with orders.php (leaving the rest of the URL intact). Click 'enter' or 'go'. That's it.
This is a theme consistent, single order, server-side, paypal cart form that opens from a button in the nav bar above the intermediate view, or below the intermediate view image caption, or from links in the info fields below the intermediate view. It offers the admin a very professional looking paypal interface that displays the image (anysize) and all purchase options. It can be customized like any other php/html page with any additional information about the image or product you deem important.
Additional drop down lists can be easily added to increase your options and offerings.
In essense you have 6 to the nth power of options = unlimited. You can also customize the page to include as much information about your services as you want - Guarantees, disclaimers, etc.
If you have a number of uniquely different items that call for different price options, you can use the simple if ... else... routine to change the pricing options automatically and create as many different pricing structures as your site requires. You will need to reserve one "Custom fields for image description" field for this option.
Permanent installation requires that you follow the steps outlined in the Simple_Server-Side_Paypal_Instructions.htm file that is included in this package.
ADDENDUM: IF you wish to send the purchase to a paypal page in a language OTHER than ENGLISH you must add the following:
Search for: <!--//Start <Form> Block for purchase options -->
Scroll to: <input type="hidden" name="currency_code" value="$currency_code" />
Add below: <input type="hidden" name="lc" value="US">
Where "US" should be replaced with your country's ID.
I believe that you will find this to be the least invasive, easiest to install, yet most versatile paypal mod for coppermine, yet.
Dennis
(Updated with new installation and modifications instructions, the code has changed considerably and much more detail has been put into the installation and modifications instructions. )
In each of the two posts that follow this one, you will find an even easier to install paypal mod for admins who have very simple needs insofar as price options are concerned. The choice is yours.