Skip to main content
Notice removed Draw attention by CommunityBot
Bounty Ended with no winning answer by CommunityBot
deleted 63 characters in body
Source Link

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.

I added some custom attributes to my product such as cost and markup.

When I am in the admin panel, I want to be able to fill in these two fields and have the Price 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.

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.

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 observe a change on the cost field and have the price field populated automatically based on the formula:

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.

Notice added Draw attention by mikebertiean
Bounty Started worth 50 reputation by mikebertiean
Source Link

Calculating Product Price Dynamically adminhtml - Magento 2

I added some custom attributes to my product such as cost and markup.

When I am in the admin panel, I want to be able to fill in these two fields and have the Price 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.

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.