Skip to content

Commit

Permalink
Move to shopfront-api checkouts, provide agnostic JS and alpine helper (
Browse files Browse the repository at this point in the history
#241)

Co-authored-by: Jon <[email protected]>
  • Loading branch information
ryanmitchell and JonKaric authored Nov 4, 2024
1 parent e31c7da commit b00ffce
Show file tree
Hide file tree
Showing 20 changed files with 937 additions and 734 deletions.
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

0 comments on commit b00ffce

Please sign in to comment.