Hugo data driven ecommerce

Currently as you’ve seen Hugo does NOT support the automatic generation of pages from data.

This is the most anticipated feature at the moment and you may want to track:

However there is a workaround mentioned here: JSON as data for websites - #4 by alexandros

The linked technique can be automated even further by generating a Custom Output Format to create the CLI commands for the pages’ generation and then execute it as part of the website build.

With the above said:

It all depends on the complexity of the ecommerce site. Someone else made a Hugo ecommerce site by using Stripe as the backend because they found Snipcart to be expensive.

One can easily create a Google Merchant XML Feed per product with Hugo and populate a Stripe backend or even a Facebook Product Catalogue or whatever…

I am in the process of doing all of the above myself. I still have a few blanks that I need to work out like connecting Stripe payments with a JS cart for the Hugo site… but we’ll see…

There is no tutorial out there about creating a Hugo ecommerce website step-by-step.
We have to figure it out ourselves…

3 Likes