Better HN
topnewbestaskshowjobs
Log inSign up

throwaway7337

2 karma · joined Jul 18, 2023 (3y ago) · 1 submissions

Submissions

comment 3y ago · link · parent

I made an online store where I just stored the price in the order itself, as an immutable snapshot of the price at the time of purchase. I also included the product title and SKU, just in case someone decided to reuse an old product instead of creating a new one (it happened several times)

Alternatively you could go "all in" and create some form of versioning system, where you store the version number of the product