yogeshsuhagiya / estimate-profit
Estimated profit should be calculated as (Sales Price - Cost Price) x Qty in stock
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ~7.4.0
- magento/framework: >=100.0.0
- magento/module-backend: >=100.0.0
README
- Admin configurations to enable the module
- Settings for whether it should show estimated profit column on product grid or not
- An extra column to the product grid in the backend called "Estimated Profit"
- Estimated profit should be calculated as: (Sales price - Cost price) X Qty in stock
- If there is no cost price entered, then the estimated profit will be blank
- A console command: bin/magento salecto:product:profit [productId] which shows product's profit.
- You can upload to GIT once completed and send the link.
Prerequisite
- Composer: 2.x
- PHP: 7.4
- Magento: 2.4
Installation
-
Composer Installation
- Navigate to your Magento root folder
cd path_to_the_magento_root_directory
- Then run the following command
composer require yogeshsuhagiya/estimate-profit
- Make sure that composer finished the installation without errors
- Navigate to your Magento root folder
-
Command Line Installation
- Backup your web directory and database.
- Download the latest installation package
Source code (zip)
from here - Navigate to your Magento root folder
cd path_to_the_magento_root_directory
- Upload contents of the installation package to your Magento root directory
- Then run the following command
php bin/magento module:enable Practical_EstimateProfit
- After install the extension, run the following command
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
- Log out from the backend and login again.