QuestionQ13

Customize Commerce features

An Adobe Commerce Architect designs a data flow that includes a new product type with custom pricing logic to satisfy a merchant requirement.

Which three steps are required to add a product type with custom pricing?

Choose three
  • A Content of the etc/product_types.xml file
  • B Data patch to register the new product type
  • C Hydrator for attributes belonging to the new product type
  • D New price model extending \Magento\Catalog\Model\Product\Type\Price
  • E Custom type model extended from the abstract Product Type model
  • F A new class with custom pricing logic, extending the abstract Product model class
Explanation

A custom product type is registered through etc/product_types.xml, which defines product types in Adobe Commerce. The type requires a model extending the catalog abstract product-type model to provide its type-specific behavior. Custom pricing is implemented with a price model extending \Magento\Catalog\Model\Product\Type\Price, allowing the product type to supply its own price-calculation logic.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!