Core Configuration
The Core Configuration section contains global settings that affect the entire Mage2Plenty extension. These settings control logging behavior, debugging options, and user interface customization.
Accessing Core Configuration
- Log in to your Magento Admin panel
- Navigate to Stores → Configuration
- In the left panel, expand Soft Commerce
- Select Core Configuration
Stores → Configuration → Soft Commerce → Core Configuration
Developer Settings
These settings control logging, debugging, and monitoring behavior across all Mage2Plenty modules.
Enable Log Rotation
Field: is_active_log_rotation
Path: softcommerce_core/dev/is_active_log_rotation
Type: Yes/No
Default: No
Scope: Global
Controls automatic log file rotation to prevent log files from growing too large.
Description: Files are rotated every day and a limited number of files are kept. This helps manage disk space and improves log file readability.
How It Works:
- Log files are rotated daily at midnight
- Old log files are compressed and archived
- Only the last 7 days of logs are kept by default
- Older files are automatically deleted
Configuration Steps:
- Navigate to Stores → Configuration → Soft Commerce → Core Configuration
- Expand the Developer Settings section
- Set Enable log rotation to Yes
- Click Save Config
- Clear cache:
bin/magento cache:flush
Log File Locations:
var/log/softcommerce/plenty/
├── api.log # Current API log
├── api.log.1.gz # Yesterday's log (compressed)
├── api.log.2.gz # 2 days ago
├── ...
└── api.log.7.gz # 7 days ago
Always enable log rotation in production environments to prevent disk space issues.
Log rotation has minimal performance impact. It runs as a scheduled job and processes files asynchronously.
Print Data to Array
Field: is_active_log_print_to_array
Path: softcommerce_core/dev/is_active_log_print_to_array
Type: Yes/No
Default: No
Scope: Global
Enables logging data in array format for improved human readability.
Description: When enabled, data is formatted as readable arrays in log files. This improves human readability but increases the size of log files.
Comparison:
Disabled (JSON format):
{"product_id":123,"sku":"ABC-001","name":"Product Name","price":19.99}
Enabled (Array format):
Array
(
[product_id] => 123
[sku] => ABC-001
[name] => Product Name
[price] => 19.99
)
Configuration Steps:
- Navigate to Stores → Configuration → Soft Commerce → Core Configuration
- Expand the Developer Settings section
- Set Print data to array to Yes
- Click Save Config
When to Use:
- ✅ Development and debugging
- ✅ Manual log review and analysis
- ✅ Troubleshooting specific issues
- ❌ Production (increases log file size)
- ❌ Automated log parsing
Enabling this option can increase log file sizes by 2-3x. Monitor disk space usage when enabled.
Enable Logging to Email
Field: is_active_mail_log
Path: softcommerce_core/dev/is_active_mail_log
Type: Yes/No
Default: No
Scope: Global
Global setting for sending critical errors and notifications via email.
Description: When enabled, critical errors and important notifications are sent to specified email addresses. This is useful for real-time monitoring and alerting.
Configuration Steps:
- Navigate to Stores → Configuration → Soft Commerce → Core Configuration
- Expand the Developer Settings section
- Set Enable logging to Email to Yes
- Configure the email settings (see below)
- Click Save Config
Email Recipient
Field: mail_log_email
Path: softcommerce_core/dev/mail_log_email
Type: Text (email validation)
Required: Yes (when email logging is enabled)
Scope: Global
Enter the email address where log notifications should be sent.
Example: admin@example.com
or devteam@example.com
To send to multiple recipients, set up email forwarding rules in your email system, or use a distribution list address.
Log Email Sender
Field: mail_log_email_identity
Path: softcommerce_core/dev/mail_log_email_identity
Type: Select
Options: Magento email identities
Scope: Global
Select which Magento email sender identity to use for log notifications.
Common Options:
- General Contact
- Sales Representative
- Customer Support
- Custom Email 1
- Custom Email 2
Log Email Template
Field: mail_log_email_template
Path: softcommerce_core/dev/mail_log_email_template
Type: Select
Default: Default template
Scope: Global
Select the email template for log notifications.
Description: Email template chosen based on theme fallback when "Default" option is selected. You can create custom templates for branded notifications.
Creating Custom Template:
- Navigate to Marketing → Email Templates
- Click Add New Template
- Load the default log template
- Customize as needed
- Save and select in configuration
Email Notification Examples:
Subject: [CRITICAL] Mage2Plenty API Error
Dear Administrator,
A critical error occurred in Mage2Plenty:
Error: Connection timeout to PlentyONE API
Module: SoftCommerce_PlentyItem
Profile: Product Import
Time: 2025-10-12 14:30:45 UTC
Details:
- Failed to connect to api.plentymarkets.com
- Connection timeout after 30 seconds
- Retry attempts: 3/3
Please review the logs for more information.
Location: var/log/softcommerce/plenty/api.log
Email notifications are sent for critical errors only. Non-critical messages are logged to files. Configure appropriate email filters to manage notification volume.
UI Settings
These settings control the user interface appearance and functionality in the Magento Admin panel.
Enable Font Awesome Icons
Field: is_active_fontawesome
Path: softcommerce_core/ui/is_active_fontawesome
Type: Yes/No
Default: No
Scope: Global
Enables Font Awesome icons in the Mage2Plenty admin interface.
Description: When enabled, Font Awesome icons enhance the visual appearance of buttons, status indicators, and navigation elements in the admin panel.
Configuration Steps:
- Navigate to Stores → Configuration → Soft Commerce → Core Configuration
- Expand the UI Settings section
- Set Enable Font Awesome Icons to Yes
- (Optional) Configure custom Font Awesome host URL
- Click Save Config
- Clear cache:
bin/magento cache:flush
Visual Impact:
Without Font Awesome:
[Save] [Delete] [Cancel]
Status: Active
With Font Awesome:
💾 Save 🗑️ Delete ❌ Cancel
✅ Status: Active
Fontawesome Host URL
Field: fontawesome_resource
Path: softcommerce_core/ui/fontawesome_resource
Type: Text (URL validation)
Default: https://use.fontawesome.com/releases/v6.1.1/css/all.css
Scope: Global
Depends on: is_active_fontawesome
= Yes
Specify a custom Font Awesome CDN URL.
When to Use Custom URL:
- Using a self-hosted Font Awesome installation
- Using a specific Font Awesome version
- Using Font Awesome Pro with custom license
- Corporate network requires specific CDN
Examples:
# Default CDN
https://use.fontawesome.com/releases/v6.1.1/css/all.css
# Self-hosted
https://your-domain.com/assets/fontawesome/css/all.min.css
# Font Awesome Pro
https://pro.fontawesome.com/releases/v6.1.1/css/all.css
# Different version
https://use.fontawesome.com/releases/v6.4.0/css/all.css
Mage2Plenty is tested with Font Awesome 6.x. Using different versions may cause icon display issues.
List of Installed Modules
Section: vendor_module_list
Frontend Model: SoftCommerce\Core\Block\Adminhtml\System\Config\Form\Field\ModuleList
This section displays a list of all installed Soft Commerce and Mage2Plenty modules with their versions.
Information Displayed:
- Module name
- Module version
- Module status (enabled/disabled)
- Module path
Example Display:
Module Name | Version | Status | Path |
---|---|---|---|
SoftCommerce_Core | 1.15.1 | Enabled | vendor/softcommerce/module-core |
SoftCommerce_PlentyCore | 1.15.1 | Enabled | vendor/softcommerce/module-plenty-core |
SoftCommerce_PlentyClient | 1.15.1 | Enabled | vendor/softcommerce/module-plenty-client |
SoftCommerce_PlentyItem | 1.15.1 | Enabled | vendor/softcommerce/module-plenty-item |
... | ... | ... | ... |
Use Cases:
- Verify module installations
- Check module versions
- Troubleshoot module conflicts
- Support ticket information
Configuration via CLI
You can also manage core configuration via command line:
View Current Settings
# View all core configuration
bin/magento config:show softcommerce_core
# View specific setting
bin/magento config:show softcommerce_core/dev/is_active_log_rotation
Update Settings
# Enable log rotation
bin/magento config:set softcommerce_core/dev/is_active_log_rotation 1
# Enable array printing
bin/magento config:set softcommerce_core/dev/is_active_log_print_to_array 1
# Set email recipient
bin/magento config:set softcommerce_core/dev/mail_log_email "admin@example.com"
# Enable Font Awesome
bin/magento config:set softcommerce_core/ui/is_active_fontawesome 1
Clear Configuration Cache
# Clear configuration cache
bin/magento cache:clean config
# Or flush all caches
bin/magento cache:flush
Best Practices
Development Environment
# Recommended development settings
bin/magento config:set softcommerce_core/dev/is_active_log_rotation 0
bin/magento config:set softcommerce_core/dev/is_active_log_print_to_array 1
bin/magento config:set softcommerce_core/dev/is_active_mail_log 0
bin/magento config:set softcommerce_core/ui/is_active_fontawesome 1
Staging Environment
# Recommended staging settings
bin/magento config:set softcommerce_core/dev/is_active_log_rotation 1
bin/magento config:set softcommerce_core/dev/is_active_log_print_to_array 0
bin/magento config:set softcommerce_core/dev/is_active_mail_log 1
bin/magento config:set softcommerce_core/ui/is_active_fontawesome 1
Production Environment
# Recommended production settings
bin/magento config:set softcommerce_core/dev/is_active_log_rotation 1
bin/magento config:set softcommerce_core/dev/is_active_log_print_to_array 0
bin/magento config:set softcommerce_core/dev/is_active_mail_log 1
bin/magento config:set softcommerce_core/ui/is_active_fontawesome 1
Troubleshooting
Log Files Not Rotating
Problem: Log files continue to grow despite rotation being enabled
Solutions:
- Check cron is running:
bin/magento cron:run
- Verify file permissions on
var/log/
- Check for disk space issues
- Review
cron_schedule
table for failed jobs
Email Notifications Not Sending
Problem: Critical errors not arriving via email
Solutions:
- Test Magento email:
bin/magento dev:email:test
- Check email configuration in Stores → Configuration → Advanced → System → Mail Sending Settings
- Verify SMTP settings
- Check email logs in
var/log/system.log
- Verify email recipient address is correct
Font Awesome Icons Not Displaying
Problem: Icons show as squares or missing
Solutions:
- Clear cache:
bin/magento cache:flush
- Verify CDN URL is accessible
- Check browser console for 404 errors
- Try default CDN URL
- Check Content Security Policy settings
Next Steps
Now that you've configured core settings, proceed to:
- 🔌 Client Configuration - Configure PlentyONE connection
- 📊 Profile Setup - Create synchronization profiles
- 📝 API Logging - Configure detailed API logging
- ✅ Testing - Test your configuration