How to change a product's cost from a specific date (cost history)
Each variant's cost has a history: periods, each with its own cost and start date. When your supplier raises or lowers the price, you don't overwrite the old cost: you add a new period from the day of the change, and earlier orders keep their cost.
What happens when you change a cost in the table
If you edit a cost directly in the Settings → Products table and save, Escalafy decides when it starts:
- If the variant had no cost, the new one applies since always: it covers all of its orders, past ones included.
- If the variant already had a cost, the new one applies from today. Earlier orders keep the cost they had.
How to set a cost from another date
- Go to Settings → Products.
- Click the variant's Effective since column (or its row). The Cost history opens in the side panel.
- Click Add period and pick the first day of the new period. Escalafy splits the period that covered that day.
- Enter the new period's cost.
- Save with the page's changes bar.
In the same panel you can move a period's start date (the previous one ends where the next begins) or remove it with the ✕ (the previous period stretches to cover those days). The oldest period is Since always, and a variant with a history needs at least one period.
The period in force today is marked Current. If you pick a future date, the period is Scheduled and starts applying on that day.
No reprocessing needed
When you save, Escalafy recalculates only the orders on the affected dates, however far back they are. Meanwhile, the top of the Products page shows Recalculating orders. It usually takes a few minutes; dashboards may then take a few more minutes to reflect it.
If a period ends and there is no period after it, the variant is left with no cost from that date and its orders count with a cost of 0. Escalafy warns you when you save.
With Excel: the Import from Excel template has an optional Effective since column. Leave it empty and the rule above applies; with a date (YYYY-MM-DD), the cost applies from that day. Before applying you see what changes and from when.
If you turned on Use store costs, Shopify or Tiendanube costs come from your store, not from this history. Mercado Libre always uses the history.
Related articles
Can't find what you're looking for?
The team answers on WhatsApp.