Last updated 5 February 2011. Created on 26 December 2010.
Edited by Scott J. Log in to edit this page.

The Drupal Commerce Product module defines a fieldable product entity that can have multiple bundles and creates a default product type upon installation. The Product UI module defines a default UI for managing product types, forms for adding and managing products, and Views integration for viewing products.

The Product Reference module defines a field that references any number of products from other entities for display to the end user. Products themselves aren't currently meant to be viewed but rather referenced by the nodes (or other points of display) that market the products. The Cart module defines a display formatter for the product reference field that takes the referenced product IDs and builds a simple Add to Cart form using the data. When multiple products of the same type are referenced, the Add to Cart form will include widgets to select the appropriate product for purchase based on the fields of that product type.

For example, an apparel store might sell every style of t-shirt in small, medium, and large. With the core components, the process from product creation to merchandising for each style of t-shirt is:

  1. Create a new "T-shirt" product type and add a required Size field to it with the available sizes as options.
  2. Add a new T-shirt product for each Size with a unique SKU, likely using a pattern based on the Size (SHIRT-001-S, SHIRT-002-M, etc.).
  3. Create a "Product" node type and add a required Product Reference field to it that is multiple entry, uses the product autocomplete widget, and uses an Add to Cart Form display formatter.
  4. Add a new Product node for the style of t-shirt with images and descriptive text marketing the t-shirt for sale. Reference each variation of the style of t-shirt through the Product Reference field.

Looking for support? Visit the forums, or join #drupal-support in IRC.


acthtml’s picture

What's the difference between product and product reference??

likewhoa’s picture

product is the product and product reference is the content type widget which you reference a "product" so it shows on the node view page.

Bending technology to fit business

allanx’s picture

Anyone know of any "how-to" videos online...?


twooten’s picture

pantel’s picture

Hi! I am new in drupal commerce. I want to create an e-shop in drupal and i would like to know what modules i need.Can anyone help me?


Mitnick’s picture

@pantel Check this page - It will tell you ALL the required modules and modules you may need or want for your Drupal Commerce site.

Hope this will help.