Tiny Storage Cart turns any static website into a shop: a 13 KB JavaScript shopping cart with no jQuery, no framework and no database. The cart lives in the visitor’s browser (localStorage), your products and prices live in one PHP file on your server – and the server calculates every order again, so nobody can change a price in the browser.
Install it in minutes: upload the files, enter your products, add a few data-tsc-* attributes to your own HTML. No Node, no build step, no monthly fee.
shop-config.php, add data attributes. Works with any CMS or static site shop-config.php from a form (products, price tiers, options, shipping zones, mail, PayPal, Stripe) – with checks, secrets only in the private file Please see the live demo and try it: add products, change the quantity, choose a shipping destination and check out.
Images: the demo products use icons from Lucide (ISC license); the demo shop contains no photos.
shop-php/shop-config.php (replaces cart-products.json) main.js as ES module; all data attributes renamed (data-tsc-...) freeshippingfrom the shipping is always charged config-generator.html) shop-config.local.php for private settings, PayPal problems in the PHP error log