Categories: Additional Guidance
Other Versions of the Plugin (Modified by Users)
1. Multi Currency Support
2. Addon for the WordPress Simple Shopping Cart Plugin
3. Discount Coupon Mod for the WP Simple Shopping Cart
This mod was provided by Ben Newton
- Download the discount coupon version of simple shopping cart plugin (Check the “readme.txt” file inside for explanation on how to use it)
WP Shopping Cart CSS
The following CSS classes have been included in the plugin. You will just have to update the CSS in the style sheet file (wp_shopping_cart_style.css) of the wordpress paypal shopping cart plugin if you want to customize the look and feel of the shopping cart.
Where is the Settings Menu for the Shopping Cart?
The settings menu for the Shopping cart is located under the WordPress Settings menu…. please see the screenshot (click to enlarge).
How to Make the Shopping Cart Show the “Empty Cart” Message on a Post or Page
Search for the following line in the “wp_shopping_cart.php” file:
Delete that line once you find it and that should do it.
How to Show the Shopping Cart Widget Only When There are Items in the Cart
Search for the following function in the wp_shopping_cart.php file:
Once you find it just add the following piece of code at the start of the function and that should do the job
How to Resize the Add to Cart Buttons
Add the following to the CSS file of this pluign (wp_shopping_cart_style.css)
How to Show the Add To Cart Buttons in the Sidebar (Method 1)
We have recently added new shortcodes that uses the WordPress shortcodes API. You can use these shortcodes to place a purchase button for a product on the sidebar widget of your WordPress site:
Here is how to do it:
Step 1) Go to the widgets menu of your WP Admin
Step 2) Add a standard text widget to the sidebar of your site
Step 3) Use one of the shortcodes to create a purchase button for your product that you want to sell:
[wp_cart_button name="Test Product One" price="29.95"]
[wp_cart_button name="Test Product Two" price="19.95" shipping="4.99"]
How to Show the Add To Cart Buttons in the Sidebar (Method 2)
Step 1) Download and activate the Executable PHP code plugin if you don’t have it already (any other PHP executable plugin will work too):
This plugin lets you call php functions from the widgets (it’s similar to the Text widget but it allows you execute PHP code too).
Step 2) Go to the widgets menu and add a ‘PHP Code’ widget to the sidebar (where you want to display the ‘Add to Cart’ buttons or shopping cart). Now you can enter HTML and PHP code here to display whatever you want to show. For example, entering the following line will display an add to cart button :
<?php echo print_wp_cart_button_for_product("Product Name","10.00"); ?>
How to Collect Special Instructions from the Customer
If you need to collect special instructions from the customer for some customized work on the item you are selling then you can instruct your buyer to put it in the “Special instructions to merchant” box on PayPal during checkout. Please note that this option is shown on the “Review your payment” screen (after you log in to put the credit card details)
Return to the WP Shopping Cart plugin page.