Developer forum

Forum » Templates » Product Category tags

Product Category tags


Reply
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

Replies

 
Reply
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

 
Reply
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
 
Reply

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

 

You must be logged in to post in the forum