Join the Webstudio community

j
jan6is
Offline, last seen last week
Joined December 13, 2024
It would be incredibly useful if Webstudio expanded its integration with e-commerce APIs by introducing a currency component. Similar to the time component, this feature could include customizable settings for price display (e.g., number of decimals, placement of the currency symbol, etc.). Ideally, it could connect to variables such as amount and currencyCode.

While I understand this feature might not be a high priority at the moment, it seems like a valuable enhancement to consider for the near future.
2 comments
O
Hi everyone,
I’m working on integrating the Shopify Storefront API into my website. I’m a beginner in this area, and I’d like to know if my approach is correct and whether it’s efficient and secure.

My Approach:


  1. Using CDN for Storefront API:
I’ll include the Shopify Storefront API client via a CDN:
<script src="https://unpkg.com/browse/@shopify/[email protected]/dist/umd/storefront-api-client.min.js">
</script>


  1. Connecting to Shopify:
• I’ll use my store domain (e.g., my-shop.myshopify.com),
• The latest API version (e.g., 2024-04), and
• My public storefront access token.
Here’s the client setup:
<script>
const client = ShopifyStorefrontAPIClient.createStorefrontApiClient({
storeDomain: 'my-shop.myshopify.com',
apiVersion: '2024-10',
publicAccessToken: '<your-public-access-token>',
});
</script>
33 comments
s
j
F
O
J