Skip to content
matrixdexPublic

About

Website for Amanah Health Products

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Amanah Health Products

Online shop for Amanah Health Products Limited (Dr Ali's range). The site lives at the repository root; the earlier design explorations (four storefront designs) are kept on the designs branch.

index.html, shop.html, product.html     home, all products, one page per product (?id=)
about.html, benefits.html, faq.html     information pages
shipping.html, contact.html             delivery, returns and contact
privacy.html, terms.html, disclaimer.html, 404.html
styles.css, app.js                      design and shop logic (cart, checkout, accordions)
products.json                           product database: names, prices, benefits, shipping
assets/                                 logo, hero, product and About photos
functions/api/                          Cloudflare Pages Functions for Stripe checkout

Products

Products are not hard-coded in the pages. products.json holds every product (name, price, description, ingredients, directions, warnings, benefits, image) plus the currency and the delivery zones (shipping.zones: each has a label, its countries and its rate; UK free, EU £10). The cart, the checkout summary and Stripe all read the same file. To add or change a product, edit products.json and put its image in assets/products/.

products.json is loaded with fetch(), so preview the site through a web server (for example python3 -m http.server) rather than opening the files directly.

Payments

Stripe's embedded checkout form. Setup, keys and remaining steps are in STRIPE_INTEGRATION_TODO.md.

To do

  • Real test order. Place one real order on amanahealth.uk with your own card and email, then refund it in Stripe. Check both order emails arrive (no [TEST] tag), the live webhook shows 200, and the payment description reads "Amanah order AMN-…" matching the emails.
  • VAT. If the company is VAT-registered, add the VAT number to the footer and legal pages, and turn on Stripe Tax (see STRIPE_INTEGRATION_TODO.md).
  • Search and sharing. Add a description and share image (Open Graph) to every page, a sitemap.xml and robots.txt, and check the favicon, so Google results and link previews show the shop properly.
  • Newsletter signups. The signup form on the homepage shows "Subscribed. Thank you." but does not save the email anywhere. Connect it to a newsletter service (suggested: Brevo, EU-based, free plan) through a /api/subscribe Cloudflare function with double opt-in, add BREVO_API_KEY as a Cloudflare secret, change the message to "Check your inbox to confirm your subscription", and name the provider in the privacy policy.

About

Website for Amanah Health Products

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages