Question

We have a custom extension that adds fields for multiple vendors. How can we override Magento Price logic to make calculations for price and special price according to that fields.

I have seen the Magento pricing library, but as a newbie to Magento2 I'm looking for some examples on how to override price and special price calculations process.

Thanks

Était-ce utile?

La solution

Was pretty straightforward, Created a module with with di.xml to override Magento\Catalog\Model\Product Then created a model to override class.

Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top