Web Analytics

Fill the form & Get Installation Support

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.

Fill the below form if you have any Magento programming need.





    Recent Articles

    Author Info

    Author Image

    Hire A. Patel

    Get a Free Quote





      /* second popup */

      Connect With Us