Skip to content

Commit

Permalink
feat: localized product attributes #91
Browse files Browse the repository at this point in the history
closes: #91
  • Loading branch information
Sebastian-Haehnlein committed Feb 7, 2020
1 parent f84141f commit 5ff3d94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/core/models/product/product.mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,11 @@ export class ProductMapper {
minOrderQuantity: data.minOrderQuantity || 1,
packingUnit: data.packingUnit,
maxOrderQuantity: data.maxOrderQuantity || 100,
attributes: data.attributes,
attributes:
(data.attributeGroups &&
data.attributeGroups.PRODUCT_DETAIL_ATTRIBUTES &&
data.attributeGroups.PRODUCT_DETAIL_ATTRIBUTES.attributes) ||
data.attributes,
attributeGroups: data.attributeGroups,
images: this.imageMapper.fromImages(data.images),
listPrice: filterPrice(data.listPrice),
Expand Down

0 comments on commit 5ff3d94

Please sign in to comment.