What Happens When I Update Costs?
When you update product costs, expenses, or fee settings, Alpha Insights automatically recalculates profit for all affected orders. This guide explains the recalculation process and what to expect.
Automatic Recalculation
What Triggers Recalculation
Profit recalculates automatically when you:
- Update product cost
- Add or edit expenses
- Change payment gateway fee settings
- Modify shipping cost rules
- Add custom order costs
How It Works
- You save a cost change
- Alpha Insights queues background task
- System finds all affected orders
- Recalculates profit for each order
- Updates database with new values
- Reports automatically show updated data
Processing Time
Small stores (10-30 seconds
Medium stores (1,000-10,000 orders):1-5 minutes
Large stores (10,000+ orders):5-30 minutes
Note: Happens in background – you can continue working
Recalculation Examples
Example 1: Update Product Cost
Scenario:
- Product: Blue T-Shirt
- Old cost: $20
- New cost: $25
- Historical orders: 150
What happens:
- All 150 historical orders recalculate
- Each order profit reduced by $5
- Total profit for that product reduced by $750
- Reports update to show new profit figures
Timeline: Complete in 1-2 minutes
Example 2: Add Monthly Expense
Scenario:
- Add rent expense: $3,000/month starting Jan 1
- Current date: Jan 15
- Orders in January so far: 120
What happens:
- $3,000 divided by 120 orders = $25 per order
- Each January order profit reduced by $25
- Net profit for January updated
Note: Only affects orders from expense start date forward
Example 3: Change Payment Fee Settings
Scenario:
- Update Stripe fee: 2.9% → 2.6% (negotiated better rate)
- Historical orders: All orders using Stripe
What happens:
- All Stripe orders recalculate with new fee
- Fees slightly lower
- Profit increases slightly for each order
Processing: May take 5-15 minutes for large order history
Historical vs Future Impact
Future Orders
New orders use current costs:
- Order placed today uses today’s product cost
- No retroactive application
- Clean and simple
Historical Orders
Important decision: Should historical orders use new costs?
Alpha Insights default: Yes – recalculates all historical orders
Why:
- Gives you consistent reporting
- Shows “what-if” scenarios
- Easier to maintain single cost per product
Alternative approach: Use date-specific costs (advanced)
Date-Specific Costs (Advanced)
When to Use
- Supplier changed prices at specific date
- You want historical accuracy
- Different costs in different time periods
How to Set
- Edit product
- Go to Alpha Insights Cost Settings
- Enable Historical Cost Tracking
-
- Jan 1 – May 31: $20
- Jun 1 – Dec 31: $23
- Save
Result:
- Orders Jan-May use $20 cost
- Orders Jun-Dec use $23 cost
- Historical accuracy preserved
Viewing Recalculation Status
Background Process Monitor
- Go to Alpha Insights → Tools → Background Tasks
- See active recalculation tasks
- Progress bar shows completion %
Notification
When recalculation completes:
- Admin notice appears: “Profit recalculation complete”
- Shows number of orders updated
Verifying Recalculation
Check Updated Profit
- Go to Dashboard
- Verify profit metrics changed as expected
- Check a recent order’s profit breakdown
Before/After Comparison
- Before updating costs, note current profit
- Update costs
- After recalculation, compare profit
- Verify change matches expectations
Test with Sample Order
- Note profit for specific order
- Update product cost
- Check same order again
- Verify profit updated correctly
Common Questions
Q: If I update cost, can I undo it?
A: Yes, just update back to previous cost. Profit will recalculate again.
Q: Does recalculation slow my site?
A: No, runs in background with low priority. Site performance unaffected.
Q: What if I add costs months after orders?
A: Works fine! Historical orders will calculate profit using the cost you enter.
Q: Can I see profit before and after cost change?
A: Not automatically, but you can:
- Export reports before making changes
- Make changes
- Compare old export to new reports
Best Practices
Before Major Cost Updates
- Export current profit reports as backup
- Document reason for cost change
- Update costs
- Verify new profit figures make sense
Supplier Price Increases
When supplier raises prices:
- Update product costs with new values
- Note effective date in product
- Consider whether to raise selling prices
- Monitor impact on margins
Correcting Errors
If you entered wrong cost:
- Simply update to correct cost
- Recalculation fixes all historical data
- No need to delete and re-enter orders
Bulk Cost Updates
Updating Many Products
If supplier raised all costs by 10%:
- Go to Cost of Goods Manager
- Select all products (or filter to supplier)
- Bulk Actions → Adjust Costs by Percentage
- Enter +10%
- Apply
- All products update, all orders recalculate
Category-Wide Updates
- Filter to specific category
- Select all in category
- Bulk update costs
Monitoring Impact of Cost Changes
Before/After Report
- Create comparison report
- Date range: Same period
- Compare profit before and after cost updates
- See total impact
Margin Analysis
After updating costs:
- Check profit margin % metric
- Compare to previous margin
- Assess if selling prices need adjustment