Swiftorial Logo
Home
Swift Lessons
Matchups
CodeSnaps
Tutorials
Career
Resources

Managing Products in Drupal Commerce

Introduction

Drupal Commerce is a powerful eCommerce framework built on Drupal that provides a robust way to manage products, orders, and customer accounts. This tutorial covers the essentials of managing products within Drupal Commerce, including adding, editing, and deleting products, as well as managing product variations and attributes.

Adding Products

To add a new product in Drupal Commerce, follow these steps:

  1. Log into your Drupal admin dashboard.
  2. Navigate to Commerce > Products.
  3. Click on the Add product button.

Fill in the product details in the form that appears. Important fields include:

  • Product Title: The name of the product.
  • Product Type: Select the appropriate product type (e.g., Physical, Digital).
  • Description: A detailed description of the product.

Once you've filled out the form, click Save to create the product.

Example:

Creating a Product called "Drupal T-Shirt".

Product Title: Drupal T-Shirt

Product Type: Physical

Description: A comfortable t-shirt with the Drupal logo.

Editing Products

To edit an existing product, navigate back to Commerce > Products and locate the product you wish to edit. Click on the product name, make the necessary changes, and click Save.

Example:

Updating the price of the "Drupal T-Shirt" from $20 to $25.

New Price: $25

Managing Product Variations

Products can have multiple variations (e.g., sizes, colors). To manage variations:

  1. Go to the product page of an existing product.
  2. Click on the Variations tab.
  3. Click on Add variation.

Fill in the details for the new variation, such as size and price, and click Save.

Example:

Adding a variation for the "Drupal T-Shirt" in size "Large".

Size: Large

Price: $25

Deleting Products

If you need to delete a product, navigate to the product list, find the product you wish to remove, and click the Delete button. Confirm the deletion when prompted.

Example:

Deleting the "Drupal T-Shirt" product.

Action: Delete

Conclusion

Managing products in Drupal Commerce is straightforward once you familiarize yourself with the interface. By following the steps outlined in this tutorial, you can efficiently add, edit, and delete products, as well as manage product variations and attributes. This will help you maintain an organized and effective eCommerce store.