Build a Cart Validation - Shopify Functions

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ย. 2024

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

  • @matiasvaldez370
    @matiasvaldez370 2 หลายเดือนก่อน +1

    Amazing video! I hope to see more content about shopify functions in the future since there isn't much content out there regarding this way of developing extensions 👌

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

    Finally, a Shopify video after a long wait. Thank you!

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

    Great video, probably next video could be about checkout ?

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

    Great tutorial - thanks for sharing! I would love to see a tutorial with a Discount function based on Customer Tags. (if a customer is tagged "VIP" they get a product at $XXX) Cheers!

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

      A never mind. Just read that the Cart Transform API is only available to Shopify Plus stores. I get they want businesses to upgrade to Plus, but it's frustrating to get limited capabilities if you're not on the Plus plan. I wish they enabled everything and set pricing tiers based on yearly revenues. Then smaller stores could grow quickly and become bigger stores. A win-win for both the store and Shopify.

  • @r1x609
    @r1x609 4 วันที่ผ่านมา

    Amazing tutorial 🎉 Is it possible to get customer order history? so I want to say "per day user can only but this product 2 quantity only"

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

    I have a question though, if you would want to create the metafield definition right when the user installs your app, how would you do it? I was thinking with a webhook from the admin embed but that would require us to have an admin dashboard only for this feature to work. Can you think of other way to achieving it without the need of creating a dashboard?

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

    Tried creating a Product metafield but how does that target the cart and merchandise? There's no such mutation and not related field in query... Please help with it... or you can share your app link if that works! TIA

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

      The metafield namespace & key need to match what you put in your run.graphql file. In the video, I set up the metafield with the namespace of "quantity_limits" and key of "limit". Then in my run.graphql file where I'm grabbing the metafield, I specified that same namespace and key. There's nothing else you need to do with the API or anywhere else in the app to get those values, they are just linked through the namespace & key. I have a gist up here where you can see how I set up my run.graphql to grab the correct metafield: gist.github.com/RAAbbott/47070a0a47cf8c97b713dbdea3ebe11d

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

      @@devwithalex Thanks mate. It worked!