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.



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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.