Shopify Integration
Connect your Shopify store to your WebAppStudio app for a native cart, orders and account screens, Shopify Checkout, product reviews and order notifications.
Overview
Connect your Shopify store and your app gets native shopping screens around your storefront: cart, orders and profile, with Shopify Checkout in a native sheet. Your website stays the home screen; products, prices and stock come from Shopify.
E-commerce is set up in Integrations › E-commerce. If the tab shows "coming soon", e-commerce is not yet enabled for your account. Screens your plan does not include show Upgrade.
Before you start
- Owner or staff access to your Shopify admin.
- E-commerce included in your plan.
Connect the store
- In Shopify admin, go to Settings › Apps and sales channels › Develop apps and create an app.
- Enable the Storefront API scopes for product listings, inventory, checkouts and customers. Install the app and copy the Storefront API access token.
- In WebAppStudio, open Integrations › E-commerce › Store connection and choose Shopify.
- Enter your permanent
your-store.myshopify.comdomain (Shopify admin › Settings › Domains) and the token. - Optional: add an Admin API access token (scopes
read_ordersandread_products) and the webhook signing secret, so WebAppStudio registers order notifications for you. - Choose Connect. WebAppStudio tests the token and shows your store name and currency.
Payments
Shopify stores always pay in Shopify Checkout: Shop Pay, Apple Pay, Google Pay, cards and your Shopify payment providers. No payment gateway setup is needed in WebAppStudio.
Native screens
In Integrations › E-commerce › Native screens, switch each screen on or off. A screen that is off, or not in your plan, opens the matching website page from Website fallbacks instead.
Under Open store pages natively, list paths (such as /cart) that open the native screen when tapped on your site. You can also point navigation items and top bar icons to native store screens.
Product reviews
Choose a Reviews source in Native screens: Shopify rating metafields (summary only), Yotpo (read, with your Yotpo app key) or Judge.me (read and write, with your private API token).
Order status notifications
Signed-in shoppers can get a push notification and an inbox entry when an order is confirmed, shipped, completed, cancelled or refunded:
- Set up Firebase push.
- In Integrations › E-commerce › Order status notifications, upload your Firebase service account JSON (Firebase console › Project settings › Service accounts › Generate new private key), from the same Firebase project.
- Make sure the store webhooks are registered (step 5 above).
Store studio
With a store connected, open the Store studio from Integrations › E-commerce to arrange and style the native store screens with a live preview.
Products and orders
Add and edit products in Shopify admin; WebAppStudio has no product editor. The Store connection card shows the products available in the app and has a Sync products button. Orders placed in the app appear in Shopify like website orders; shoppers see their own orders in the app's native Orders screen.
Disconnect
Use Disconnect on the Store connection card. It removes the stored keys and the webhooks WebAppStudio created; native screens switch back to your website pages.
From your website
Your storefront can tell the app about cart changes and open native screens:
// After the cart changes on your page, so native screens show the right count
wapp.commerce.cartUpdated({ itemCount: 3 });
// Open a native screen: 'cart', 'checkout', 'orders', 'orders/<order id>',
// 'profile', 'reviews/<product id>', 'notifications' or 'products'
wapp.commerce.openScreen('cart');