Tiny Storage Cart

Bluehost Shared Hosting

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.

Why you will like it

  • Tiny and fast – about 13 KB of JavaScript gzipped (33 KB minified), a product page loads only about 7 KB.
  • Safe by design – prices, shipping and limits come only from your server; manipulated carts are rejected
  • Sell right away – PayPal and Stripe (cards, Apple Pay, Google Pay) included, both checked on the server before the order counts, or order by e-mail without a payment service
  • Easy to install – copy the files, edit shop-config.php, add data attributes. Works with any CMS or static site
  • Looks great – modern Tailwind CSS theme with dark mode, mini cart, responsive and mobile-first
  • Full documentation – complete, searchable documentation page with code examples in the package

Features

  • Mini cart on every page, cart page, checkout and “thank you” message
  • Shipping zones with own shipping costs and free-shipping limits
  • Price tiers (quantity discount) per product with a tier table, hints and the saving in the mails
  • Product options with their own prices (size, extras), minimum order value and maximum quantity per product
  • PayPal checkout and Stripe checkout (Payment Element with Apple Pay and Google Pay, optional “save payment details”), both server-side; or checkout by e-mail without PayPal
  • Wishlist: a product leaves the wishlist when it is added to the cart
  • Stock: “Only 3 left”, sold out products cannot be bought, the server rejects too big quantities; connect your own stock system with a PHP function and book sold pieces with a hook
  • Pack sizes: sell by the pack (e.g. 6 bottles), the cart and the server check it
  • Config generator: write shop-config.php from a form (products, price tiers, options, shipping zones, mail, PayPal, Stripe) – with checks, secrets only in the private file
  • Order mail for you and confirmation mail for the customer: HTML + text, your brand color, logo and footer
  • English and German texts included, your own wording and languages possible
  • Dark mode with switch, saved in the browser
  • No jQuery, no RequireJS, no framework – native ES modules
  • Public HTML API with data attributes and events – fits into your own design
  • PHP 8.4, tested: PHP unit tests and 160+ end-to-end tests (Cypress)
  • Regular updates and support

Requirements

  • Web server with PHP 8.4 or higher (mbstring; cURL for PayPal)
  • A modern browser (Chrome 111, Safari 16.4, Firefox 128 or newer)

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.

Release notes

Version 3.0.0
  • [BREAKING] New design with Tailwind CSS (themes simpleblack and bluecandy removed, Bootstrap removed), dark mode and mini cart
  • [BREAKING] PHP 8.4 or higher is required; products and prices now live in shop-php/shop-config.php (replaces cart-products.json)
  • [BREAKING] RequireJS removed: include only main.js as ES module; all data attributes renamed (data-tsc-...)
  • [BREAKING] PayPal is processed on the server (create + capture order, amount check); checkout.json.php removed
  • [BREAKING] Without freeshippingfrom the shipping is always charged
  • [FEATURE] The server calculates prices, shipping and totals of every order and rejects manipulated carts
  • [FEATURE] Shipping zones, prices per product option, maximum quantity per product, free shipping from a configurable value
  • [FEATURE] New order mails (HTML + text) for you and a confirmation mail for the customer, with brand color, logo, footer and languages (English and German, more with your own texts)
  • [FEATURE] Price tiers (quantity discount) per product
  • [FEATURE] Stripe checkout with Apple Pay, Google Pay and cards (save payment details optional), wishlist
  • [FEATURE] Stock (field or your own function, status, sold out products, server check, order hook), pack sizes, config generator (config-generator.html)
  • [FEATURE] Translatable thank-you message and form errors, new cart page, product pages and documentation page
  • [FEATURE] Optional shop-config.local.php for private settings, PayPal problems in the PHP error log
  • [TASK] The whole script is only about 13 KB gzipped, the stylesheet about 58 KB
Version 2.1.0
  • [BUGFIX] Show paypal integration after submit
  • [TASK] add nopaypal version (PHP-Files and JavaScript)
Version 2.0.1
  • [TASK] update description
Version 2.0.0
  • [FEATURE] add paypal as payment method
  • [FEATURE] specify a minimum order quantity per product. If this number is not reached, an error message will appear during checkout.
  • [FEATURE] add bootstrap 5
  • [FEATURE] add new theme ( https://demo.tinystoragecart.com/bluecandy/ )
  • [BREAKING] change data-attributes
Version 1.6.0
  • [FEATURE] Now it is possible to enter a minimum order value in the shopping cart. If this value is not reached, a configurable message is displayed during checkout. Furthermore it is possible to disable the form.
  • [BUGFIX] display headerbar notificationcount only if is item in cart
Version 1.5.0
  • [FEATURE] adding setup to clear the product properties by call the cart.addPropertiesToProductData function
  • [FEATURE] adding radio input demo (product5) to select only one product properties
Version 1.4.1
  • [BUGFIX] adding the correct checkout.json.php file
Version 1.4.0
  • [FEATURE] add recommendation on checkout / add product to checkout without leave the checkoutpage
Version 1.3.1
  • [BUGFIX] remove the error if the properties of an product empty
Version 1.3.0
  • [FEATURE] add checkbox as property selection
  • [BUGFIX] calculate correctly sum
Version 1.2.0
  • [FEATURE] add new eventListener to modify every single product in the checkout to change the price
  • [FEATURE] add new documentation
  • [FEATURE] add value per select or input (https://demo.tinystoragecart.com/product4.html)
  • [FEATURE] add new images like the CI of tinystoragecart.com
  • [BUGFIX] fix decimal place on shipping
Version 1.1.1
  • [FEATURE] add a faster compare function for properties
  • [BUGFIX] remove bugs in IE11 (dispatchEvent etc.)
Version 1.1.0
  • [FEATURE] add new functions and HTML-Markup to add products with more properties
  • [FEATURE] add readme

3.9 average based on 10 ratings.

scheibo

scheibo

Visit Author's Portfolio

View Portfolio
Last Update 2026-11-11
Created 2017-10-27
Sales 118
Discussion Comments
Compatible Browsers Firefox Safari Opera Chrome Edge
Software Version Other
High Resolution Yes
Files Included JavaScript JS HTML CSS PHP
Video Preview Resolution