(For more resources related to this topic, see here.)
So, you’re already familiar with WordPress and know how to use plugins, widgets, and themes? Your next step is to expand your existing WordPress website or blog with an online store? In that case you’ve come to the right place!
WooCommerce is a versatile plugin for WordPress, that gives the possibility for everyone with a little WordPress knowledge to start their own online store.
In case you are not familiar with WordPress at all, this book is not the first one you should read. No worries though, WordPress isn’t that hard to learn and there are tons of online possibilities to learn about the WordPress solution very quickly. Or just turn to one of the many printed books on WordPress that are available.
These are the topics we’ll be covering in this article:
- Installing and activating WooCommerce
- Learn everything about setting up WooCommerce correctly
Preparing for takeoff
Before we start, remember that it’s only possible to install your own plugins if you’re working in your own WordPress installation. This means that users running a website on WordPress.com will not be able to follow along. It’s simply impossible in that environment to install plugins yourself.
Although installing WooCommerce on top of WordPress isn’t difficult, we highly recommend that you set up a test environment first. Without going too much into depth, this is what you need to do:
- Create a backup copy of your complete WordPress environment using FTP. Alternatively use a plugin to store a copy into your Dropbox folder automatically. There are tons of solutions available, just pick your own favorite. UpDraftPlus is one of the possibilities and delivers a complete backup solution: http://wordpress.org/plugins/updraftplus/.
- Don’t forget to backup your WordPress database as well. You may do this using a tool like phpMyAdmin and create an export from there. But also in this case, there are plugins that make life easier. The UpDraftPlus plugin mentioned previously can perform this task as well.
- Once your backups are complete, install XAMPP on a local (Windows) machine that can be downloaded from http://www.apachefriends.org. Although XAMPP is available for Mac users, MAMP is a widely used alternative for this group. MAMP can be downloaded from http://www.mamp.info/en/index.html. Restore your WordPress backup on your test server and start following the remaining part of this book in your new test environment.
- Alternatively, install a copy of your WordPress website as a temporary subdomain at your hosting provider. For instance, if my website is http://www.example.com, I could easily create a copy of my site in http://test.example.com. Possibilities may vary, depending on the package you have with your hosting provider.
- If in your situation it isn’t needed to add WooCommerce to an existing WordPress site, of course you may also start from scratch. Just install WordPress on a local test server or install it at your hosting provider. To keep our instructions in this book as clear as possible we did just that. We created a fresh installation of WordPress Version 3.6. Next, you see a screenshot of our fresh WordPress installation:
Are these short instructions just too much for you at this moment? Do you need a more detailed step-by-step guide to create a test environment for your WordPress website? Look at the following tutorials:
For Max OSX users: http://wpmu.org/local-wordpresstest-environment-mamp-osx/
More tutorials will also be available on our website: http://www.joomblocks.com
Don’t forget to sign up for the free Newsletter, that will bring you even more news and tutorials on WordPress, WooCommerce, and other open source software solutions!
Once ready, we’ll be able to take the next step and install the WooCommerce plugin. Let’s take a look at our WordPress backend. In our situation we can open this by browsing to http://localhost/wp36/wp-admin. Depending on the choices you made previously for your test environment, your URL could be different.
Well, this should all be pretty familiar for you already. Again, your situation might look different, depending on your theme or the number of plugins already active for your website.
Installing a plugin is a fairly simple task:
- Click on Plugins in the menu on the left and click on Add New.
- Next, simply enter woocommerce in the Search field and click on Search Plugins.
- Verify if the correct plugin is shown on top and click on Install Now. Confirm the warning message that appears by clicking on OK.
- Click on Activate Plugin. Note that in the following screenshot, we’re installing Version 2.0.13 of WooCommerce. New versions will follow rather quickly, so you might already see a higher version number.
- WooCommerce needs to have a number of specific WordPress pages, that it automatically will setup for you. Just click on the Install WooCommerce Pages button and make sure not to forget this step!
In our example project, we’re installing the English version of WooCommerce. But you might need a different language. By default, WooCommerce is already delivered in a number of languages. This means the installation will automatically follow the language of your WordPress installation. If you need something else, just browse through the plugin directory on WordPress.org to find any additional translations.
- Once we have created the necessary pages, the WooCommerce welcome screen will appear and you will see a new menu item has been added to the main menu on the left.
- Meanwhile the plugin created the necessary pages, that you can access by clicking on Pages in the menu on the left.
Note that if you open a page that was automatically created by WooCommerce, you’ll only see a shortcode, which is used to call the needed functionality. Do not delete the shortcodes, or WooCommerce might stop working. However, it’s still possible to add your own content before or after the shortcode on these pages.
WooCommerce also added some widgets to your WordPress dashboard, giving an overview of the latest product and sales statistics. At this moment this is all still empty of course.
In this article, we learned about the basics of WooCommerce and installing the same. We also learned that WooCommerce is a free but versatile plugin for WordPress, that you may use to easily set up your own online store.
Resources for Article:
- Django 1.2 E-commerce: Generating PDF Reports from Python using ReportLab [Article]
- Increasing sales with Brainshark slideshows/documents [Article]
- Implementing OpenCart Modules [Article]