2.2 KiB
2.2 KiB
Quick Installation Guide
Step 1: Upload Module Files
From your Magento root directory:
# Create directory structure
mkdir -p app/code/Shopkeeper/VendorSalesReport
# Upload all module files to this directory
# (You can use FTP, SCP, or extract from ZIP)
Step 2: Enable Module
php bin/magento module:enable Shopkeeper_VendorSalesReport
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
Step 3: Configure Module
- Log into Magento Admin
- Go to Stores > Configuration > Shopkeeper > Vendor Sales Report
- Configure settings:
Required Settings:
- Enable Automated Monthly Report: Yes
- Order Status Filter: complete (or your preferred status)
- Enable Email: Yes
- Email Recipients:
vendor@example.com(replace with actual email) - Email Subject:
Monthly Thermo Report - {{month}} {{year}} - Email Sender: General Contact
- Click Save Config
- Run
php bin/magento cache:flush
Step 4: Test Manual Report
- Go to Reports > Sales > Vendor Sales Report
- Select a date range (defaults to last month)
- Click Preview Report to see data
- Click Export CSV to download
Step 5: Verify Cron Setup
Test the automated report:
php bin/magento cron:run --group default
Check logs:
tail -f var/log/system.log | grep "Vendor Sales Report"
Common Issues
Module not appearing in admin menu
php bin/magento cache:flush
# Log out and log back into admin
CSV downloads as blank
- Check that orders exist with the configured status in the date range
- Verify order status configuration
Emails not sending
- Test Magento email with: System > Tools > Email Templates
- Check SMTP settings
- Verify email recipients are configured
File Permissions (if needed)
chmod -R 755 app/code/Shopkeeper/
chown -R www-data:www-data app/code/Shopkeeper/ # adjust user as needed
Uninstallation (if needed)
php bin/magento module:disable Shopkeeper_VendorSalesReport
php bin/magento setup:upgrade
rm -rf app/code/Shopkeeper/VendorSalesReport
php bin/magento cache:flush
Support
Check README.md for detailed documentation and troubleshooting.