Simple Server-Side Shopping Cart.
Instructions for CPG 1.4x
This is a server-side Java (.js) shopping cart script, often referred to as a 2nd party cart. This mod uses one of your image's custom description fields to assign different price options for different pictures (current default is the first field). The script serves as an interface between your on site and PayPal. Users only interact with your shopping page so there are no official, encrypted "PayPal button" for this mod. Everything you need is included in this module, you simply need to backup your displayimage.php and replace it with the displayimage.php file in this package.
FEATURES THAT THIS MOD OFFERS:
- suppoort for Dropdown lists for setting basic price and options.
- suport for Radio buttons to offer additional services.
- support for checkbox to provide additional options.
- reads off of the custom image description fields for prices and other data
Review the various paypal options and edit/set them to your needs.
Edit the new displayimage.php to your specific needs and tastes. Remember that if you require different price options for different types of products, this mod uses one of your image's custom description fields to assign different price options for different pictures. The current default is the fouth ($user4) field. If you need to use a custom description field other than the fourth field, you will have to change the "$pricing_setup = $user1;" variable in orders.php to $user1, $user2, or $user3, as appropriate.
You can also change the entries in the user field to whatever you wish.
By default, and you should set it up this way to start. You can always modify it later.
Custom Image Description field:
Set these in CONFIG to:
1) Type of Print
2) Artists
3) Size
4) Price ($USD)
Next select a picture and edit the file information as follows:
1)Art Print
2)Chagall
3)18 x 24
4)30.00
Also add a title and caption to the picture.
In the new displayimage.php search for Set paypal ID and currency type
Set your paypal ID and currency, accordingly.
Above this you will see the list of variables that have been defined.
Just below that you will see: "$pricing_setup = $user4;".
Change $user1 to $user2, $user3, or $user4 if you are already using the first custom image description field for something else.
Below this you will see "Set item description to be entered into paypal cart" which allows you to modify what is displayed in the paypal cart description field.
Scrolling down the file, in the "< !--// Display image storyline-- > " block of text. Several of the defined variables are used to customize text for the picture being displayed. As such, you will probably want to turn off the File information is visible by default in your CONFIG setup as these become redundant with this mod. You may also want to block out the {CAPTION} option under the intermediate display in the theme.php file of your theme(s).
Edit the rest of the file as you see fit.
Enjoy.