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

Move to shopfront-api checkouts, provide agnostic JS and alpine helper #241

Merged
merged 22 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/content/en/frontend/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ position: 9

As we are pulling all our products into Statamic, we'll want a way to access everything on the front-end from our `antlers` files. There are two options available to you:

1. Storefront API by the [JS SDK](https://shopify.github.io/js-buy-sdk/)
1. Storefront API by the [JS Client](https://github.com/Shopify/shopify-app-js/tree/main/packages/api-clients/storefront-api-client#readme)
2. [Buy Buttons](https://www.shopify.co.uk/buy-button) (easiest to set up)

This addon only takes into account the Storefront API as we want more control over what happens on our frontend.
Expand All @@ -18,7 +18,7 @@ To see the front-end in action, you can view a demo at [https://statamic-shopify

## Storefront API

The [Storefront API](https://shopify.github.io/js-buy-sdk/) has a lot of data you can retrieve, however we are only focusing on three elements.
The [Storefront API](https://github.com/Shopify/shopify-app-js/tree/main/packages/api-clients/storefront-api-client#readme) has a lot of data you can retrieve, however we are only focusing on three elements.

1. Creating a cart instance and remembering it across pages
2. Handling adding products from our CMS to the cart
Expand Down
Loading
Loading