Skip to content

Latest commit

 

History

History
14 lines (14 loc) · 937 Bytes

2021-09-21-refactor-move-saleschannelproductentity-logic-into-saleschannelproductsubscriber.md

File metadata and controls

14 lines (14 loc) · 937 Bytes
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 5 column 16
---
title: Move SalesChannelProductEntity logic into sales_channel.product.loaded event
issue: NEXT-17472
author: Max
author_email: max@swk-web.com
author_github: @aragon999
---

Core

  • Removed class Shopware\Core\Content\Product\SalesChannel\SalesChannelProductSubscriber and merge the logic into Shopware\Core\Content\Product\Subscriber\ProductSubscriber, since it will be only computed for Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity.
  • Added class Shopware\Core\Content\Product\ProductVariationBuilder to build variations of the product.
  • Added class Shopware\Core\Content\Product\SalesChannelProductBuilder to build different properties which are needed for the SalesChannelProductEntity.
  • Added class Shopware\Core\Content\Product\IsNewDetector.
  • Added class Shopware\Core\Content\Product\PropertyGroupSorter.
  • Added class Shopware\Core\Content\Product\ProductMaxPurchaseCalculator.