简体   繁体   English

drupal创建产品类别将产品分配给类别

[英]drupal create product categories assign product to categories

I am new to Drupal. 我是Drupal的新手。 I am using Drupal7 and Ubercart for e-commerce. 我正在使用Drupal7和Ubercart进行电子商务。 I created products. 我创造了产品。 Now,I wish to categorize them. 现在,我希望对它们进行分类。 That is,I want to group all mobile phones under 'Mobile Phones', all laptops under 'Laptops' etc. For this, I created a new taxonamy vocabulary 'Mobile Phones' and now I am stopped as I don't know how to assign my products to this group? 也就是说,我想将所有手机归为“手机”,将所有笔记本电脑归为“笔记本电脑”,等等。为此,我创建了一个新的分类词汇“手机”,但由于不知道如何,我被停了下来。将我的产品分配给该组? for example, how to assign 'Nokia Lumia 820'(one among my products) to the group 'Mobile Phones'? 例如,如何将“诺基亚Lumia 820”(我的产品之一)分配给“手机”组? Please help. 请帮忙。

In your product content type add field for category select in which select following options 在产品内容类型中,为类别添加字段,然后在其中选择以下选项

LABEL : "name of field"
FIELD TYPE : "Term reference"
WIDGET : "Select list"

and when asked for field settings give your taxonomy as Vocabulary. 当要求输入字段设置时,将分类法作为词汇。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM