free
web stats

Fill the form & Get Installation Support

We don't monkey around your business.

GET IN TOUCH WITH US NOW





captcha

How to change product price on front-end using plugin in Magento? [Step-by-step Guide]

Step 1: Create di.xml file in etc/frontend. Put below content in it.

Step 2: Create di.xml file in etc/webapi_rest. Put below content in it.

If you add this plugin only in front-end area then the change price functionality will not work on checkout and cart page. So you have to create another di.xml file in etc/webapi_rest folder.

Step 3: Create Plugin Folder and Create ChangeProductPrice.php in it. Put Below content in it.

Step 4: After that run the upgrade, compile, static-content deploy and flush cache command through the terminal as below. And you can check now.