Magento2 Override Price Logic
-
03-10-2020 - |
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
Solution
Was pretty straightforward, Created a module with with di.xml to override Magento\Catalog\Model\Product Then created a model to override class.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange