We would have a type of product that would be "T-shirts", some attributes that would be a list of colours and sizes, a specific product that would be "short sleeve T-shirt", a set of variations that would be the combinations of sizes and colours available for that product "short sleeve T-shirt". Therefore, to clarify concepts and to continue with the example of a clothing store. The customer is a wood furniture manufacturer located in California, USA. AttributesĪttributes are the values that differentiate each of the product variations.Ĭontinuing with the example of the "T-shirt", the attributes would be the sizes and colours. Configurable and Customizable Products for Drupal Commerce Store. Or for example, we can have a product "PC", and its variations can be: PC only, PC + screen, PC + screen + keyboard/mouse.Īs I say, this gives us a lot of flexibility to make almost any e-commerce. When i started to work on products import, i found that Feeds module does not stable, and i decided to write custom solution for data import (Batch/Queue API data import from CSV/XML sources). Its first project with Commerce 2 for me. This gives a lot of flexibility to for example have a product "t-shirt", and that its variations are the different sizes or colours. Im using current commerce 2.x.dev for online store development. They have a unique SKU, fields that differentiate them from other variations of the same product and a price field. Variations are really what many customers understand as "products". For example description, product name, images, technical characteristics. Products (for example a t-shirt or a pair of pants) are an entity where you can specify several fields that are common in all variations. In Drupal commerce we have a data structure based on entities related to each other, and fully translatable to all languages: Products All of this is elementary in Drupal Commerce thanks to the strengths of the Drupal data model. It may seem like a small thing, but keep in mind that Shopify, one of the largest e-commerce platforms in the world, only allows you to add 3 such attributes to your products, only supports entering options via free tagging, and offers no way to change the way attributes are represented in the "Add to Cart" form. Unlike many other platforms, Drupal supports virtually unlimited variations and attributes for any product. In addition, you can fully customize your product data model by adding fields of any Drupal field type to your products and variations. In Drupal Commerce, we support all of this through Product and ProductVariation entities paired with ProductAttribute and ProductAttributeValue entities that define those differentiating attributes in each variation. These variations are often differentiated by named attributes, e.g. Most e-commerce platforms support offering multiple product variations on a single product display page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |