Skip to main content
Native Plugins & Integrations3 min read

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.

Note

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

  1. In Shopify admin, go to Settings › Apps and sales channels › Develop apps and create an app.
  2. Enable the Storefront API scopes for product listings, inventory, checkouts and customers. Install the app and copy the Storefront API access token.
  3. In WebAppStudio, open Integrations › E-commerce › Store connection and choose Shopify.
  4. Enter your permanent your-store.myshopify.com domain (Shopify admin › Settings › Domains) and the token.
  5. Optional: add an Admin API access token (scopes read_orders and read_products) and the webhook signing secret, so WebAppStudio registers order notifications for you.
  6. 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:

  1. Set up Firebase push.
  2. 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.
  3. 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:

javascript
// 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');

Next steps