Right out of the box, Magento provides several built-in product types which allows it to accommodate many of the most common products for sale on the web today without additional customization. Simple product types in Magento include Simple, Virtual and Downloadable. Complex product types include Grouped, Configurable and Bundled. If you want to make a simple product, they are covered in detail in the “Creating products” tutorial.
Complex Products
Complex products in Magento are a way to consolidate product variants onto a single product info page in the front-end. The variants themselves are actually simple products and have their own SKUs and stock management. This is very powerful - it allows you to let customers search for the individual variants, but browse only to the consolidated product pages.
Configurable Products let your customers select the variant they desire by choosing options. For example, you sell t-shirts in two colors and three sizes. You’d create the six variants as individual products (with their own skus) and then add these six to a configurable product from where customers can choose size and color, then add to cart. If desired you could also have customers search for “red medium t-shirt” and land on the specific page for this variant.
Creating a Configurable Product
There are a few steps involved:
- Create the attributes that will be configurable by the user - for our example they will be Size and Color
- Create the attribute set that will be assigned to the variant products - for our example, we’ll call it “T-shirt”
- Create the individual variant products
- Create the configurable product, and add the “T-shirt” attribute set
- Add the individual variants to this configurable product
Creating Attributes
Below are screenshots of how the configurable attribute “Size” is set up.
Attribute Properties
Notice the “Catalog Input Type” is set to dropdown - this is required for the attribute to be compatible with configurable products. The Scope is also set to Global. When both of these settings are configured in this manner, the Use To Create Configurable Product dropdown will appear. This must be set to Yes. Required is also set to “Yes”. In order for a Simple Product to be associated to a Configurable Product, it must have a value for all configurable attributes, so making it required ensures that you will remember to add a value for this attribute for all Simple Products.
Labels/Options
Note how the size options and their sort order have been entered above.
The attribute “Color” will be set up exactly the same, with only the Labels/Options page changed. It will look as follows with these 4 colors:
Creating the attribute set
Now we’re ready to create an attribute set called “T-shirt” to start using for this product. Go to “Catalog -> Attributes -> Manage Attribute Sets” and press “Add New Set”.
In our example, the name is “T-shirt” and we’re basing it on the default set:
Continue to the next page. Drag the two attributes into a new group which I called “Selectable Options”:
If any of that’s confusing, be sure to read the section called ”How do I create an attribute set? ”.
Creating the simple products
Now that we created the attribute set, we’re ready to start entering the data for the simple products that will be part of the configurable product.
- Navigate to “Catalog -> Manage Products”. Press “New Product”
- Create a Simple Product based on the “T-shirt” attribute set
- Fill in all the required information, and make sure to fill in options for the “Selectable Options” tab, as shown below:
- After you’re done, press “Save Product”
You should have a product list similar to this one when you’re done (of course, titles and SKUs can be whatever you choose, this example just uses the attributes in the title and sku):
After you’re done, you’re ready for the next and final step!
Creating the Configurable Product
- After making all the variants, navigate to “Catalog -> Manage Products”
- Press “New Product
- Select ‘Configurable’ based on the T-shirt attribute set
- The next screen lets you pick which attributes you want to associate. It picks attributes from the set that are Input Type: Dropdown , Scope: Global , and Use To Create Configurable Product: Yes
- Select both “Size” and “Color” and press “Continue”
- The next page is the regular create product page, with the addition of the “Associated Products” tab at the bottom. The general tab used for the sample product looks like this:
- Finally, let’s take a look at the “Associated Products” tab: If you push “Reset Filter”, you’ll see all products associated to the T-shirt Attribute Set that have options for the Size and Color attributes. If you check one (or all) you’ll see the “Associated Products Attributes Configuration” above the list. This is where you decide the sort order of the selectable attributes (click and drag an attribute to change) and also any price adjustments that selecting a specific attribute will have on the configurable product. For example: If you wanted the Magento shirt to be $5.00 more, you just have to enter “5” in the text field. Price adjustments can be either percentage based or a fixed amount. For our example, the Large size is 10% more, and the Magento shirt is $5.00 more.
In the above image you’ll notice an option called Attribute Name . This is the text that will display in the front-end for this product. In the example, “Select Color” and “Select Size” are the desired text for the front-end.
Above this, you will see a button called Create Empty . This allows you to create a Simple Product in a pop-up window that will automatically be associated to this Configurable Product. It is very useful if you have forgotten to create all of your Simple Products prior to beginning the Configurable Product creation phase.
When you’re done with all this, associate the product with a store and front-end category, and you’ll be able to find it in the front-end. You’re done!
Front-end
Here’s a section from the front-end for this configurable product, done and ready to use:
相关推荐
同时,也删除了一些过时的表格,如**catalog_product_bundle_option_link**(产品捆绑选项链接),以优化数据库结构和性能。 综上所述,Magento的数据结构复杂而精细,涵盖了从商品管理、客户关系维护、订单处理到...
描述Magento相关的表及相互之间的数据结构,E-R图,表关联。
在这个实例中,我们将深入探讨如何在Magento中创建一个显示“Bestseller”产品的自定义页面。 首先,理解Magento的模块化结构至关重要。每个功能或特性在Magento中都对应一个模块,模块是Magento的基本构建单元。...
Magento是一款强大的开源电子商务平台,其目录结构设计严谨,旨在提供高效且可扩展的网店管理。以下是对Magento目录结构的详细解释: 1. **根目录**: - `.htaccess`:用于配置Apache服务器的重写规则,处理URL...
在电子商务领域,Magento是一款非常流行的开源电子商务平台,它提供了丰富的功能和灵活性,使得商家能够创建和管理复杂的在线商店。其中一个常见的需求就是在系统中通过产品名称来查找并获取相应的产品ID,这对于...
在Magento中,静态菜单通常是通过后台管理界面手动创建和维护的,而动态菜单则允许我们根据CMS页面的结构和内容自动构建。这可以帮助我们节省时间和精力,尤其是在网站内容频繁更新的情况下。 要创建动态CMS导航,...
Magento目录结构解析与详解 Magento是一款功能强大的电子商务平台,其目录结构复杂且层次分明,旨在支持高度可定制化的在线商店开发。以下是对Magento目录结构的深入解析,旨在帮助开发者更好地理解其架构,以便...
总之,"Magento-Configurable-Product-Price-Overriding-Simple-Product-Price"是一个旨在改进Magento可配置产品定价逻辑的扩展,通过JavaScript实现前端的价格实时更新,为用户提供更个性化的购物体验。安装和使用...
如果你正在创建一个Magento的管理模块(学习创造Magento管理模块),那么你一定会被要求创建一个管理列表既Grid。创建列表,Magento新手程序员有点困难,但在本教程中,我们将创建一个网格在管理模块中最简单的方式...
magento结构和原理 magento结构和原理是magento框架的核心组成部分,了解magento的结构和原理是开发magento模块和主题的基础。本文将详细介绍magento的文件目录结构、URL路由与分发器、模板调用对应的JS、CSS、图片...
Magento将产品信息分散在多个数据库表中,主要包括`catalog_product_entity`作为主产品表,以及一系列以`_attribute`结尾的表来存储产品的不同属性。自定义属性则存储在`eav_attribute`、`eav_attribute_set`、`eav_...
这会创建 Magento 需要的所有表,包括 `catalog_product_entity`(产品信息)、`sales_flat_order`(订单数据)、`customer_entity`(客户信息)等。 4. **加载样本数据**:除了基础架构,这个包可能还包含一些示例...
这篇博客“Magento:后台添加预览按钮 View product in frontend from Magento admin”主要探讨了如何通过自定义开发来实现这一功能,让管理员能够快速检查商品在网站前台的显示状态。 在Magento中,通常管理员需要...
开发者在创建自定义模块来增强产品预览功能时,需要正确地更新此文件以确保模块能被系统识别并正确加载。 在`app`目录下,我们可以找到Magento的核心代码和自定义模块。`app/design/frontend`存放的是前端主题相关...
接下来,创建一个CSV文件,包含所有产品信息。每一行代表一个产品,列标题应与Magento产品字段对应,如“sku”(库存单位)、“name”(名称)、“price”(价格)等。对于多图,你可以在同一行中使用多个“image”...
### Magento站点首页显示新产品及产品数量 在Magento中,首页是吸引客户的第一界面,因此如何有效地展示新产品及其数量显得尤为重要。本文将详细介绍如何在Magento站点的首页上展示新产品及其数量,并提供具体的...
Chapter 6, Creating a Magento 2 Theme, discusses the Magento 2 blank theme and how to use the fallback to create seasonal variations. It also explains how the new theme is set up and where files are ...
在Magento中,产品被组织成层次化的类别结构,这有助于顾客更容易地浏览和找到他们感兴趣的商品。分类可以包含子分类,形成一个树状结构,便于展示在网站的导航菜单上。 导入产品分类通常涉及到以下步骤: 1. **...
在Magento中,产品信息存储在数据库中,主要涉及到`catalog_product_entity`、`catalog_product_entity_varchar`等表。产品名称和描述分别存储在不同的字段里。为了批量修改,我们需要了解这些表的结构和字段。 1. ...