Simple Shopping Cart
Lightweight, user-friendly plugin to sell products/services on WordPress.
Install in
The Simple Shopping Cart plugin enables you to effortlessly add ‘Add to Cart’ buttons for your products or services directly on your website. This lightweight plugin transforms your WordPress site into a fully functional e-commerce platform, allowing you to sell products and services with ease.
With this plugin, your customers have the convenience of paying for their selected items using popular payment gateways such as PayPal and/or Stripe.
You can easily display the shopping cart on any post, page, or sidebar. The cart provides users with a clear view of their selected items, allowing them to adjust quantities or remove items effortlessly.
The plugin offers the newest/latest PayPal Commerce Platform (PPCP) checkout option. You can enable it in the settings menu of the plugin.
Checkout Process Demonstration
It offers a simple and seamless checkout process for your customers. To see a demonstration of how the checkout process works, please refer to the following video:
Easily Create Products
You will be able to create products by using shortcodes dynamically.
If you have a responsive theme, the shopping cart’s output will adapt seamlessly to ensure a mobile-friendly shopping experience.
Furthermore, this plugin provides a simple solution for selling digital products. To see a demonstration of how you can effectively sell your digital media files using the simple cart plugin, please refer to the following video:
Engineered for a Lightweight Solution
Designed as a lightweight solution with minimal lines of code and a streamlined set of options, this plugin ensures optimal site performance. Moreover, it is designed to be a low maintenance solution, minimizing the likelihood of frequent site disruptions caused by upgrades. With this plugin, you can enjoy a stable and hassle-free shopping cart functionality while maintaining the overall stability of your website.
Simple Shopping Cart Plugin, interfaces with the PayPal sandbox and Stripe testmode to allow for testing.
Documentation
For documentation, video tutorials, screenshots, support, and updates, please visit:
Simple Shopping Cart Documentation
or
Simple Shopping Cart Details Page
Features
- Easily create “add to cart” button with options if needed (price, shipping, options variations). The cart’s shortcode can be displayed on posts or pages.
- Use a function to add dynamic “add to cart” button directly in your theme.
- Minimal number of configuration items to keep the plugin lightweight.
- Sell any kind of tangible products from your site.
- Ability to sell services from your your site.
- Sell any type of media file that you upload to your WordPress site. For example: you can sell ebooks (PDF), music files (MP3), audio files, videos, photos, images etc.
- Your customers will automatically get an email with the media file that they paid for.
- Show a nicely formatted product display box on the fly using a simple shortcode.
- Option to enable terms and conditions for your customers to agree to before they checkout.
- Uses the newest/latest PayPal checkout option.
- Option to use the PayPal Commerce Platform Checkout option. You can enable it from the settings menu of the plugin.
- Option to use the smart payment buttons of PayPal. Allows the customers to checkout in a popup window (using a credit card, paypal or paypal credit).
- Your customers will be able to use the PayPal’ Pay in 4 payment option (Buy Now Pay Later).
- You can use PayPal sandbox to do testing if needed (before you go live).
- Ability to offer the Stripe checkout option. Your customers can conveniently make credit card payments through the secure Stripe payment gateway.
- You can use Stripe testmode to do testing if needed (before going live).
- The Stripe checkout will display payment method options based on what you, as the merchant, have enabled in your Stripe account.
- You can offer a manual/offline payment option using the Manual Checkout feature.
- Ability to display the order summary on the ‘Thank You’ page. Refer to this documentation for more details.
- The orders menu will show you all the orders that you have received from your site.
- Ability to configure an email that will get sent to your buyers after they purchase your product.
- Ability to configure a sale notification email that gets sent to the site admin when a customer purchase your item(s).
- Ability to configure discount coupons. Offer special discounts on your store/shop.
- You can create coupons and give to your customers. When they use coupons during the checkout they will receive a discount.
- Create discount coupons with an expiry date. The coupon code automatically expires after the date you set.
- Compatible with WordPress Multi-site Installation.
- Ability to specify SKU (item number) for each of your products in the shortcode.
- Ability to customize the add to cart button image and use a custom image for your purchase buttons.
- Ability to customize the add to cart button text via shortcode parameter on a per product basis.
- Track coupons with the order to see which customer used which coupon code.
- Ability to add a compact shopping cart to your site using a shortcode.
- Ability to show shopping cart with product image thumbnails.
- Ability to use a custom checkout page style.
- Ability to configure region based shipping additions.
- Store pickup option – let customers pick up orders from your store.
- Ability to use blocks to add the ‘add to cart’ button and the ‘shopping cart’ to your posts/pages/sidebar.
- Option to enable AJAX add to cart buttons for a smoother user experience.
- Option to hide the quantity field in the shopping cart. This can be useful for a site selling only digital products where the quantity is always 1.
- Works nicely with responsive WordPress themes.
- Can be translated into any language.
- and more…
Shopping Cart Setup Video Tutorials
There is a series of video tutorials to show you how to set up the shopping cart plugin on your site.
Check the video tutorials here.
Language Translations
The following language translations are already available:
- English
- German
- Spanish
- French
- Breton
- Italian
- Japanese
- Polish
- Czech
- Hebrew
- Swedish
- Norwegian
- Danish
- Turkish
- Dutch
- Brazilian Portuguese
You can translate the plugin using this documentation.
Developers
- If you are a developer and you need some extra hooks or filters for this plugin please let us know.
- Github repository
Usage
1) To add an ‘Add to Cart’ button for a product, simply add the following shortcode to a post or page next to the product. Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price.
[wp_cart_button name="PRODUCT-NAME" price="PRODUCT-PRICE"]
2) To add the shopping cart to a post or page (eg. checkout page) add the following shortcode to a post or page or use the sidebar widget to add the shopping cart to the sidebar. The shopping cart will only be visible in a post or page when a customer adds a product.
[show_wp_shopping_cart]
3) Alternatively, you have the option to utilize the Gutenberg editor blocks provided by this plugin to conveniently insert the add to cart button and shopping cart in desired locations within your content.
Read the documentation for using the blocks
4) To insert the ‘Add to Cart’ button from a template or PHP file, you can utilize the following PHP function:
<?php echo print_wp_cart_button_for_product(‘PRODUCT-NAME’, PRODUCT-PRICE); ?>
Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price.
Using Product Display Box
Here is an exmaple shortcode that shows you how to use a product display box.
[wp_cart_display_product name="My Awesome Product" price="25.00" thumbnail="http://www.example.com/images/product-image.jpg" description="This is a short description of the product"]
Simply replace the values with your product specific data
Using a compact shopping cart
Add the following shortcode where you want to show the compact shopping cart:
[wp_compact_cart]
Using Shipping
To apply a shipping cost to your product, use the ‘shipping’ parameter. Below is an example of how to include it in a shortcode:
[wp_cart_button name="Test Product" price="19.95" shipping="4.99"]
Visit the shipping setup documentation page for more details.
Using Variation Control (Product Variations)
To enable variation control, use the variation parameter. Below is an example of how to include it in a shortcode:
[wp_cart_button name="Test Product" price="25.95" var1="VARIATION-NAME|VARIATION1|VARIATION2|VARIATION3"]
Example shortcode usage:
[wp_cart_button name="Test Product" price="29.95" var1="Size|small|medium|large"]
To add multiple variations to a product (such as a second or third variation), use the following format:
[wp_cart_button name="Test Product" price="29.95" var1="Size|small|medium|large" var2="Color|red|green|blue"]
To add variations with price modifiers to a product (so the selected variation can update the price), use the following format:
[wp_cart_button name="Test Product" price="15.00" var1="Size|small|medium::5|large::10" var2="Color|red|green::2|blue::3" var3="Sleeve|short|full::5"]
Written by Joobi from the project's own listing. See the source page
5.3.4
- The saved cart data can no longer be changed to load other PHP classes (PHP object injection). Thanks to Patchstack for reporting this.
- Fixed an issue where spaces in a variation name were removed when a price modifier (::) was used.
5.3.3
- Security improvement: PayPal Standard payment notifications are now always checked against the PayPal email address in the plugin settings. The optional “Use Strict PayPal Email Address Checking” setting has been removed. Make sure this setting uses your PayPal account’s primary email address, not an alias, or payments will not be marked as paid.
- Security improvement: Product prices are now only registered from published posts and pages created by an Editor or Administrator. Previews and drafts no longer register prices. Developers can change the required capability with the
wpsc_dynamic_product_register_capabilityfilter. - The saved product price data is cleared once after this update and rebuilt as product pages are viewed. If your site uses page caching, clear the cache after updating.
- Improved security by escaping more output across the plugin.
- Fixed PayPal Standard checkout using the old cart items and total after a product was added with AJAX add to cart.
- Fixed a Stripe API error related to Stripe Managed Payments.
- Fixed an issue with the plugin’s blocks in the block editor.
- Fixed a PHP deprecation warning when exporting orders to CSV.
5.3.2
- WordPress 7.1 shopping cart block compatibility update.
5.3.1
- Added new settings for the store pickup feature. Store Pickup Documentation
- Fixed an admin settings UI issue related to WordPress version 7.
5.3.0
- Updated the language translation POT file.
- Updated the unique Cart ID generating code to use a more robust method.
5.2.9
- Added more disable funding options in the settings menu of the PayPal PPCP checkout.
5.2.8
- The deprecated PayPal Smart Checkout menu tab has been removed. If you were using it, switch to the new PayPal Checkout option. See the setup guide
- PayPal API connection related message updated to be more clear and informative.
- Gutenberg Block API v3 related console warning fixed.
- Fixed a small JS related issue for the cart.
5.2.7
- Added a new settings option that can be used to specify the default PayPal locale for the PayPal Commerce Platform Checkout option.
- A small CSS update in the orders menu for WordPress 7.0.
5.2.6
- Added output escaping to the new PayPal API settings interface fields.
5.2.5
- Improved the Stripe post-checkout handling code to prevent a potential issue with some server configurations.
- Added output escaping to the ‘wpsc_display_product’ shortcode parameters.
5.2.4
- Added a new feature to auto send invoices to customers for Stripe checkout.
- Fixed an issue with the new AJAX add to cart feature when a button image is used.
5.2.3
- Added a new feature to enable AJAX add to cart buttons. view documentation
5.2.2
- Added a new hook for the IP address so it can be customized if needed. The new filter hook is ‘wpsc_get_user_ip_address’.
- The ‘custom_fields’ email merge tags support added for manual checkout instruction emails.
5.2.1
- PayPal PPCP Checkout related improvements (the custom var data is added to the ipn_data array correctly).
- Github repository link added in the readme file so developers can contribute to the plugin.
- Fixed an issue with the {custom_fields} merge tag when using it with the newly added ‘resend sale notification’ feature.
5.2.0
- Added a link to the newly introduced tax feature’s documentation on the Tax Settings menu for easier access.
- Renamed the plugin from ‘WordPress Simple Shopping Cart’ to ‘Simple Shopping Cart’ to avoid potential trademark issues and better reflect the plugin’s core purpose and functionality.
5.1.9
- The PHP error related to coupon functionality has been resolved.
5.1.8
- Updated the ‘Enable Sandbox’ option label and description to make them more descriptive and clear.
- Code refactoring to improve the variable names to be more descriptive and consistent with the plugin’s shortname.
5.1.7
- PHP 7.4 compatibility update.
5.1.6
- Tweaked the newly added feature’s code to be PHP 7.4 compatible.
5.1.5
- New feature added to specify price modifications for product variations. This allows you to adjust the base price of a product based on the selected variation option. Variation Documentation
- Added the Turkish language translation file.
- New js event listener ‘wpscOnManualCheckoutSubmit’ added. It triggers on manual checkout form submit.
- New filter hook ‘wpsc_before_manual_checkout_form_submit’ added. This will allow adding contents befor the manual checkout submit button.
- New action hook ‘wpsc_manual_payment_checkout’ added. It triggeres after manual checkout form submit on server site.
- Added a new setting to hide the country field in the manual checkout form.
- Added an optional phone number field to the manual checkout form.
- New tax and tax by region feature added.
- Product thumbnail is now optional in ‘wpsc_display_product’ shortcode.
- Some code refactored.
5.1.4
- Refactored Cart ID handling for improved security.
- Added sanitization for cart button shortcode parameters.
- Added sanitization to the cart quantity update function to prevent negative quantity values.
- Improved the dynamic products to be able to handle variations.
- Added a warning message that appears when the Stripe gateway is enabled but the public key is not properly configured.
- CSS class names for coupon success message updated to be more specific.
5.1.3
- Updated the German language file. Thanks to Roland Stumpp for submitting the updated file.
- New dynamic product feature added to protect the download file url.
- The add to cart button’s price validation code has been improved.
- Fixed a ‘nonce’ field issue with the manual checkout feature.
- Updated translatable strings in the JavaScript file.
5.1.2
- Added Manual/offline Checkout feature. view documentation
- Old/unused ajax handler hook using the old plugin prefix has been removed.
- Updated the timeout value of the PayPal PPCP token creation API request to 60 seconds.
- Added a filter hook ‘wpsc_paypal_api_request_timeout’ to allow customization of the PayPal PPCP API request timeout value.
- File url option in the ‘Product Box’ block has been repositioned.
- Added a new option to ‘Resend Sale Notification Email’ in order details page.
5.1.1
- Refactored the hook names to make it match the plugin’s shortname.
- Added a check so if the cart contains reference to an old class, it will reset it to prevent a fatal error.
5.1.0
- This release focuses on code cleanup and optimization improvements.
- If you see any issue with this update, please roll back to the previous version and let us know.
- Here is a download link to the previous version: Download Version 5.0.9
- Refactored the cart class name to make it match the plugin’s shortname.
- Refactored the static JavaScript filename to match the plugin’s shortname.
- Refactored the static CSS filename to match the plugin’s shortname.
5.0.9
- Removed the deprecated function ‘wspsc_check_and_start_session’
- Added the global cart_id variable to the cart class.
5.0.8
- Added CSS class for the cart change/update quantity message so custom CSS can be applied to it.
- Added output escaping to some of the shortcode parameters.
- Language translation POT file updated.
5.0.7
- Added a new feature to display the order summary on the ‘Thank You’ page after checkout. Refer to this documentation for more details.
- The ‘Thank you’ page gets created automatically at plugin install time.
- Added a new feature to use the Stripe automatic tax feature for Stripe checkout.
- New filter hook added ‘wpsc_custom_postage_cost’ to allow custom postage cost calculation.
5.0.6
- Option to hide the quantity field in the cart. This can be useful for a site selling only digital products where the quantity is always 1.
- Added a new option to empty the shopping cart from the cart page.
- The remove item icon in the cart now uses an SVG icon for better performance.
- The Stripe checkout will show the payment method options based on what the merchant has enabled in their Stripe account.
- The Stripe API version for creating Stripe checkout session has been updated to the latest version.
- Added an option to enable HTML email for the notification emails.
5.0.5
- New option in the settings menu to force collect customer’s shipping address for stripe checkout.
- Fixed an issue with the quote character in the shipping variation settings.
- Updated the language POT file.
- Added blueprint.json file to enable plugin preview feature of WordPress.
5.0.4
- Updated the PPCP JavaScript SDK loading code to improve the race condition that may occur on some sites.
- Language translation POT file updated.
- The shipping region based shipping amount feature now list the countries in alphabetical order.
- Added a notice in the admin interface to inform the users about switching from PayPal Smart checkout to the PayPal PPCP checkout.
5.0.3
- Added a new shipping amount additions by region feature.
- The shipping related settings have been moved to a new tab in the settings menu.
- Added more error logging messages for the PayPal Commerce Platform Checkout option.
- Updated the reset_wp_cart query after checkout redirection.
- Fixed a price calculation issue with the stripe checkout.
5.0.2
- Added the ‘category’ parameter in the PPCP API call.
- Fixed an issue with the variations not working with the product name character support enhancement that we added in the previous version.
5.0.1
- Added a ‘digital’ parameter in the shortcode to specify a digital product.
- The shipping preference is set based on the ‘digital’ parameter in the PayPal Commerce Platform Checkout option.
- The product name will support more special characters and foreign characters.
- Added a utility function to check for special characters in the product name.
5.0.0
- Added the New PayPal Commerce Platform Checkout option. You can enable it from the settings menu of the plugin.
- Added a feature to enable Terms and conditions in the shopping cart.
- Renamed the ‘Advanced Settings’ tab to ‘PayPal Smart Checkout’.
- PayPal has deprecated the Smart Checkout option and replaced it with the new PayPal Commerce Platform Checkout option. The new checkout option is now available in the plugin.
- New utility function added for logging debug array.
- The ‘payment gateway’ that is used for a transaction is also displayed in the order details page.
- Reorganized some of the files in the plugin.
4.7.2
- Output escaping & sanitization added to checkout page redirection url.
4.7.1
- Shows the string “Item” for 1. Show the string “Items” for 0 or more than 1.
- Updated the help text for the sandbox mode option to include Stripe testmode.
- PHP8 related update for the shipping calculation in the cart.
- Added a new option to enable shopping cart anchor.
- Added CSS class to the shopping cart title.
4.7.0
- Unique names for debug log file name.
- Updated the translation POT file.
- Added a CSS wrapper class to the product box shortcode output.
- Added documentation for using the blocks in the new WordPress editor.
4.6.9
- Shopping Cart block inserter related: fixed a rendering issue when both a shortcode and a block inserter is used with the smart checkout option.
- Issue with “Collect Customer Input” addon’s form validation and smart PayPal checkout button fixed.
- Jquery loading issue fixed.
4.6.8
- Stripe payment gateway: fixed a rounding issue with the base shipping amount.
4.6.7
- The general settings menu items have been reorganized into two separate sections: PayPal Settings and Shopping Cart Settings.
- Issue using quotes in the block attribute fields has fixed.
- Moved the ‘Disable Standard PayPal Checkout’ option to the general settings so it can work in combination with the Stripe checkout settings.
- Fixed the per checkout shipping amount issue with the newly added Stripe checkout option
4.6.6
- Added Stripe payment gateway checkout option. The Stripe checkout option can be enabled in the settings menu.
- Improvements to stop a hash error when the product name contains a special character.
- Three new gutenberg blocks (Add-to-Cart, Product Box and Shopping Cart) added.
4.6.5
- Reworked the main cart function to use a class instead of PHP session. This is part of a series of improvements that we are making to the plugin.
- Optimized the saving of the cart to the order post meta.
- The custom field values are saved to the order post meta instead of session.
- Although the upgrade is designed to be seamless and compatible with older versions, significant changes have been made in this version. Therefore, it is advisable to back up your site before proceeding with the upgrade.
4.6.4
- The CSV export now directly streams the CSV file to the browser so you can save/download the exported orders data directly to your PC.
4.6.3
- Added a new method to retrieve the current page URL for better server compatibility.
- Added a new filter hook.
4.6.2
- Easy shortcode copy and paste option in the settings.
- Added output escaping to the [wp_cart_button] shortcode.
4.6.1
- Apply floatval to shipping amount (if used) to prevent an error in PHP8 system.
4.6.0
- Compatibility with Batcache system.
4.5.9
- Collect and save address line 2 (if available) for PayPal Smart checkout option.
4.5.8
- PHP 8.1 related compatibility update.
4.5.7
- Cart widget PHP notice fixed for PHP8.
4.5.6
- WP 5.9 Compatibility. Fixed the cart widget in the widgets menu.
4.5.5
- Fixed a rounding issue with applying discount coupon to the cart.
4.5.4
- Fixed an issue with the paypal smart checkout option sometimes giving an error “Order ID does not exist”.
4.5.3
- WP 5.6.1 compatibility update.
4.5.2
- JQuery UI CSS library is now included inside the plugin.
- Added more input sanitization.
- Added an option in the settings to disable the price check validation. Some admins prefer to have this check turned off.
4.5.1
- If your site uses caching, empty the cache after you upgrade the plugin (to delete stale cached data).
- Improved the price hash compare function. Thanks to @XshIsMe.
- Added Spanish language translation files.
4.5.0
- Added a new action hook to allow affiliate plugin integration with the PayPal smart checkout option.
- The compact cart shortcode output can be translated fully.
- Completed testing on WP 5.5
4.4.9
- Smart Checkout fix with certain coupon code application (some discount amount was giving an invalid amount error).
- Added link to smart checkout setup documentation.
4.4.8
- Added CSS class to the remove item table data.
- Updated the code related to quantity change (using the up/down arrows) to work better.
- Fix: Undefined index notices.
- Added a new utility function to write to log file.
4.4.7
- Fixed the “Order ID does not exist in IPN Notification” issue with smart paypal checkout option for some sites.
4.4.6
- Changed the quantity input field to be a “number” type field. Customers will be able to change the number value easily.
- The session for the shopping cart is only started on the front-end.
4.4.5
- Fixed issues with custom fields when using Collect Customer Input addon.
4.4.4
- More texts are now translatable. POT file updated.
- Added more filter hooks so the customer Input addon fields are now exported to CSV as well.
4.4.3
- Added button customization options (in the PayPal Smart Checkout Settings) for the smart paypal checkout button.
4.4.2
- Added PayPal smart button configuration documentation
https://www.tipsandtricks-hq.com/ecommerce/enabling-smart-button-checkout-setup-and-configuration-4568
4.4.1
- Added a new checkout option that uses the smart PayPal payment button. You can enable it from the PayPal Smart Checkout Settings menu.
- Added Breton language files. Thanks to Florian for submitting the language files.
4.4.0
- The order date is now included in the exported CSV file.
- Upda
Follow this listing's changes (Atom feed)