I have a small project that I need completed ASAP. I started working on it myself, I just don't have the time to finish it and need it done by Monday January 22nd, if at all possible. It shouldn't be too difficult as I've done all the R&D and just need it coded.
The site currently uses the PayPal shopping cart system with customized buttons. The site is based on the latest version of WordPress and uses a custom theme/template. What I need is a PHP/mySQL based shopping cart structure that will integrate within WordPress and provide essentially the same functions as the current setup, with the addition of support for international shipping calculations.
Please take a look at the PayPal Shopping Cart manual. It can be found on PayPal's website and includes basic information about basic coding and usage.
The actual shopping cart should be pretty simple. Basically I need to be able to place HTML "add to cart" buttons with product variables (see below) on the WordPress templates that will pull the product data to populate the variables from the WordPress database (already in place). There does not need to be any product database or inventory management. Session management should use the WordPress system or another method, other than cookies.
I would like the shopping cart to act as a WordPress plug-in, allowing me to call it with a simple template tag (e.g. place it on any page).
The add to cart variables will need to allow for:
- Cost of the item
- Tax (yes/no)
- Shipping (yes/no)
- Item Description
- Item Number
Once the customer has added all of the products he/she wishes to purchase to the shopping cart, the user will be able to check out. The checkout process will check to see if there are any products that require shipping in the cart (e.g. with the variable "shipping=true"). If there are products that require shipping the cart will ask for the shipping country and calculate shipping totals. If there are products that require tax, the cart will add tax to the items with the tax variable set to true for all orders shipped to the state of California.
I'd like both shipping and tax to be managed through the WordPress Administrative area (through the plug-in system). Shipping will be based upon weight and destination country. I would like the ability to determine a list of countries and weight ranges, for example:
United States (Priority Mail)
0-10oz $4.95, 11-20oz $6.95, etc, etc, etc.
Canada (Global Priority Mail)
0-10oz $8.95, 11-20oz $11.95, etc, etc, etc.
Tax should be setup in a similar way, allowing me to set which countries and states tax should apply to. I should also be able to set the tax percentage. Right now it can be pretty simple with tax only be applied to California orders.
The cart will then pass the items and shipping information to PayPal. See the attached file for details. I want to use the method that basically passes the products added to the PHP shopping cart to PayPal.
After checking out with PayPal, the customer would to be sent back to the website. The order number and some customer information is automatically included. I'd like a personalized "thank you" message and the ability to subscribe to our mailing list (basically I just need the customer email address automatically populated into a field).
This should be a pure PHP project. I will provide the basic framework for the shopping cart HTML/CSS. All code needs to be valid XHTML/CSS for easy integration with my template.