Hi,
Looking for a loop for category fields for a product, but can't seem to find it. Just the individual fields with sub tags Clean, ID, Label, and Value.
BR.
Lars
Developer forum
E-mail notifications
Product Category tags
Posted on 05/01/2011 13:08:58
Replies
Posted on 05/01/2011 16:09:47
Hi Lars,
There is no loop for product category fields. Instead these tags are available:
1. Ecom:Product:Category.[category ID].[template tag].ID - field ID
2. Ecom:Product:Category.[category ID].[template tag].Label - field label
3. Ecom:Product:Category.[category ID].[template tag].Value- field value
4. Ecom:Product:Category.[category ID].[template tag].Clean- field value (provided "as is")
Where [category ID] is the system name of the specific product category and [template tag] is the name of the template tag that you specify when you create a new field.
- Pavel
There is no loop for product category fields. Instead these tags are available:
1. Ecom:Product:Category.[category ID].[template tag].ID - field ID
2. Ecom:Product:Category.[category ID].[template tag].Label - field label
3. Ecom:Product:Category.[category ID].[template tag].Value- field value
4. Ecom:Product:Category.[category ID].[template tag].Clean- field value (provided "as is")
Where [category ID] is the system name of the specific product category and [template tag] is the name of the template tag that you specify when you create a new field.
- Pavel
Posted on 05/01/2011 16:27:13
You're kidding, right? You do realize, that for each category, and even each combination of categories, thay may rule for a single product, we have to create individual templates and even individual pages in Dynamicweb, in order to display values relevant for the product in question?
BR.
Lars
BR.
Lars
Posted on 21/01/2011 12:42:30
Hi again,
In case anyone is wondering, a fix was made and the following tags are now available:
Outer loop - "ProductCategories":
1. Ecom:Product.Category.ID
2. Ecom:Product.Category.Name
3. Ecom:Product.Category.FieldsCount
Inner loop - "ProductCategoryFields":
1. Ecom:Product.CategoryField.ID
2. Ecom:Product.CategoryField.Label
3. Ecom:Product.CategoryField.CategoryID
4. Ecom:Product.CategoryField.TemplateTag
5. Ecom:Product.CategoryField.DefaultValue
6. Ecom:Product.CategoryField.Value
7. Ecom:Product.CategoryField.Value.Clean
8. Ecom:Product.CategoryField.TypeID
9. Ecom:Product.CategoryField.PresentationType
Availale globally in the product detail template:
1. [field tag name]
2. [field tag name].Clean
3. Ecom:Product.CategoryField.[category id].[field id].ID
4. Ecom:Product.CategoryField.[category id].[field id].Label
5. Ecom:Product.CategoryField.[category id].[field id].CategoryID
6. Ecom:Product.CategoryField.[category id].[field id].TemplateTag
7. Ecom:Product.CategoryField.[category id].[field id].DefaultValue
8. Ecom:Product.CategoryField.[category id].[field id].Value
9. Ecom:Product.CategoryField.[category id].[field id].Value.Clean
10. Ecom:Product.CategoryField.[category id].[field id].TypeID
11. Ecom:Product.CategoryField.[category id].[field id].PresentationType
Where [field tag name] is the name of the template tag assigned to a field, [field id] is the system name of the field and [category id] is the system name of the corresponding category.
Thanks for a quick effort:)
BR.
Lars
Thanks for a quick effort:)
BR.
Lars
You must be logged in to post in the forum