Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document the kafkaesque nightmare fugue-state that is working with shopify's api #2

Open
chase-moskal opened this issue Jul 3, 2023 · 3 comments

Comments

@chase-moskal
Copy link
Owner

chase-moskal commented Jul 3, 2023

  • it's impossible to run product queries inside a collection

    • we'll have to design sheep-cart's whole ui around this limitation
      • we'll have a mode where users can browse a collection's products
      • we'll have a search mode where users can type terms, and check-enable tags
      • but these have to be two separate viewing mode -- never both
    • in shepherd, we'll make:
      • shopify.products_in_collection({collection_id, must_be_available: true})
      • shopify.products({query: {terms, tags}})
  • totalInventory and quantityAvailable are unreliable and often throw unsolvable scoping errors

@chase-moskal
Copy link
Owner Author

  • as a merchant using shopify's ui, it's not possible to list which products you've accidentally left out of any collections, hah

@chase-moskal
Copy link
Owner Author

  • holy moly, when you use shopify as a headless cms, it removes the "seo" editable section from your product pages, for no discernible reason, so you can't edit your product's handle (the url shortname that we'll need)
    • surely a bug or silly mistake on shopify's part, they seem to think the product handles could only ever possibly be used with their online store builder (which i believe activates the editable seo section which harbors the information that is still used by headless api users...)

@chase-moskal
Copy link
Owner Author

  • good lord, shopify's productTags endpoint has a broken half-implementation of pagination
    • they provide the cursor pageInfo you would need for pagination...
    • ...but they fail to accept the after parameter.. so you can't start from anywhere but the first page
    • this will effectively limit us to 250 tags...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant