Try Tuts+ Premium, Get Cash Back!
How to Build an E-Commerce Website Using WordPress: Part 2

How to Build an E-Commerce Website Using WordPress: Part 2

Tutorial Details
  • Program: WordPress
  • Version : 3.3
  • Difficulty: Easy
  • Estimated Completion Time: 30 minutes to 1 hour

This is the second and final part of the WordPress E-Commerce tutorial. Here we will go through the final steps of completing our WordPress e-commerce web site. You will be shown with the process of adding products to your site, using different widgets to enhance your site, using different reports to keep track of the sales and efficient use of shortcodes.

Once done with the wp-ecommerce settings, adding your products and selling becomes child’s play.


Before We Move On

Before we dive straight into the process, let’s look at a few changes we made to the e-commerce site since part 1.

1. We have installed the latest version of Liquorice theme, i.e Liquorice 2.2 by Nudge Design.

2. We have updated WordPress to the latest WordPress 3.3 version.

3. Under Settings -> Store -> Shipping we have edited the Flat Rate option and put $ 0.00 under all the fields. This is done since we will use different shipping rates for different products (without any base rates). Putting $ 0.00 keeps this feature enabled. If you want to keep a Base rate to be added to the individual shipping cost of each product, you may enter your Base rates here.

Now our site looks like….


Adding Products

Lets discuss a few useful options before we add our first product.

1. The Product -> Coupons page lets us add special discount coupons for the products. Here you can specify the Coupon Code, Discount, Coupon Expiry Date and other conditions as per your requirements.

2. The Product -> Variations options lets you add variations to your products.

Supose you are selling T-Shirts and you want to specify its variations in Size or Color. This options lets you define your Variations Set first and then define the different variations under it. You can also set a price for each of the variations.

3. The Product -> Product Tags options lets you define your own product tags useful for searching a product while using the Product Tags widget.


Adding Product Categories

Before adding a product lets add our product categories from the Products -> Categories page.

While adding a category you need to specify the Name, Parent Category (if any) and Description. You may specify a Thumbnail image and also restrict a few countries from accessing this product. As of now we have added three categories- Flowers, Confectioneries and Chocolates.


Adding Your First Product

The Products -> Add New option lets you add products to your e-commerce site.

Here you need to specify the Product Name, Product Description, Product Tags and categorize your product under the created Categories. The Variations option lets you add your created Variations to this product.

Now you need to add the Price, Stock and Taxes(if any) of this product. While adding the Price, you can also specify a Sale Price to show a discounted price to your customers, which will increase the customer’s interest.

The Product Download option is used if you are selling downloadable products.

Please upload Product image by clicking the Manage Products Images link. Here you have the option to upload the image form your local hard disk, URL or using your WordPress Media Library. You can also Drag and Drop your images in this page.

The most important part is specifying your shipping options. Here at first you need to specify a Weight for your product and then specify the Local and International Shipping Charges. You also have the option to disregard the shipping charges.

After making all the changes click on Publish.

Now your product appears under the Products -> Products option. You can edit/delete the product from here.

Lets add two more products to our site.

Lightbox effect Image of products.

In the same way you can add different products to your site. You can also use the Settings -> Store -> Import option to upload products in a batch using a comma delimited text file.. After adding the products you can upload the images and insert the additional details.


Using a Few Essential Widgets

Under the Appearance -> Widgets, you will find many useful widgets. You just need to drag and drop it in the area of the page where you want to place it. Lets discuss a few of these one by one.

1. Latest Products– Using the Latest Products widget will display the recently added products on your sidebar or the area where you are placing this widget.

2. Products Categories – Using this widget will show all your product categories in your sidebar. The customer can search for products using those categories.

3. Product Specials – This widget displays those products that is on Sale in your site, i.e if the product has any discounted price or the Table Rate Price.

4. Product Tags- This widget displays the specified product tags in your sidebar so that customer can search for their required products using those Tags.

5. Price Range – This widget adds the price range of the products in your sidebar through which the customer can search for the products using different price ranges.

6. Shopping Cart – If you have selected the Widget option for your Cart Location , you can use this widget to display the shopping cart in your sidebar.

7. Text- This wizard is very helpful if you want to display any special ad on your website. You can also copy paste html snippets in this widget.


Reporting

Once the products have been purchased, you can see the purchase reports under the Sales Summary, Sales by Quarter and Sales by Month. Under the Sales Summary you will get to know the current month’s sales as well as the Total Income. The Sales by Quarter displays the sales by Financial Quarters and Sales by Month displays Last four months of sales on a per product basis.

Under Dashboard -> Store Sales, you will get a summary of the sales for the Current Month. It is through this screen that you will be able to see all the sales details and also process the orders. You can change the Sales Status and also add anew Tracking IDs to each of the products. Clicking on the Details->Items displays the invoice. You can also email the customer the purchase receipt from this page.

That’s it your e-commerce site is ready for the first sale.While checking out, the system automatically asks for you Login Credentials or Registers you if you are a new customer.


Importance of Shortcodes

Introduction

A shortcode is a specific code in WordPress that lets you do great things using very little effort. The other name of Shortcode is Shortcut, you can embed files or create objects using just one line of shortcode which otherwise would have required lots of ugly codes.

Here are the details of a few important shortcodes used in our site.

productspage shortcode helps in displaying the complete list of products and their presentation in the website. This is a very important shortcode in Wp e-commercerce that is used within Products Pages, Products Categories and single Product Templates.

shoppingcart shortcode displays the checkout page or the checkout template in the site.

transactionresults shortcode displays the transaction page which shows the customers the status and the summary of their purchase.

userlog shortcode displays the My Account page of the site. Its is used by already registered customers to see their details regarding purchase history, downloads and account details.

Some other examples of shortcodes-

[wpsc_products product_id='288'] – Displays the product which has ID of 288
[buy_now_button product_id='198'] – Displays a PayPal buy now button for the product(ID-198).
[add_to_cart=112] – Displays an add to cart button for the product(ID-112).


Conclusion

I hope you have enjoyed both the e-commerce tutorials.This is only the tip of the iceberg of what can be done with the Wp e-commerce plugin. In the future I shall try to bring more tutorials on WordPress e-commerce.

Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://academicwriterjobs.com Academic writer

    Yes nice tutorial.It seems to easy fro me.

    100000000000 thanks fro such tutorial

  • http://www.elimcmakin.com Eli McMakin

    Awesome. Thank you.

  • http://www.clicksansar.com/ Markus

    Thanks a lot, its awesome !!

  • Xander

    @Author:

    Creating a tutorial which explains setting settings and installing plugins is overkill. It might be handy for my grandfather though.

    When somebody wants an e-commerce website, they should first find a payment provider which offers
    all the payment gateways that are needed. For example iDeal.. which is used by myselve is not included
    in wp-commerce. I need to make sure I get a safe payment solution for this.
    If one can not be found.. make sure you find another cart solution.
    Always check if the paypal gateway is working the way it should be. Paypal wants approx. 3.5% fee when paying through paypal. This can be your costs or you can ask the customer for this. Whatever you choose,
    it should be in the paypal settings.. if not.. then the cart sollution is not working straight out of the box and then you need to pay a developer to get you this functionality.

    When running a webshop you will need to ship products or have a solution to offer safe downloads.
    Does wp-commerce offer DHL or TNT and if it does, how does it calculate shipping?
    This is really important.

    Also it is needed to have a system that can extract discounts or fees before or after shipping costs and a system that can handle different types of tax.

    Before you start your own shop you need to find out which shop software works best.
    Don’t push wp-commerce, because it does not do the trick for me.. and this could be the case for others too.

    I’m waiting for a tutorial or a walkthrough which describes where to look out for when choosing your cart software. This is more important than your “How to set settings and install a plugin”- tutorial.

    • Japh Thomson
      Staff

      Thanks for your thoughts, Xander! I think there are a few ideas for new tutorials in there too :)

      Ultimately, we cover a wide range of topics, and this particular article was focussed on configuring WP e-Commerce. Other articles will cover other aspects of e-commerce, and even alternative e-commerce plugins. Hopefully, we’ll have one soon that details the sorts of information you’re looking for!

      • Xander

        @Staff
        Thanks, but I’m not looking for tutorials anymore. Now I read API’s and just start coding.
        I came across this because I follow the RSS feeds and always find it interesting to look at the quality of
        the tutorial. Some of you’re tutorials are worthless and give me the idea that you expect you’re readers to have down syndrome or a similar level of cognitive skills.
        I honestly think that people who are capable of running a webshop or any other business (including all offline paperwork) will be able to install a plugin and adjust it’s settings. And if they can’t they will follow the
        installation guides on the wp-commerce website, which makes this tutorial a total waste of energy.

        • Michael

          “Some of you’re tutorials are worthless and give me the idea that you expect you’re readers to have down syndrome or a similar level of cognitive skills”

          That is one of the most disgusting comments I’ve seen in a while. You’ve shown there a complete disrespect to people who suffer from mental conditions.

          Beyond despicable. You should be ashamed of yourself.

    • shuvo

      I have something to share with you guys for your wp sites.

      Check this out : http://codecanyon.net/item/wp-

      Authorize.net Payment Gateway is a WordPress e-commerce Plugin which allows the WP
      E-Commerce Store owners to accept credit cards. It can take less then 5
      minutes to set up and is by far the quickest way to integrate
      Authorize.net.

  • Soumitra
    Author

    Thank you….all :)

    @Xander Thank you for your valuable suggestions, in future I will surely try to deploy your desired tutorial.:)

    Sometimes teaching from a grass root level becomes necessary for novice professionals. There are many people in the world who aren’t aware of the great functionalities of WordPress so incorporating the very basic steps nurtures them all around, and this is only the beginning.

    If you use WP-e-commerce 3.8.7.5 the latest version, you will find most of the mentioned features along with great documentation. Kindly let me know if you find any issue.

    In my future tutorials I will highlight another great shopping cart plugin in WordPress.

  • http://www.earn.com.bd smile

    very interesting tuts. hope it will change my way of web designing.

  • Pingback: WordPress Community Roundup for the Week Ending January 21 - Charleston WordPress User Group

  • Tiff

    Thank you so much! It seems that you get a lot of negative feedback–for part one, too. I am brand new to the world of WordPress, and hosting my own site. I didn’t know what a “plug-in” was, or most terms that I should have known. Whether I stick with WP E-Commerce or not, this was a great starter tutorial for learning the ropes and the terms. I’ve been practicing for a few days and I appreciate this to guide me through the basics. Thank you!

  • Kyle

    @Xander – you’re a dick. Do you read these posts just to degrade the authors?

    “Thanks, but I’m not looking for tutorials anymore. Now I read API’s and just start coding.
    I came across this because I follow the RSS feeds and always find it interesting to look at the quality of
    the tutorial.”

    …Well aren’t you mister fancy pants? iiiiiiii only read aaaaapppppiiiiis (proper englishman voice).

    “Some of you’re tutorials are worthless and give me the idea that you expect you’re readers to have down syndrome or a similar level of cognitive skills.”

    Are you kidding me? Do you have 1 piece of moral fiber in your super nerdo code junky brain? Grow up pal.

    Anywho – I think this is a great primer, for someone like myself, who hasn’t been involved with developing any Ecommerce sites. As one of the Staff members mentioned, it stems ideas for future tuts and research for the readers.

    • Sara

      Well said!! :D

  • http://syntheticsamurai.com Tomo

    I just started learning wordpress a couple months ago in my spare time, and this whole site has been very helpful. I tend to prefer incremental learning (building on previous learned skill), so sometimes I’ll see a tutorial or walkthrough that is a couple steps ahead of my knowledge (or a couple steps behind), but learning is a lifelong endeavor some people travel the world for enlightenment, some people travel the internet, however it seems like only in the latter do people’s expectations of knowledge gain get unreasonable.

    So to that point, I thank the author(s) of this site and this article in particular. It may not give everyone who reads it everything they are expecting to learn but it will most likely give most readers SOMETHING they didn’t know previously.

    Trolling comments doesn’t get anyone anywhere, everyone’s done it (starting or replying), so I’m not going to hate, but just keep in mind that this article is one person’s ideas/point of view, it’s impossible to expect it to fulfill many people’s expectations 100%.

    keep up the good work!

  • Steve

    Well Xander were you born or did you fall out of a test tube?

    Perhaps you are so far up your own a**se that you’ve forgotten that someone spent a lot of time in your education. Could you walk, talk & not need toilet training!

    Can you drive a car? Yes? Then you had to be taught what sequence of events to carry out didn’t you!

    Or, is it possible you were created all knowing, godlike?

    As a retired IT tutor of company personnel of all age groups I & my team had to cater for ALL capabilities. Not everyone has your extroadinary powers.

    If you are so clever why do you bother reading something of such infantile content?

    How arrogant of you to assume that people who don’t have your powers are retards, & that there cannot be anyone who doesn’t need a step by step guide to get started in something that may be alien to them.

    I now own & operate two business’s. I have written my own software in Microsoft Access for both of them.

    I have also written administrative software for other small business’ complete with training & manuals!!!!!!!!

    Now, just because I’ve been around computers since 1984 (possibly before you were even born) I am just trying to set up an eshop & I’m finding it extremely difficult. There is so much poor information out there. I’ve watched so much poor quality Youtube to no avail, Read so many peoples opinions & today 26/04/12 I’ve found this tutorials (part1 & 2).

    Soumitra has turned the light on at last! I thank you so much..

    I’ve printed all the instructions out for future reference. So Xander how much of a retard am I?

  • http://www.seoservicesdelhi.org Raja Sekar

    Wow really awesome information to users regarding this e-commerce word press installation really i got more more new ideas.

  • ASIF

    nice , thanxs alot, i have learned many things from this tutorial, i am very thankful to u , once again thanxs for this great effort

  • http://ziyaeddin.com/blog ziyaeddin

    Awesome tutorial, I followed your tutorial and set up an e-commerce website. But I found it hard to suit to my needs, for example although I added 2 pictures it only showed 1. Other than good for simple businesses.

  • http://paracordsandmore.com Jeffrey Washington

    Very helpful. Really needed something basic like this. I have my site up and running, but now I’m looking for info on why I couldn’t use the Product category with WP e-commerce. Along with the WP shopping cart for paypal, it just bogged down my whole site. Everything worked fine if I created a seperate page for each product, which is the direction I took at this time. I was hoping for the ability to do the customization that the cart and wp e-commerce offered. Any way, this tutorial was excellent for a newby like myself.

  • bakula parikh

    Thanks for explaining so nicely about making on line shop in word press. But my client wants to manage images and price of products himself. How to do that

  • http://www.facebook.com/mittul.chauhan Mittul Chauhan

    A Useful Tutorial ..thank you

  • http://twitter.com/MacProClub MacProClub – Andy

    How can I set the default variation?

  • shuvo

    Good tutorial and I have something to share with you guys for your wp sites.

    Check this out : http://codecanyon.net/item/wp-ecommerce-authorizenet/4494116

    Authorize.net Payment Gateway is a WordPress e-commerce Plugin which allows the WP
    E-Commerce Store owners to accept credit cards. It can take less then 5
    minutes to set up and is by far the quickest way to integrate
    Authorize.net.