Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Categorizing products

From: Create Your First Online Store with Drupal Commerce

Video: Categorizing products

Most product catalogs, whether online, or in paper, are broken into categories. A department Store catalog will have, for example, a category for lawn and garden, and another one for housewares, and so on. Drupal Commerce lets you organize your products into categories as well, but first you have to decide what those categories are. This video shows you how. The controls for such categories are under Structure, and Taxonomy, and here I should explain exactly the way Drupal works. The whole system is called its taxonomy.

Categorizing products

Most product catalogs, whether online, or in paper, are broken into categories. A department Store catalog will have, for example, a category for lawn and garden, and another one for housewares, and so on. Drupal Commerce lets you organize your products into categories as well, but first you have to decide what those categories are. This video shows you how. The controls for such categories are under Structure, and Taxonomy, and here I should explain exactly the way Drupal works. The whole system is called its taxonomy.

A taxonomy is divided into vocabularies, and each vocabulary is a different class of category. For example, let's say that you're selling shirts. You might have one vocabulary for size, and another for color. Within each vocabulary are terms that say what the thing actually is. So the size vocabulary would have the terms small, medium, and large, and the color vocabulary would have red, and black, and white, and so on. So first, we are going to have to add a vocabulary. I am going to call this one Category, and we don't actually have to put in a description.

There; it's that easy. Now we will add our terms to that category. To do that, go over and click add terms, next to Category. The first one I will add is Edible oils, which fits the product that we already added to our site, so Edible oils. You can add a description, and I'll do that right now. Let's say, A centerpiece of good eating, and then a URL alias. I'll add one here, and you will understand what it does when I'm done with the video. I'll just make it edible-oils, and Save.

You'll notice that after you've added a term, you're asked to add another one. That just follows the way that people usually work. They'll usually start adding term after term, which is very convenient I think, so I will actually add Cosmetics with its own URL alias, and save. And finally, Apparel, and save. Now, we have set up our categories, but they don't actually show up anywhere until we link them to our product display nodes.

So to do that, I go up to Structure, and Content types, and edit the product display content type. I will go into manage fields. In order to connect the categories to product display nodes, I am going to add a field here. I will say, Type of product, and here I will just call it type_of_product. If you have any problems with this screen, or setting up content types, or managing fields, take a look at my Drupal Essential Training Course, which goes into this in a lot more detail.

For field type we select Term reference. That refers back to, as I say, those terms within the vocabulary, and I'll leave it as Select list, and save. We then choose what vocabulary we want it to be connected to, in this case, Category, which we just created. Save, and then we have a whole bunch of other settings that we could use. I'm just going to leave it as it is, and save. Now let's go back to our Content. We have this right here; we could click it, and edit it, but I also want to show you how you can see a list of all of your product display nodes.

You go up to Content and click, and if you had more than one, it would show up in this list. To edit it, you just go and click edit. That takes us back to the same place as if we'd clicked edit in that other screen. As we scroll down, we now see this extra field: Type of product. It's an edible oil, so I will add that, and save. If I go back to look at it, we see we now have Type of product, Edible oils, and that actually shows up as a link. You will see what that does after I add a few more products.

Now remember, adding products is a two-step process. We first add the product, and then the product display. If you're a premium subscriber on lynda .com, or if you receive this course on the disk, you can use the text and graphics in the exercise files, as I'm going to do. If not, or you're building your own store, of course, you can use any content you like. Rather than show you the whole process of adding products, and product display nodes, I am going to go ahead and add them myself, and we will come back when we're done. There; we now have three products in our site.

We have our original olive oil here at the bottom; we also have some Lemon- flavored olive oil, and also Lip balm. Now, if we click on one of these two edible oils, we see that link I showed you before, Edible oils, and if you click on that link now, you'll see that it takes you to a page that shows you all of the edible oils on our site. If I were to go back to the front page and click on Lip balm, it's in the Cosmetics group, and of course, there's only one in the site, but if there were more, it would show up here.

You'll also notice that our URL says cosmetics up here. Once again, that's good not only for people who are visiting the site, but also for search engines. So that's as an introduction to categories, and remember, we did that all through the Taxonomy page under Structure, and Taxonomy. There is a lot more to Categories, we didn't go into, such as creating subcategories. I do have a recommendation though: plan your taxonomy well from the beginning, and then keep tabs on it as you add products. It's easy to change direction in midstream, and forget to re-categorize things, but a store that's well organized, with thoughtful categories, is a cinch to manage, and a joy to shop.

Show transcript

This video is part of

Image for Create Your First Online Store with Drupal Commerce
Create Your First Online Store with Drupal Commerce

35 video lessons · 10883 viewers

Tom Geller
Author

 
Expand all | Collapse all
  1. 16m 44s
    1. Welcome
      54s
    2. Previewing the finished project
      4m 10s
    3. Surveying the store-building process
      4m 29s
    4. Using the exercise files
      7m 11s
  2. 12m 12s
    1. Installing Drupal Commerce using Commerce Kickstart
      6m 5s
    2. Configuring your store's basic information
      6m 7s
  3. 31m 29s
    1. Accepting PayPal payments
      5m 9s
    2. Setting up individual products
      3m 17s
    3. Displaying products
      6m 30s
    4. Categorizing products
      5m 31s
    5. Adding simple taxes
      4m 39s
    6. Seeing your site from the customer's viewpoint
      3m 26s
    7. Processing orders
      2m 57s
  4. 17m 39s
    1. Understanding products and other entities
      3m 3s
    2. Understanding line items
      3m 16s
    3. Understanding rules
      5m 10s
    4. Integrating your store into a Drupal site
      6m 10s
  5. 29m 46s
    1. Adding product variations
      7m 2s
    2. Managing product variations
      3m 50s
    3. Importing simple products
      10m 11s
    4. Importing complicated products
      8m 43s
  6. 29m 52s
    1. Shipping products
      4m 50s
    2. Managing inventory
      4m 30s
    3. Managing orders
      5m 39s
    4. Managing customer profiles
      4m 55s
    5. Using Views to gain better oversight
      5m 0s
    6. Accepting other payment methods
      4m 58s
  7. 24m 52s
    1. Changing your store's look
      6m 24s
    2. Streamlining the checkout process
      5m 19s
    3. Launching your store
      13m 9s
  8. 29m 25s
    1. Offering product discounts
      8m 56s
    2. Gaining insight from Google Analytics
      5m 45s
    3. Making your site more visible to search engines (SEO)
      5m 52s
    4. Encouraging customer buzz
      8m 52s
  9. 56s
    1. Goodbye
      56s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Create Your First Online Store with Drupal Commerce .

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.