on ‎2018 Jul 30 8:26 PM
Hello Experts,
We have one use case where a specific set of products have dimension i.e. length, width, and height details received in product feed into Hybris. The length unit is not consistent with different products.
Here, some products can have the length in inches while others can have the length in some other units and we have created below classification entities to map the dimension features to products.
ClassificationClass : dimensions ClassificationAttributeUnit: cm, inch, mm and etc received in product feed. However, we were unable to configure the Class attribute assignments to achieve this.
Please help to handle this use case?
Note: Given example is for length attribute, however, I have the similar problem with other attributes.
Request clarification before answering.
Use the value:unit format while preparing the impex value line for feature.
For E.g.: If we need to preserve width of a product.
$feature1=@overallWidth[$clAttrModifiers];
$catalogVersion=YourCatalogVersion
INSERT_UPDATE Product;code[unique=true];$catalogVersion;$feature1
;1234; ;29.9:IN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here are the additional macros for a feature named overallWidth.
$productCatalog=YourProductCatalog
$classificationCatalog=YourCalssificationCatalog
$catalogVersion=catalogversion(catalog(id[default=$productCatalog]),version[default='Staged'])[unique=true,default=$productCatalog:Staged]
$clAttrModifiers=system='$classificationCatalog',version='1.0',translator=de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeTranslator,lang=en
$feature1=@overallWidth[$clAttrModifiers];
$catalogVersion=YourCatalogVersion
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.