If you are running a website on WordPress and trying to sell something as well, then you should learn how to add shopping cart to WordPress. If you already have an eCommerce website, then you must be using WooCommerce or other tools to create a proper checkout page.
To add shopping cart to WordPress site that does not sell products or services frequently can be a tricky thing. If you are running a blog and you have created an ebook that you wish to sell, then you will require a smart solution.
Luckily, there are various WordPress plugins available that will help you add shopping cart to WordPress website. We are going to use a plugin named, ‘Simple WordPress Shopping Cart’ plugin. Let’s have a look at how you can add an option to sell your products on your website without creating a complete eCommerce design.
Install & Setup WordPress shopping cart plugin
To get started, you will have to log in to WordPress site and navigate to Plugins > Add New. You can search for Simple WordPress Shopping Cart and you will be able to see a plugin.
You can click and install and then activate the plugin.
Once the plugin is activated, you will be able to see an option named, ‘Simple Cart’ in the WordPress dashboard. Click that option and you will be able to view multiple settings for the plugin.
In General Settings tab, you will be able to enter the PayPal Email Address and other important details including shopping car title, and currency. Apart from it, you will be able to see multiple other options as well.
You will also be able to see Email Settings where you will be able to change settings for the emails that is sent to the buyer after he/she makes a purchase.
There is also a tab for Advanced Settings that includes information about PayPal Smart checkout settings. You can set the button appearance in this tab.
After making the changes and setting things properly, you will have to update the options you have saved.
You can go back to the General Settings tab and you will be able to see multiple shortcodes.
Now, you will have to copy and move on to the next step where you will add these codes into pages, posts or widgets.
Add shortcodes to generate a shopping cart
Before inserting shortcode, make sure that you have created a page where you have entered all the information of the product that you are selling.
If you are selling a specific t-shirt, then you can add an image or two and then enter the following shortcode below the image.
[wp_cart_button name="Test Product" price="29.95"]
You can replace the product name, and the price you want to set for the product you are selling.
After entering this shortcode, an ‘Add to Cart’ button will appear on the page. If you want the complete cart to appear on the page with checkout option, then you can enter another shortcode below the previous code:
It will include a shopping cart as well in the page after a customer add a product in the cart.
Now, you can save or publish the page. After publishing the page, you can view page and you will be able to see Add to cart option.
Now, you can keep adding products and selling your products on WordPress site will become easy.
There are various other ways to add shopping cart to WordPress. However, it is the easiest one and you can easily sell your ebooks and other products on your blog. If you don’t have a complete eCommerce website, then this solution can work for you perfectly well. Stay tuned for lots of free WordPress guides and tutorials and keep sharing your suggestions in the comments.