How I Create Modern E-Commerce Stores with Next.js

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ต.ค. 2024
  • Adding payments to your store can be scary. What if you do something wrong? Well, it's actually not hard. Here's an approach I find really cool, and getting set up is pretty easy with this template too. Especially for freelance projects this is great.
    Setup guide: vercel.com/doc...
    -- my links
    My SaaS (closed beta, not public yet): www.splitter.gg/
    My Discord: / discord
    My GitHub: github.com/jos...

ความคิดเห็น • 182

  • @johnychinese
    @johnychinese ปีที่แล้ว +186

    Hey I never do this but would be really glad if you do a full project on how to use shopify with nextjs 😊

  • @youssefbedhief2050
    @youssefbedhief2050 ปีที่แล้ว +116

    I think it would be very interesting if you do a full project on how to create an e-commerce app with shopify and next.js 😁

    • @JohnRodDondoyano
      @JohnRodDondoyano ปีที่แล้ว +2

      Yes!

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +12

      oh hell yeah. I think many people are used to stripe for this, but credit cards are not nearly as common elsewhere as in the US

    • @bojanperic1160
      @bojanperic1160 ปีที่แล้ว

      Just had the same thought 👍

    • @SamirElias-ru1td
      @SamirElias-ru1td ปีที่แล้ว

      bro make a tutorial about this is fire !

  • @elhaambasheerch7058
    @elhaambasheerch7058 ปีที่แล้ว +31

    Would love to see a big e commerce project with Shopify & next on this channel, this seems really really good!

  • @ahbegnueg
    @ahbegnueg ปีที่แล้ว +11

    Hey there Josh!
    Thanks for your informative videos! I would be really excited if you could upload a full video where you build a shop exactly in this manner. I love how it's so fast, allowing customers to quickly access the product page without waiting. Since I'm not familiar with all the steps, a comprehensive project video would be fantastic, and it would greatly assist me (and probably many others) as well.
    If you could construct a shop from scratch, starting from zero, I'd be extremely delighted if you could showcase everything. I'm eager to learn how to program a shop like this, and I can only do it with your guidance!
    Grüße 😁

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +4

      Appreciate the suggestion man, seems like many people would really like this! Grüße zurück :)

  • @fehlercode03
    @fehlercode03 ปีที่แล้ว +3

    that's probably the best and most user friendly way to implement this functionality :D

  • @PlayhouseMediaGroup
    @PlayhouseMediaGroup ปีที่แล้ว +10

    This is way cool,
    If you can do a full tutorial for an online shop with this

  • @tuedodev9021
    @tuedodev9021 7 หลายเดือนก่อน

    I like your videos. It´s an older video, but just one thought. Being myself working with Next JS (and despite some concerns I like it) going with shopify as CMS I would definetely consider Remix as JS frontend instead, because the guys from shopify buyed Remix end of 2022, so in the long run I guess it´s easier in combination with Remix I assume. Or in other words: Changing the frontend later is much easier than changing your CMS. Keep the vibe going.

  • @hussainbhagat8855
    @hussainbhagat8855 ปีที่แล้ว

    Hey Josh, love all your videos which are crisp and on point. Would love some in-detail videos like tutorials or projects like creating an e-commerce app using Shopify and nextJS.

  • @agoodmansaid
    @agoodmansaid 5 หลายเดือนก่อน

    Thanks man. Most channels just show long tutorials for doing this but dont explain how it works. You're the best!

  • @rowsncols
    @rowsncols ปีที่แล้ว +2

    Thanks man It's so crazy how I got my first client a few days ago requesting an e-commerce, and first your 1,000$ video then this! must be a sign

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว

      wish you all the best for your first gig!!

    • @rowsncols
      @rowsncols ปีที่แล้ว

      @@joshtriedcoding thank you brother 🙏

  • @scuffey2608
    @scuffey2608 ปีที่แล้ว +2

    hey Josh great content!! could share (maybe a video) on how you handle design for your freelance work? do you work with a designer? design your self? or ask the customer to bring their own design?

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +3

      Sometimes they already have an idea or even a designated design team. If not, using TailwindUI and shadcn/ui works wonders for creating a beautiful UI quickly

  • @arman3400
    @arman3400 ปีที่แล้ว +1

    Bro! You're a lifesaver, my job is asking me to redo their entire ecommerce shop, from the code to design, with a shopify backend (and I already know NextJS, Tailwind, Typescript, etc). If you do a full project video that would help me (and judging by the comments) and others so much. PleasE!~

    • @adejesaru
      @adejesaru 7 หลายเดือนก่อน

      Hey! That's pretty much the situation I'm in right now! Were you able to solve it? I'm looking for exactly that

  • @jlndev
    @jlndev ปีที่แล้ว +4

    Been doing it like this aswell but there were always 2 things that bothered me:
    - Persisted login state (between the frontend and the hosted checkout page)
    - Hooking up to shopify builtin analytics page.
    Did you figure that out?

  • @itsdrvgo
    @itsdrvgo ปีที่แล้ว +3

    "Big ass Tshirt" - Proof that Josh watched Fireship's latest video

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว

      i actually haven't, did he use the same example?

  • @lovrozagar3729
    @lovrozagar3729 ปีที่แล้ว +1

    Josh, please do a headless Shopify/Bigcommerce full project tutorial with auth, payment and deployment. Currently there is no in-depth tutorial for this anywhere on youtube.
    Thanks 😀

  • @amorto3420
    @amorto3420 6 หลายเดือนก่อน

    Thanks Josh! I was looking for a video like this, just to make sure if I should use shopify when creating websites with modern frameworks like nextjs. Since I always saw people using shopify with templates, I was wondering if any client would even want to pay extra for a custom build.

  • @rashzh5502
    @rashzh5502 ปีที่แล้ว

    Also Shopify offers Hydrogen, a framework built upon remix, designed for constructing storefronts.

  • @lukem121
    @lukem121 ปีที่แล้ว +6

    Would be more cool to see something like Medusa JS as its free/open source

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +2

      I believe this does have an existing medusa integration, same with swell. I just personally prefer shopify

  • @maximilianojuega17
    @maximilianojuega17 ปีที่แล้ว +1

    i dont undertsand where the CMS come into play in this setup? i see your storing the products and sales directly in shopify, i dont see the need of an CMS.. can you explain this please?

  • @martinkling3266
    @martinkling3266 5 หลายเดือนก่อน

    Hey Josh, great video! I was wondering why you are using Shopify when you as an experienced nextjs dev can set up an own dashboard for products and orders. What's the reason behind this? Im currently building an ecommerce store and just stumbled upon your video.

  • @lovrozagar3729
    @lovrozagar3729 ปีที่แล้ว +2

    Please do a full tutorial for this kind of project

  • @marcofaquim
    @marcofaquim ปีที่แล้ว

    Awesome content. The amount of work you saved me is amazing. Thank you Josh for your hard work

  • @pauls6277
    @pauls6277 ปีที่แล้ว

    The same can be done with Square Space too :D. Great video Josh!

  • @shadowcodr
    @shadowcodr 3 หลายเดือนก่อน +3

    What's the point of building your own UI and paying for Shopify? Why not just embed Stripe at that point and not pay Shopify?

    • @nested9301
      @nested9301 2 หลายเดือนก่อน

      you are paying for the admin dashboard + stripe you have to do some logic to get it done and in the long run shopify is scalabe and battle tested , not like your crappy code

  • @cosmo5805
    @cosmo5805 ปีที่แล้ว +2

    Love your videos! Can you make a video about how to structure a scalable, complex, enterprise-level app using Next.js? I find the Atomic Design Methodology very interesting. Is it scalable? Why or why not? I think it would make a great idea for a video.

  • @thbtse
    @thbtse 5 หลายเดือนก่อน

    Hi Josh, this video use about Shopify+ Next js for getting benefit on headling payment. And also 1 video using payload+stripe+Next. What are the pros and cons? As I know, payload is free but Shopify is $89 per month but with better storage management. Any further discuss about this? Thanks

  • @neodinok-it3ym
    @neodinok-it3ym ปีที่แล้ว

    Gread video. A full-stack tutorial on Next.js store would be much appreciated

  • @codetech1165
    @codetech1165 ปีที่แล้ว +1

    Love your videos.
    I recently came across a headless backend for ecommerce called swell, any chance you could do a tutorial on how to integrate that with next.js 13, that would be amazing !!!

  • @atuljain7637
    @atuljain7637 2 หลายเดือนก่อน

    This was a very high level video, it would be better if you would have explained how you actually did the setup of this project.

  • @jss_developer1432
    @jss_developer1432 ปีที่แล้ว

    Wow very cool! I’ve only built a SAAS with one type of membership so, this sounds more robust eccommerce! I’m sure this is one good way , Wordpress has woo commerce , I wonder if there are other good platforms/ services that we ca use to achieve this with nextjs ?

  • @meitoli
    @meitoli 4 หลายเดือนก่อน

    i think this will work for a small-medium store. Shopify does not support multichannel POS very well. Any ideas on that case?

  • @ahmed_osamaa
    @ahmed_osamaa ปีที่แล้ว

    Hi Josh, great video.I am still new to E-commerce websites, can I know if this service from shopify is paid or not ?

  • @phantazzor
    @phantazzor ปีที่แล้ว

    sorry I wanted to add, versus the hydrogen remix version starter project do you get similar project? with pre-build SSR components/components? I'd like to keep going with next and not remix but I'd like to know the pros and cons besides having to learn remix

  • @rockydaffodil4770
    @rockydaffodil4770 ปีที่แล้ว

    Hey Josh, I liked the video, but is there a way to automate the shipping after the client has bought the product?

  • @talleyrand9530
    @talleyrand9530 หลายเดือนก่อน

    Fun fact: The cart now uses Optimistic hook

  • @gerardoluisbv
    @gerardoluisbv 10 หลายเดือนก่อน

    Sorry, I speak Spanish and I'm trying to understand, exactly in the shopping cart part, does it mean that the products are saved in a database? That is, wherever that user logs in, will they be able to see their products?

  • @scarswell12
    @scarswell12 ปีที่แล้ว

    Would love to see a full tutorial on how this can be done.

  • @demicoderr
    @demicoderr ปีที่แล้ว +3

    Please Josh can you do a full tutorial on this?

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +5

      yeah dude seems like many people are interested

    • @demicoderr
      @demicoderr ปีที่แล้ว

      @@joshtriedcoding we would really appreciate this 🔥✨

  • @classicmanchristian
    @classicmanchristian 4 หลายเดือนก่อน

    Do you by chance know if you can do the same thing just using square instead of shopify?

  • @cengizkbrsl265
    @cengizkbrsl265 ปีที่แล้ว

    That’s one of the approaches which sounds nice but don’t really work in practice. In that checkout page if user click back they face up wtih your shopify online store.

  • @jp.cortes
    @jp.cortes ปีที่แล้ว

    Nice video Josh. Beside Stripe I've been using PayPal as payment option

  • @codewithguillaume
    @codewithguillaume ปีที่แล้ว

    Man you are the best ❤

  • @Ja-rz9fq
    @Ja-rz9fq ปีที่แล้ว

    Great idea, unfortunately Stripe is not supported in my country (Bosnia). Are there any other solutions for creating a business, shop or whatever its called on Shopify without Stripe, i mean is there any alternatives like credit cards or stg like that...

  • @dukeselwood
    @dukeselwood ปีที่แล้ว

    I don't get this. Surely with this you're still paying for Shopify (which is expensive) and not making use of what that money gets you (all the templates, pro made front-end etc). Or is the Shopify API free/cheap to use?
    Thanks

  • @brynobryno
    @brynobryno ปีที่แล้ว

    How would you approach building a portfolio/company website with multiple subpages, blog, contact forms, etc. with everything being customizable via CMS? What CMS to choose? Go headless or use “good” old wordpress + next? Start with a template or create everything from scratch?

    • @alexambrinos
      @alexambrinos ปีที่แล้ว

      Hi, I was also interested in finding the best way to do it in 2023. After some research, I think Astro for frontend + a headless CMS like Strapi is the way to go. You can even use markdown files if you will have a project without the need for a CMS.

    • @Laam.333
      @Laam.333 ปีที่แล้ว +1

      I've built several sites like this for non tech-savvy clients and I've found the best / most customizable CMS to use with the Next app router is Sanity. You can quickly setup an embedded studio inside a route in your app, define your schemas and you're good to go. For contact forms / newsletters react-hook-form + sendgrid is a good option, maybe even react-email + resend if you're mainly doing transactional emails. If the client is tech savvy you could go the markdown route and use contentlayer + mdx.

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว

      wordpress + react is a totally valid approach. I've usually used sanity cms for freelance work in the past, it's pretty intuitive for clients and you can query data in a graphql-kinda way. But there is no typesafety unless you use some additional modules, there might be better options

  • @squirtle0x
    @squirtle0x ปีที่แล้ว

    Yup, did this exact method but payment was fulfilled with crypto on the frontend and then shipping costs are handled by the shopify hosted page

  • @sagspot
    @sagspot ปีที่แล้ว

    I created one and am handling everything myself with a strapi backend and mpesa checkout

  • @AkmalAshwin
    @AkmalAshwin 3 หลายเดือนก่อน

    everything was nice until the success url for the payment process, it redirects you to
    shopify’s default template theme website builder, Josh if you found a solutions please tell me or any of the you guys could help me to solve this

  • @stefanflaschko
    @stefanflaschko 4 หลายเดือนก่อน

    Hmm. What's the CMS for if the products are in shopify?

  • @marcofaquim
    @marcofaquim ปีที่แล้ว

    JOSH WE NEED THE FULL TUTORIALLLL

  • @ashmitsharma9096
    @ashmitsharma9096 ปีที่แล้ว

    A comprehensive video on webhooks in NextJs will be very helpful. I was looking for one and couldn't find one. BTW I love the sound mixing of your videos, it is always so on point.

    • @gommonebucato1562
      @gommonebucato1562 ปีที่แล้ว

      I used Stripe Webhook, maybe I can help you.

  • @GfoxSim
    @GfoxSim 7 หลายเดือนก่อน

    This is really cool and simple. Wow.

  • @igeajibola732
    @igeajibola732 ปีที่แล้ว

    Josh, please create a project on this concept, it's nice

  • @Ikakoo2410
    @Ikakoo2410 ปีที่แล้ว

    Could you explain difference between invalidate queries and refetch? Their pros and cons and which is better?

  • @join_devhub
    @join_devhub ปีที่แล้ว

    Hey, shopify is a cms so why did you mention shopify and cms separately in the flowchart? A bit confused.

  • @rafaelmingossi1914
    @rafaelmingossi1914 ปีที่แล้ว

    Hey Josh you could run a small project integrating Shopify + NextJS from scratch with cart functionalities more in details =D Thanks!

  • @DanielClipsTVS
    @DanielClipsTVS 11 หลายเดือนก่อน

    heyy. are we still getting a full video for this please josh

  • @shreyas.sihasane
    @shreyas.sihasane ปีที่แล้ว +1

    Please make a full stack app with next js 13, and use unused tech stack till now. Please use new technologies

  • @Invct2755
    @Invct2755 ปีที่แล้ว

    Let's go a new video, thanks bud

  • @BeyondLegendary
    @BeyondLegendary ปีที่แล้ว +5

    Impressive, very nice. Let's see Paul Allen's e-shop.

    • @gamevidzist
      @gamevidzist ปีที่แล้ว

      I've never gotten this joke. What does it mean?

    • @imgeorgemore
      @imgeorgemore ปีที่แล้ว

      OMG, It even has a watermark 😓

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +2

      oh man tax compliance, why is Paul Allen starting to sweat?

    • @imgeorgemore
      @imgeorgemore ปีที่แล้ว

      @@joshtriedcoding btw thanks for the sneak peek of the vercel integration with shopify! this is a game changer for shopify devs!

  • @devhamdani
    @devhamdani 5 หลายเดือนก่อน

    Hi, Can you tell me that if create a theme using this stack would i've to pay both for shopify and hosting service or not?
    Please answer my question if anyone knows?

  • @b3games146
    @b3games146 10 หลายเดือนก่อน

    So i like the route youve gone but is it possible to load that checkout page as a modal so you dont redirect the user away from the store. if anyone knows if thats possible or even a good idea. Id love feedback

  • @kacperkowalski6862
    @kacperkowalski6862 ปีที่แล้ว

    Video about e commerce in next js that's what i wanted always to see

  • @jessicafithrase8259
    @jessicafithrase8259 7 หลายเดือนก่อน

    How can you hide the 'Continue Shopping' button on your Thank You page?

  • @AdrianGonzalezBlogs
    @AdrianGonzalezBlogs ปีที่แล้ว

    Can you create user accounts linked to the orders,authentication and tracking with this implementation?

  • @JohnCanCode
    @JohnCanCode ปีที่แล้ว

    Great topic. Can I could use this stack for a ticket sales platform for music festivals? It is common for many customers to compete for a small amount of tickets as a phase ends. I want to harness the power of nextjs and the thoroughness of shopify to securely handle many users paying at once. I also want to implement ticket reservation when a user adds to cart, and release tickets if a user takes too long to complete checkout. Is this possible with headless shopify? If someone could let me know that'd be great. 👌

  • @edoardodepiccoli3004
    @edoardodepiccoli3004 หลายเดือนก่อน

    liked the video because of the bigass tshirt🔥

  • @LabhamJain
    @LabhamJain ปีที่แล้ว

    What are you're thoughts with medusajs?

  • @rod6722
    @rod6722 7 หลายเดือนก่อน

    How much do you typically charge for an e-commerce store like that?

  • @fredygerman_
    @fredygerman_ ปีที่แล้ว

    Can you please make a video with Directus. Am trying to use it as a quick way to build fast

  • @PoliticsMaurice
    @PoliticsMaurice ปีที่แล้ว

    dont spill the beans
    gj maoite

  • @Shawn-Mosher
    @Shawn-Mosher ปีที่แล้ว

    Definitely building a store. I’m using Nextjs, Woocommerce and Stripe

    • @imkir4n
      @imkir4n ปีที่แล้ว

      I tried but facing some difficulties in some queries. Paused atm

    • @Shawn-Mosher
      @Shawn-Mosher ปีที่แล้ว

      @@imkir4n what queries? Are you using the rest api, woographql, or store api?

    • @imkir4n
      @imkir4n ปีที่แล้ว

      @@Shawn-Mosher woographql + wpgraphql

    • @tacopito
      @tacopito ปีที่แล้ว

      what do you recommend using?@@Shawn-Mosher

  • @devShahriar
    @devShahriar ปีที่แล้ว

    Would you please show us how to host it locally ?

  • @FunkyToe369
    @FunkyToe369 ปีที่แล้ว

    Hydrogen looks really cool too, but I couldn't seem to try it out on a dev store without paying so I said screw that lol

  • @manshulduggal5482
    @manshulduggal5482 ปีที่แล้ว

    stripe and all is cool but i always wonder how do people actually implement their own custom gateways and all... i once tried to do it and never came close L

  • @datamagaldadze1134
    @datamagaldadze1134 ปีที่แล้ว

    hey Josh, i am trying to make my Next.js application official, i bought the domain but i don't know what to write in .htacess so that when user enters my domain it should render page.js and so on.

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว

      no idea what you're doing tbh, never heard of that. For Next deployment I use both vercel and amplify, they make it very easy to get up and running

    • @datamagaldadze1134
      @datamagaldadze1134 ปีที่แล้ว

      okay man thanks, can i somehow buy or connect my domain to the vercel when i deploy my application ?@@joshtriedcoding

  • @avi7278
    @avi7278 ปีที่แล้ว

    Wow a buy button and everything!

  • @phantazzor
    @phantazzor ปีที่แล้ว

    could you deploy elsewhere than vercel though?

  • @MrHumbleOne
    @MrHumbleOne 4 หลายเดือนก่อน

    This is so cool to see Shopify with next js, I really need a way to use Shopify for customer Auth. Any tips?

  • @sebosamuraj
    @sebosamuraj ปีที่แล้ว +1

    Hi josh I wonder what you say about medusajs. :)

  • @_Ja1i1
    @_Ja1i1 ปีที่แล้ว

    Hey josh i have been watching your videos constantly from a long time 🙂
    A detailed video on the file structure of this next.js commerce template please 🥺
    In which we can understand the code

  • @_bijaydas
    @_bijaydas ปีที่แล้ว

    Creating a backend for an e-commerce is very very very hectic

  • @meng4948
    @meng4948 ปีที่แล้ว

    waiting for video full course.

  • @Devertelo
    @Devertelo ปีที่แล้ว +1

    Nice video!!!

  • @kavishkahenderson5724
    @kavishkahenderson5724 ปีที่แล้ว

    What payment gateway Are you using?

  • @kimbapslayer1995
    @kimbapslayer1995 ปีที่แล้ว

    Why you need Shopify and a CMS? Can’t you just make api calls directly to Shopify?

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว

      yeah that's what we're doing here, shopify is the cms we get all the products and collections from. Might be a bit unclear from the diagram, I just meant their "CMS" functionality

  • @zoltanmolnar6956
    @zoltanmolnar6956 ปีที่แล้ว

    ok it is very interesting BUT it would be more interesting if you provide us an E-com tutorial how to build, thank you

  • @Louis-qo7tf
    @Louis-qo7tf 5 หลายเดือนก่อน

    comment changer les photos des produits sur l'app traduction CMS shopify

  • @fatihyurek-c5m
    @fatihyurek-c5m ปีที่แล้ว

    Hey Josh;
    Appreciate for all efforts getting hard things to easier for us. I have a problem with last nextjs version. Could anyone face with this problem. My website showing html chunks on the browser if left for a period of time.

  • @victortimi
    @victortimi ปีที่แล้ว +1

    Can you make a tutorial on this pleaseeeeee

  • @abdullah_siddiquii
    @abdullah_siddiquii ปีที่แล้ว

    Hey please make a vedio on Stripe payment using latest nextjs for production level applications. 🙋

  • @paredesparedespg
    @paredesparedespg ปีที่แล้ว

    please make a full tuTORIAL ON HOW TO DO I T

  • @dorin6880
    @dorin6880 ปีที่แล้ว

    Do we need to purchase shopify plan or it is free to use the api?

    • @ejoojoo
      @ejoojoo ปีที่แล้ว +1

      not free

    • @imkir4n
      @imkir4n ปีที่แล้ว +1

      Earlier it was free but now it doesn't

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +1

      It's not free unfortunately

  • @akifkhan2402
    @akifkhan2402 ปีที่แล้ว

    I think you should complete toutorial about shopify clone with crm

  • @romzaar
    @romzaar ปีที่แล้ว

    How can the customer view the purchase status, or purchase history, and track the orders?

  • @lakshanmaduranga2518
    @lakshanmaduranga2518 11 หลายเดือนก่อน

    are there any way to use own api withot shopify

  • @andys_industries
    @andys_industries ปีที่แล้ว

    you got yourself a new follow

  • @liam2795
    @liam2795 ปีที่แล้ว

    holy shit this is very nice

  • @Proximity221
    @Proximity221 ปีที่แล้ว

    given allot can go wrong implementing payments on your own wouldn't it provide some value to create a tutorial implementing it from the start?

  • @rusruz1331
    @rusruz1331 ปีที่แล้ว

    I know its not the case ,but Shopify don't work in many countries ,like Belarus for example ,users cannot pay (

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว

      oh interesting, which payment providers do they usually use?

    • @rusruz1331
      @rusruz1331 ปีที่แล้ว

      Woocommerce with bank extension ,this is honestly depressing ,because stripe and Shopify is great ,but not working for the Eastern Europe ,there is no good alternatives @@joshtriedcoding