Nov 292023
 

Sell Products WordPress Simple Shopping Cart post shows you how to add more than one product to the cart.

WordPress Simple Shopping Cart plugin is a very simple plugin to use for selling products. It allows you to add more than one product without causing any issues. The visitor simply clicks on the add to cart button for each product they wish to purchase and the plugin will do the rest. Once the customer completes selecting the products, they then click on the checkout button. The shopping cart will display the total cost in PayPal or Stripe popup window. However this tutorial is based on PayPal payment gateway.

These instructions are simple and easy to follow.

What you need:

Premium addons:

(Note: The 3 links below are affiliated links. I get a small commission if you purchase a product.)

Sell Products WordPress Simple Shopping Cart

Step 1 ) For this example a post was created with three shortcodes as illustrated in the image below. The purpose of this tutorial is to show you how simple it is to add more than one product to the shopping cart using this plugin. In this post three shortcodes is added, one for each product.

Selling products:

  • Apples = $5.50 per kilo.
  • Bananas = $4.50 per kilo.
  • Pears = $3.50 per kilo.

Shortcodes added

[wp_cart_button name="Apples" price="5.50"]
[wp_cart_button name="Bananas" price="4.50"]
[wp_cart_button name="Pears" price="3.50"]

and

[show_wp_shopping_cart]

Note: If you are using complex characters for the product name, it can trigger the following errors: The price field may have been tampered and or Security check failed. Enabling the following feature Disable Price Check for Add to Cart will stop that check and remove the error.

wordpress-simple-shopping-cart-product-buttons

Step 2 ) The following image displays Apples added to the cart. The visitor can click on the checkout button if they wish to purchase only the Apples.

wordpress-simple-shopping-cart-apples-product-added

Step 3 ) The following image displays Apples and Bananas added to the cart. The visitor can click on the checkout button if they wish to purchase only the Apples and Bananas.

Note: If the customer only wishes to purchase one product because they changed their mind, they can click on the recycling bin next to the product they want to remove from the cart.

wordpress-simple-shopping-cart-apples-bananas-products-added

Step 4 ) The following image displays Apples, Bananas and Pears added to the cart. The visitor can click on the checkout button if they wish to purchase the Apples, Bananas and Pears.

Note: If the customer only wishes to purchase one product because they changed their mind, they can click on the recycling bin next to the products they want to remove from the cart.

The following image illustrates  the following information in the shopping cart.

Product Cart Information

  • Item Name
  • Quantity = Allows the person to choose how many they want to purchase.
  • Price = Depending on the quantity added.
  • Total = The final amount the person will pay based on the above entries.
  • The customer can then click on the Checkout with PayPal button.

wordpress-simple-shopping-cart-apples-bananas-pears-products-added

Step 5 ) Once the customer clicks on Checkout with PayPal button above they will be taken to PayPal secure site as illustrated in the image below.

PayPal Secure Site

  • Amount displayed $13.50 USD
  • They can enter their PayPal credentials.
  • Or they can choose to pay with debit or credit card if they don’t have a PayPal account. (Note: You need a Business PayPal account to allow your customers to pay with a credit card. A standard PayPal account will not display this option.)

wordpress-simple-shopping-cart-displayed

PayPal Smart Checkout

Step 6 ) WordPress Simple Shopping Cart plugin now allows you to set up PayPal Smart Checkout payment. Click the following link enabling-smart-button-checkout-setup-and-configuration to learn more.

Note: When using “Smart checkout” PayPal bypasses the profile based tax and shipping. So it doesn’t work the same way as the standard PayPal checkout (in terms of profile based tax and shipping). That’s how the Smart checkout flow of PayPal works. If you need to use the profile based tax and shipping, you cannot use the PayPal smart checkout option unfortunately. Click the following link forum post to learn more.

Compact Shopping Cart

Step 7 ) Sometimes you may want to display a compact shopping cart on your sidebar or in a post. This allows the users to see that they have items in the cart and they can click a view cart button to go to the full shopping cart page. Click the following link compact shopping cart to learn more.

Troubleshooting Cart Orders

Q1 When I add a 2nd item to the cart it just replaces the first item instead of showing both items. How do I fix this issue?

Solution: This usually happens for one of the following reasons.

#1) The PHP Session on the site is not working (PHP session is not
setup correctly by the hosting provider). The following documentation php-session-not-working-correctly can help you.

#2) The site has some kind of caching somewhere so it is showing the
cached page (which doesn’t contain the cart).

Check the following forum post for more information.

============

Q2 The cart only works when I log in. When I visit the shopping cart page nothing shows up and or the cart does  not work. Why is that?

Solution: This usually happens when you have a cache plugin and your cart page is not excluded from getting cached. Check the following forum post for more information.

============

Q3 The plugin is not working for me. When I click on the Add to Cart button I get a fatal error message. How can I fix this issue?

Solution: This usually happens when you have added some special characters to the name=””
parameter in the shortcode. If this is the case, make sure you enable the following feature Disable Price Check for Add to Cart. This is located under General Settings tab. Check the following forum post for more information.

================================

I will be updating this post from time to time. So keep coming back for more.

Enjoy.

WordPress Simple Shopping Cart List

I have been working in IT since 1999 and I enjoy the challenges it brings me. I love developing websites with WordPress. I spend a lot of time helping out in wordpress.org forums. I have been writing tutorials since 2011. Now I am learning how to manage my own VPS "Virtual Private Server.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

fourteen − six =