Magento 2 Certification Questions List | Create custom price calculator for simple products

You need to create a custom price calculator for simple products. You have already creates the new price model.

Keeping simplicity in mind, what additional steps do you take to implement this?

Answer:
  • Make your new price model extend MagentoCatalogModelProductTypePrice.
  • In your product_types.xml module, reference the simple product type, and set a value for the priceModel attribute.
Prepear for Magento 2 certefication with our interactive quiz