Magento 2 Custom Price

Table of Content

  1. Extension Installation Guide
  2. Configuration
  3. Setting Custom Price for Products
  4. Custom Price in Frontend

 

  1. Extension Installation
  • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
  • Login to your SSH and run below commands step by step:
    • php bin/magento setup:upgrade
    • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
    • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy -f
    • php bin/magento cache:flush
  • That’s it.

 

  1. Configuration
    For configuring the extension, log in to Magento 2, move to Stores > Configuration > Custom Price where you can find various settings to enable the extension.
  • Custom Price: Enable or disable the Custom Price extension from here.
  • Alert Message: Enter alert message to show when users add lesser price than added minimum custom price.


  

 

  1. Setting Custom Price for Products
    Once you enable the extension, you need to enable custom price for products you want to allow. Navigate to Catalog > Products and select the product for which you want to enable custom price. Edit product and find Custom Price tab under which you can make necessary settings.
  • Enable Custom Price: Set YES to enable custom price for the selected product.
  • Minimum Custom Price: Set minimum price for the product to allow checkout as the custom price in the frontend.


  

  1. Custom Price in Frontend
    Once you have configured the extension successfully, whenever users add products with custom price into the shopping cart, it checks for the minimum price set and then allows checkout.


  

  • Alert Message
    If customers add custom price less than set minimum price, they get an alert message as set from the backend.