notrab / headless-dropshipping-starter

Create your own dropshipping store with Next.js, Snipcart & Printful 👕
https://headlessdropshipping.com
693 stars 132 forks source link

How to create Product Detail Pages #122

Open ramoshe opened 9 months ago

ramoshe commented 9 months ago

Hello! I'm a fairly new developer trying to figure out how to expand this project to include detail pages for each product. I know that I will have to hook up to a CMS, then I'm guessing I'll need to find a way to sync that CMS with my Printful product catalog, and I'd like to be able to add data like a category and additional product mockup views...

Could anyone provide some guidance on how I should go about this process? I've got some experience with Sanity CMS, but I'm also open to suggestions of platforms that might make this process easy/possible.

Thanks in advance!

notrab commented 9 months ago

Hey @ramoshe

Here's a very old implementation of this starter kit I built with a colleague at GraphCMS (now Hygraph).

The magic happens inside this template which is used to generate pages for every product inside the CMS. The CMS has a field for the product ID and then Gatsby would link both entities using the code you see here.

I hope this helps.

I'm working on a new version of this template for Next.js App Router, Nuxt and Remix.

ramoshe commented 9 months ago

Thank you @notrab for the links! However, I'm starting to think this might be a little over my head.

I'm excited to hear about the new version you're working on, I've been very curious about Remix. Will this new version include product detail pages?

notrab commented 9 months ago

They will, but it won’t be as advanced as the link to the CMS version above.

I could do it with a CMS but it feels like too much setup for the end user. What do you think?

ramoshe commented 9 months ago

The biggest (i.e. probably most difficult to accomplish) thing I'd want personally is the ability to add additional images of the product. You know how Printful lets you download multiple mockups of different angles and views...I can't tell if your CMS version does that, but that would be be he main thing that would make product detail pages worthwhile.

ramoshe commented 2 weeks ago

@notrab Any development on this issue? Are you working on a new version that would include product detail pages by any chance?? I would love to know and/or help!