SmarterU Success Center

Setting Up an External Storefront with a Shopify Webhook

How It Works

A "webhook" tells Shopify how to communicate with SmarterU so that your customers are registered and enrolled in their courses. Here's how it works.

From your Shopify store, customers can browse your courses and add courses they are interested in to their shopping cart. They can then go through checkout to pay for their purchases.

After the customer's payment is confirmed, your webhook sends the customer's information and course SKU to SmarterU. SmarterU creates a user account for the customer and enrolls them in the course(s). SmarterU then sends the customer an email with the SmarterU login page's URL and their login information. The customer logs into SmarterU and begins their course(s).

Setting Up an External Storefront with a Shopify Webhook

To set up an external storefront with a Shopify webhook, you'll need to do the following:

  1. Add a subscription to SmarterU that includes the courses you would like to sell in Shopify.

  1. Add a variant to the subscription; be sure to specify a SKU for the variant. To sell a learning plan, enter the SKU in the Learning Plan ID field and contact our Success Desk to let them know which learning plan you'd like to sell.

  2. Create a Shopify "webhook".

  3. Set up your products in Shopify.

  4. Add an external storefront to SmarterU.

Creating a Shopify "Webhook"

A "webhook" tells Shopify how to communicate with SmarterU so that your customers are registered and enrolled in their courses.

To set up a "webhook" in your Shopify account:

  1. From the Settings menu on the left side of the Shopify Admin page, select Notifications.

  2. From the Webhooks section of the page, click Create a Webhook.

  3. Specify the following settings.

Setting

Value

Event

Order Payment

Format

XML

URL

https://app.smarteru.com/eCommerce/shopify/index.cfm

  1. Click Save Webhook. Your secret key displays below the grid.

Interface gráfica do usuário, Texto  Descrição gerada automaticamente com confiança média

  1. Copy your secret key. You will need to paste this in the Secret Key setting of the external storefront in SmarterU.

NEXT STEP: Set up your products in Shopify.

Setting Up Products in Shopify

To set up your products in Shopify:

  1. From the Products menu on the left side of the Shopify Admin page, select Add a Product, or select an existing product.

  2. In the Inventory and Variants section, enter the SKU of the matching SmarterU subscription variant.

  3. Specify the price and other purchasing details for the product.

If you are offering an instructor-led course, you can add additional variants for each different sessions. Your customers can select their preferred session when they select the course.

NEXT STEP: Add an external storefront to SmarterU.

Locating Your Shopify Domain

Your Shopify domain is required when you add an external storefront to SmarterU.

To locate your permanent Shopify domain:

  1. From the Settings menu on the left side of the Shopify admin, select Domains.

  2. In the list of domains, look for the entry ending in .myshopify.com. Note that it may not be at the top of the list or set as the primary domain.

  3. To confirm it's the correct domain, check your browser's address bar while in the Shopify admin. The URL has the format:

admin.shopify.com/store/<store-id>

Your permanent domain is:

<store-id>.myshopify.com

  1. Copy the domain and paste it into the Domain setting of the external storefront in SmarterU.

Adding an External Storefront to SmarterU

Before you add an external storefront to SmarterU, be sure you have the following information:

Refer to Adding an External Storefront for details. Be sure to set the storefront's External Type setting to Shopify.

Interface gráfica do usuário, Texto, Aplicativo, Email  Descrição gerada automaticamente