Shopping cart for a Hugo site

Hi everyone,

I’m building a small site where my wife can present and sell her artwork. Hugo feels like the right fit—lightweight, fast, and elegant—so I’d prefer to avoid heavier platforms like WooCommerce.

For payments, I’m planning to use Stripe. Their hosted payment links are simple, but they don’t offer a proper cart experience. Snipcart looks great and integrates well with static sites, but their $20/month minimum spend is hard to justify at this stage, especially since sales aren’t guaranteed.

I’m not looking for anything fancy—just a basic cart experience where products are defined in front matter and cart state is handled client-side. Ideally, it would integrate with Stripe Checkout and avoid storing customer data locally.

Has anyone come across a well-maintained, open-source cart solution that works cleanly with Hugo? I’ve spent hours searching, but most projects seem abandoned—Flatmarket (GitHub - christophercliff/flatmarket: A free, open source e-commerce platform for static websites.) and SimpleCart (GitHub - wojodesign/simplecart-js: A simple javascript shopping cart that easily integrates with your current website.) are good examples.

One possibility would be SnipCart, they wrote a blog on how to integrate SnipCart with hugo. They also setup a GitHub repo and a demo site.

I made some good experiences with SnipCart in the past, they don’t charge you anything until you put your solution into production mode.

There’s another GitHub repo you may want to check out.

I had a dead simple working POC long time ago.
May be you can use it as a base ….

I saw this one by @jhvanderschee

@deining - thank you for your suggestion. I was looking into snipcart, however they have a policy ( New Pricing Causing Grief! - #11 by Christian342 - Discussions - Support | Snipcart ) of applying a $20 minimum monthly charge in case the montly turnaround is less than $1000. At this stage of her online business, my wife is nowhere near that amount, so I am in a penny-pinching mode, unfortunately. Also, this is a good challenge which pushes me to go back to basics and learn new things (javascript, for example) :slight_smile: .

@divinerites - thank you very much, I came accross and read your blog yesterday when I was doing my research. At this moment I am facing a dilema - pushing forward with a custom implementation, or trying to find something that is an actively maintained open-source project. I gravitate towards the latter, as it seems to me that millions of sites have similar needs.

@tifenak - thank you very much, I am checking out this github repo, it appears to be receiving regular updates, which is what I was after.

Thank you @tifenak for pointing to the Hugo Codex website. Note that I have two webshop examples on this website. The Stripe version is super simple to implement, but does not have a proper cart:

The other version (in the thread above) has a proper cart, but it is using a dynamic payment link. This means that the personal data and payment data are sent through different streams/emails (and need to be reconnected through an order ID). This makes this version hard(er) to use.

If you can afford the fee, I would go for Snipcart. If you rarely have a buyer, I would go for the simple Stripe solution (without a cart). If you are feeling adventurous and need an in-between solution, try the other webshop option on Hugo Codex.

Send me an email if you fail to make it work.

2 Likes