Debug Logging
Enable logging to troubleshoot bulkgood price calculations.
Configuration
Stores > Configuration > Sales > Shipping Methods > Table Rates
| Setting | Description |
|---|---|
| Enable Bulkgood Price Logging | Yes/No |
Log Location
var/log/bulkgood.log
Log Contents
When enabled, logs include:
- Product SKU and bulkgood status
- Price source used (priority)
- Calculation method applied
- Final computed price
- Cart totals
Example Log Entry
[2024-01-15 10:30:45] bulkgood.INFO: Processing cart item
SKU: PALLET-001
Is Bulkgood: Yes
Price Source: product_attribute
Unit Price: 50.00
Quantity: 2
Subtotal: 100.00
[2024-01-15 10:30:45] bulkgood.INFO: Cart bulkgood total: 100.00
Calculation Method: sum
Items: 1
Troubleshooting
No Log Entries
- Verify logging is enabled
- Check file permissions on var/log/
- Ensure bulkgood products are in cart
Unexpected Prices
- Review priority order in logs
- Check calculation method
- Verify product bulkgood attributes