evashafik.com backups (copy + enhanced), prices in the shop currency #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "evashafik-backups-currency"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two importable backups of evashafik.com for the move off Tilda, plus a fix so prices show in the shop's real currency (Eva charges NOK; the site always showed €).
⚠️ Services missing after import
An export can't include services, so the Shop blocks say "Nothing is available" until these are created in admin → Services & products. Prices come from the live site:
Then admin → Slots to generate times for the sessions. Still to decide: get-ready (buffer) time per session, and whether to offer the practice model add-on as a product. The live site says "4000 NOK extra for our model or 800 NOK per hour"; the price text is on the page, but it isn't a product yet.
Also not set by the backups: the footer email/phone (the live site shows none) and any events (none are included, so nothing made-up goes live).
Currency:
STRIPE_CURRENCYSTRIPE_CURRENCYalready set what Stripe charges, the booking emails and the admin. ButformatPricehadEURhard-coded, so the public shop, basket, checkout and order confirmation always showed €.formatPrice(amount, currency)now takes the currency. Both apps passSTRIPE_CURRENCYto blocks as layout datacurrency, the same way astimezone. One variable now controls both what is charged and what is shown. For Eva:STRIPE_CURRENCY=nokin.env. I kept the existing variable name rather than adding a second one, so charging and display can't disagree. Documented in.env.exampleand AGENTS.md.Backups (
backups/, import via admin → Backup)evashafik-copy.jsonis the current site, page for page: home, aboutme, sessions, myprograms, blog, the three articles, and book. Text is verbatim, with the original photos (resized to ≤1600 px, ~5 MB). Same URLs, so existing links and search results keep working.evashafik-enhanced.jsonhas the same content plus:/eventspage and an events calendar on the home page;/book;Not carried over from Tilda: the contact popup (replaced by
/book) and the newsletter sign-up (no mailing-list backend). The live article Reclaim your pleasure and joy! has leftover Tilda placeholder text ("Each type of visual aid…") under "Trauma and the brain". The copy keeps it because that's what the live page shows; the enhanced version removes it. Details are inbackups/README.md.Import upserts by slug, so it overwrites
home/bookand the header/footer/colours, and leaves the olderaboutpage in place.Tested
npm run checkin both apps: 0 errors, and the same warnings asmain. Run in anode:22-alpinecontainer because the box has no Node.STRIPE_CURRENCY=nok, I imported both backups through/api/import: 28 and 26 images, 9 and 10 pages, 0 errors. All pages return 200. After adding one session, one slot and one programme, the shop showsNOK 2,000.00/NOK 10,000.00on /sessions, /myprograms and /book, with no €.STRIPE_CURRENCY, and nothing changed there.🤖 Generated with Claude Code
https://claude.ai/code/session_01Qq6FzyGitv5gDZEcCHDGoo