Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
WooCommerce Cookbook
WooCommerce Cookbook

WooCommerce Cookbook: WooCommerce makes it easy to create, design, and manage your own personalized eCommerce store - this WooCommerce tutorial eBook will show you how to get started

eBook
$27.98 $39.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

WooCommerce Cookbook

Chapter 2. Adding Products

In this chapter, we will cover:

  • Adding a simple product
  • Adding an image gallery to a product
  • Changing image sizes in WooCommerce
  • Adding a downloadable file to a product
  • Adding global product attributes
  • Adding a variable product
  • Adding an extra fee to a product with the Product Add-ons plugin
  • Adding a product bundle with the Product Bundles plugin
  • Bulk-uploading products with a CSV file
  • Removing product tabs
  • Reordering product tabs

Introduction

In Chapter 1, WooCommerce Basics, you set up your store. The recipes in this chapter are all about adding products to your store. There are many different ways to configure your products. Knowing a little bit about each will help you decide how you want to display your products to your customer. Near the end of the chapter, we'll also touch on removing or reorganizing some of the information on the product page.

WooCommerce started with just simple and variable products. Over the years, other developers have come in and created different ways to sell products. In this chapter, we'll look at simple products, variable products, the Product Add-ons plugin, and the Product Bundles plugin. There are other ways to configure your products, but these are some of the most commonly used ones. At the end of this chapter, you should have all of the products in your store configured the way you want them. In Chapter 3, Changing the Product Organization, we'll cover how to...

Adding a simple product

The best place to start when learning how you can add products to WooCommerce is to add a simple product. A simple product is the most basic product that you can create in WooCommerce. All other product types are based on the simple product and add extra controls.

How to do it…

In order to add a simple product to WooCommerce, take a look at the following steps:

  1. Go to Products | Add Product.
    How to do it…
  2. Enter the name of the product in the Product name field. In the text editor right beneath the Product name field, enter the product's description. In most themes, this copy will appear beneath the product, so you could write paragraphs and paragraphs if you wish.
  3. Scroll down to the Product Data panel.
    How to do it…
  4. Enter the product's price in the Regular Price ($) field.
  5. Scroll down to the Product Short Description panel and enter a short description of the product. This copy will appear above the Buy button, so it's best if it's only one or two lines. It is usually a summary...

Adding an image gallery to a product

One of the things that can really sell a product is having high-quality visuals. For some types of products, you may only need one photo. For other markets, especially upper-scale markets, the more photos, the better. Included in WooCommerce is the ability to show off a gallery of images.

Getting ready

You need to have a product on your site. If you haven't already done this, please follow the steps in the preceding recipe, Adding a simple product.

How to do it…

In order to add an image gallery to a product, go through the following steps:

  1. In the WordPress admin, click on the Products menu and navigate to your product.
  2. Once you're on the product detail page, look for the Product Gallery meta box and click on Add product gallery images.
    How to do it…
  3. Just like with the Featured Image configuration, you can either select existing images or upload as many images as you like.
  4. Now that you've added the images to the product gallery, you can arrange them however...

Changing image sizes in WooCommerce

If your products fit nicely into perfectly square images and they look good as they are in your theme, then you can probably skip this recipe. For some themes or some types of products, though, it's really beneficial to change how WooCommerce crops your images. If you're selling ties, for example, it's probably worth telling WooCommerce to crop them so they're long and skinny.

Getting ready

It's best if you have already created a couple of products and look at them to compare how the Featured Image and the Product Gallery look on their product pages. If you see gaps around the images, you may be able to increase the product image size and take advantage of that space.

How to do it…

Changing image sizes can be done in two parts. The first part will change the settings, and this will affect all future uploads. The second part will install a plugin that will force your website to recrop every image, which will affect all past...

Adding a downloadable file to a product

WooCommerce is just as good to sell virtual products as it is to sell physical products. The beauty of the way it's set up is that any product type can be a virtual product. It could be a simple product, a variable product, a subscription product (which we'll cover in Chapter 4, Running a Membership Site), and so on. WooCommerce handles all of the download permissions. Fulfilling virtual products is completely automated. As soon as you receive payment, the customer receives an email with a special link to download to the file.

The simple product I set up in previous recipes is a poster. I could change this product so that it includes a digital download in addition to the physical product or I could even change it so that the customer only receives a digital download and there is no physical product shipped.

Getting ready

Make sure you already have a simple product in your store.

How to do it…

In the first section, I'm going to add...

Adding global product attributes

In addition to using categories and tags similar to WordPress posts, there's one extra way that you can categorize your products, and that is by using product attributes. Product attributes are things such as color, size, style, and so on. A simple product could have multiple attributes. A small red and blue t-shirt could have the following attributes: red, blue, and small.

Setting up global product attributes will make creating variable products easier down the road.

How to do it…

Make sure you already have a simple product in your store and proceed with the following steps:

  1. From the WordPress admin, go to Products | Attributes.
    How to do it…
  2. Under the Add New Attribute heading, you'll see settings to create attributes. The only mandatory field is Name.
  3. Enter a name for the attribute and click on the Add Attribute button.
  4. Now click on the icon on the far right in the Attribute table. When you hover over the button, you should see Configure terms.
    How to do it…
  5. Enter a name...

Introduction


In Chapter 1, WooCommerce Basics, you set up your store. The recipes in this chapter are all about adding products to your store. There are many different ways to configure your products. Knowing a little bit about each will help you decide how you want to display your products to your customer. Near the end of the chapter, we'll also touch on removing or reorganizing some of the information on the product page.

WooCommerce started with just simple and variable products. Over the years, other developers have come in and created different ways to sell products. In this chapter, we'll look at simple products, variable products, the Product Add-ons plugin, and the Product Bundles plugin. There are other ways to configure your products, but these are some of the most commonly used ones. At the end of this chapter, you should have all of the products in your store configured the way you want them. In Chapter 3, Changing the Product Organization, we'll cover how to manipulate the...

Adding a simple product


The best place to start when learning how you can add products to WooCommerce is to add a simple product. A simple product is the most basic product that you can create in WooCommerce. All other product types are based on the simple product and add extra controls.

How to do it…

In order to add a simple product to WooCommerce, take a look at the following steps:

  1. Go to Products | Add Product.

  2. Enter the name of the product in the Product name field. In the text editor right beneath the Product name field, enter the product's description. In most themes, this copy will appear beneath the product, so you could write paragraphs and paragraphs if you wish.

  3. Scroll down to the Product Data panel.

  4. Enter the product's price in the Regular Price ($) field.

  5. Scroll down to the Product Short Description panel and enter a short description of the product. This copy will appear above the Buy button, so it's best if it's only one or two lines. It is usually a summary of the full description...

Adding an image gallery to a product


One of the things that can really sell a product is having high-quality visuals. For some types of products, you may only need one photo. For other markets, especially upper-scale markets, the more photos, the better. Included in WooCommerce is the ability to show off a gallery of images.

Getting ready

You need to have a product on your site. If you haven't already done this, please follow the steps in the preceding recipe, Adding a simple product.

How to do it…

In order to add an image gallery to a product, go through the following steps:

  1. In the WordPress admin, click on the Products menu and navigate to your product.

  2. Once you're on the product detail page, look for the Product Gallery meta box and click on Add product gallery images.

  3. Just like with the Featured Image configuration, you can either select existing images or upload as many images as you like.

  4. Now that you've added the images to the product gallery, you can arrange them however you like by clicking...

Changing image sizes in WooCommerce


If your products fit nicely into perfectly square images and they look good as they are in your theme, then you can probably skip this recipe. For some themes or some types of products, though, it's really beneficial to change how WooCommerce crops your images. If you're selling ties, for example, it's probably worth telling WooCommerce to crop them so they're long and skinny.

Getting ready

It's best if you have already created a couple of products and look at them to compare how the Featured Image and the Product Gallery look on their product pages. If you see gaps around the images, you may be able to increase the product image size and take advantage of that space.

How to do it…

Changing image sizes can be done in two parts. The first part will change the settings, and this will affect all future uploads. The second part will install a plugin that will force your website to recrop every image, which will affect all past uploads. Let's have a look at the...

Adding a downloadable file to a product


WooCommerce is just as good to sell virtual products as it is to sell physical products. The beauty of the way it's set up is that any product type can be a virtual product. It could be a simple product, a variable product, a subscription product (which we'll cover in Chapter 4, Running a Membership Site), and so on. WooCommerce handles all of the download permissions. Fulfilling virtual products is completely automated. As soon as you receive payment, the customer receives an email with a special link to download to the file.

The simple product I set up in previous recipes is a poster. I could change this product so that it includes a digital download in addition to the physical product or I could even change it so that the customer only receives a digital download and there is no physical product shipped.

Getting ready

Make sure you already have a simple product in your store.

How to do it…

In the first section, I'm going to add a downloadable file to...

Adding global product attributes


In addition to using categories and tags similar to WordPress posts, there's one extra way that you can categorize your products, and that is by using product attributes. Product attributes are things such as color, size, style, and so on. A simple product could have multiple attributes. A small red and blue t-shirt could have the following attributes: red, blue, and small.

Setting up global product attributes will make creating variable products easier down the road.

How to do it…

Make sure you already have a simple product in your store and proceed with the following steps:

  1. From the WordPress admin, go to Products | Attributes.

  2. Under the Add New Attribute heading, you'll see settings to create attributes. The only mandatory field is Name.

  3. Enter a name for the attribute and click on the Add Attribute button.

  4. Now click on the icon on the far right in the Attribute table. When you hover over the button, you should see Configure terms.

  5. Enter a name for an attribute...

Left arrow icon Right arrow icon
Download code icon Download Code

Description

If you have ever built or managed a WordPress site and want to add e-commerce functionality into your site, WooCommerce and this book are perfect for you. Learning how to use WooCommerce through this series of recipes will give you a solid platform to add any future e-commerce needs.

Who is this book for?

If you have ever built or managed a WordPress site and want to add e-commerce functionality into your site, WooCommerce and this book are perfect for you. Learning how to use WooCommerce through this series of recipes will give you a solid platform to add any future e-commerce needs.

What you will learn

  • Install WooCommerce and get it up and running
  • Configure your products no matter how complex they are
  • Customize the look and feel of your WooCommerce store
  • Learn to put all of your extra code in a plugin
  • Measure your conversion rate by integrating with Google Analytics
  • Add customers to your newsletters automatically so that you can keep in touch with them
  • Use the WooCommerce dashboard to manage your orders

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 31, 2015
Length: 248 pages
Edition : 1st
Language : English
ISBN-13 : 9781784394059
Languages :
Concepts :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Mar 31, 2015
Length: 248 pages
Edition : 1st
Language : English
ISBN-13 : 9781784394059
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 136.97
WordPress 4.0 Site Blueprints (Second Edition)
$48.99
Building E-Commerce Solutions with WooCommerce, Second Edition
$38.99
WooCommerce Cookbook
$48.99
Total $ 136.97 Stars icon
Banner background image

Table of Contents

11 Chapters
1. WooCommerce Basics Chevron down icon Chevron up icon
2. Adding Products Chevron down icon Chevron up icon
3. Changing the Product Organization Chevron down icon Chevron up icon
4. Running a Membership Site Chevron down icon Chevron up icon
5. Setting Up Shipping Methods Chevron down icon Chevron up icon
6. Getting Paid Chevron down icon Chevron up icon
7. Modifying the Checkout Process Chevron down icon Chevron up icon
8. Managing Orders and Taxes Chevron down icon Chevron up icon
9. WooCommerce Theming Chevron down icon Chevron up icon
10. Exploring More with WooCommerce Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.4
(12 Ratings)
5 star 33.3%
4 star 25%
3 star 16.7%
2 star 0%
1 star 25%
Filter icon Filter
Top Reviews

Filter reviews by




Warren Clendining Apr 18, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is an excellent step by step approach to using WooCommerce. I recommend to any just getting started and as a reference when we forget, and we do seem to forget from time to time.
Amazon Verified review Amazon
nachiket chavan Apr 05, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Great book with step by step guide. Easy learning and fast creation of ecommerce store .
Amazon Verified review Amazon
Omar Skapti Gislason Oct 29, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Great book
Amazon Verified review Amazon
Thomas Way Sep 07, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I haven't finished the book but I skimmed some of the chapters. For the Woocommerce novice it looks like a good place to start.I am disappointed that someone else gave this book a one star review without any feedback, so I'm giving it five stars to offset that. I think three or four stars would be my normal rating.One caveat I have about this book is its endorsement of plugins that cost a fair amount of money without clearly explaining that. The information about cost may be in there but not in the chapters I have read so far. In the beginning they mention "There are several free WooThemes products including Pay with Amazon" but the chapters I have read have you downloading plugins that cost $$$ in order to complete tasks explained in the book. (Shipping is a prime example.)Though I think paying for plugins is fair, some of the pricing can be over-the-top.Woocommerce will work in free mode but if you are serious about your store, you will need to spend some bucks on plugins to make it comparable to other paid shopping software.
Amazon Verified review Amazon
GManMi Dec 09, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
IF YOU ARE GOING TO RUN A SHOPPING OR eCOMMERCE SITE YOU WILL NEED MORE THAN JUST THE BASIC INSTRUCTIONS.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.