Skip to main content

COGS Recalculation for Past Orders

By default, cost changes apply to new orders only. This article explains how COGS recalculation works and when to use it to apply your latest product costs to past orders.

On this page

What is COGS Recalculation for Past Orders?

COGS recalculation lets you apply your current product costs to past orders.

By default, TrueProfit only applies cost changes to new orders. Past orders won’t update automatically.

Use this feature when you want to:

  • Apply your latest costs to historical orders

  • Keep your profit data consistent with your current cost setup

This gives you full control over when past data should be updated.

How it works

1. When you first install the app

Your product costs may already exist (for example, synced from Shopify or other sources).

However:

  • These costs apply to new orders only

  • Past orders are not updated automatically

In the COGS page, you will see a banner. If you want to apply your current costs to past orders:
→ Go to COGS Recalculation and run it

⚠️ Important:

When you click "Go to COGS Recalculation" on the banner, the banner disappears from the COGS page and won't come back, even if you make new cost changes later.

Next time you want to recalculate past orders, open "Store Settings" > "COGS Recalculation" from the left navigation menu.

2. When you update product costs

Whenever you edit or change product costs in the COGS page:

  • Changes apply to new orders only

  • Past orders remain unchanged

To apply these updates to past orders:
→ Go to COGS Recalculation and run it

Note: Bundle products: A bundle order is recalculated only when at least one of its components has a cost change. If no component changed, the bundle order is skipped.

3. When you create or change a custom zone

If you sell internationally and use custom zones for region-based pricing, creating, editing, or deleting a zone changes the product costs for those regions.

These changes:

  • Apply to new orders only

  • Past orders remain unchanged

    To apply these zone changes to past orders → Go to COGS Recalculation and run it

4. What happens when you run recalculation

When you trigger recalculation:

  • TrueProfit updates past orders using your latest product costs

  • Only orders with cost changes are recalculated

  • You’ll see how many products will be affected before recalculating them

Example:

Orders with {X} products will be recalculated

Important notes

1. Recalculation does not overwrite these values in Orders Report:

  • COGS you manually edited (shown with the manual edit icon)

  • COGS synced from integrations like Shopify, CJ, Gelato, Printful, Printify, etc. (shown with the integration icon and locked)

These costs are kept unchanged to preserve accurate and reliable data

2. Only users with Owner, Admin, or Editor roles can trigger recalculation. Users with Viewer role can see the page but cannot run recalculation.

When you can use this feature

You’ll use COGS recalculation when:

  • You install the app and already have existing costs

  • You update product costs (including bundle cost) and want to apply them to past orders

  • You create or change custom zones (region-based pricing) and want past orders updated

When recalculation is not available

If you haven't made any cost changes in the COGS page, you'll see:

"No cost changes yet. Update your costs to recalculate past orders."

What this means: Everything is up-to-date. There's nothing for TrueProfit to recalculate right now. This page is where you update past orders after you change product costs.

What to do: To make products appear here, go to the COGS page and edit a product's cost. Once saved, the product will show up here, ready to be recalculated.

After recalculation

Once completed:

  • Updated costs are reflected in past orders

  • Net profit is recalculated based on the new COGS

  • You can review the impact in the Orders Report. Other reports (P&L, Dashboard, Marketing Attribution) update automatically.

Did this answer your question?