I added some custom attributes to my product such as cost
and markup
. By default markup will be set to 1.5 but the admin can adjust this.
When I am in the admin panel, I want to be able to fill in these two fieldsobserve a change on the cost
field and have the Priceprice
field populated automatically based on the formula:
price = cost * markup
I know how to register and create an overriding module, but I am not sure what core Magento module I should be overriding in this case.
price = cost * markup
If anyone can point me in the right direction on where this code may need to be updated or provide any examples that would be awesome.