# A Step-by-Step Guide to Setting Up an Automated Subscription Course

This guide provides a comprehensive, step-by-step walkthrough to help you create and sell your first subscription-based course with automatic timed access.

### Step 1: Create Your Subscription Product on Shopify

Before setting up the course content, you need to create a product in your Shopify store. This product will be the item customers purchase to gain access.

* From your Shopify Admin, navigate to **Products** -> **Add product**.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2FjuOzPWR8Ybfm6hIsllJY%2Fcourse%206.2.png?alt=media&#x26;token=16ab74dd-e0a5-424e-9fb5-ebee58d2fd7e" alt=""><figcaption></figcaption></figure>

* Fill in the necessary details like the title, price, description, and images.
* Crucially, go to the Variants section and create a new Option named "Plan".
* Add the Option values: "Monthly" and "Yearly".
* Set a specific price for each variant.
* Note: Don’t forget to uncheck the box "This is a physical product".

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2F0IzvQzef3Wqn8rGlaGmG%2Fcourse%206.3.png?alt=media&#x26;token=6db9dd87-65b9-42d4-a0ce-25d96aec78fb" alt=""><figcaption></figcaption></figure>

### Step 2: Set Up Recurring Payments with the Shopify Subscriptions App

This step activates the automatic billing feature for your monthly and yearly plans.

* Install the [Shopify Subscriptions app](https://apps.shopify.com/shopify-subscriptions) from the Shopify App Store.
* In the app, select **Subscription plans**.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2FrAtm1J866IsV0zjJ2eaQ%2Fcourse%206.4.png?alt=media&#x26;token=4bd2b4d8-1c18-4fff-8959-c49b45deeb2c" alt=""><figcaption></figcaption></figure>

* Create the Monthly plan:
  * For Products, select the product you created in Step 1.
  * IMPORTANT: Be sure to select the specific "Monthly" variant for this plan.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2F8Ho6E1gYGKALHgrfTjWA%2Fcourse%206.5.png?alt=media&#x26;token=772ee114-fb01-44d9-9bd1-e6c7d7179644" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2FAVbVjzboPXSYM3vvrT3Z%2Fcourse%206.6.png?alt=media&#x26;token=da5283db-7114-4cac-ac43-0b7d360e2baa" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2F7Rjk3ArhGKTWKGJn7cb9%2Fcourse%206.9.png?alt=media&#x26;token=5812a828-3f15-44ce-9db4-0c0c43f10a53" alt=""><figcaption></figcaption></figure>

* Create the Yearly plan:
  * Repeat the process, selecting the product and the specific "Yearly" variant.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2FojviUEZKLC609O0hKmu0%2Fcourse%206.10.png?alt=media&#x26;token=d91cf27c-b608-4f31-bc91-4d21f4110fe7" alt=""><figcaption></figcaption></figure>

Common Error: A frequent mistake is selecting only the product without choosing the specific variant, which prevents the system from distinguishing between your plans.

### Step 3: Link the Course and Activate Timed Access in LDT

This is the most critical step, connecting your Shopify product to your course content and enabling automatic access management.

* Go to **Apps** -> **LDT Online Courses** -> **Courses**.
* Choose the course you want to set up.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fwe7qmPFLJhn0EIHoqQwj%2Fcourse%206.12.png?alt=media&#x26;token=8091ca70-a37c-4d32-b751-0231415d4233" alt=""><figcaption></figcaption></figure>

* Find the **Auto enroll via Shopify Products** section and click **Link product**.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2F33LoaQ0nyCY49Gli1tN1%2Fcourse%206.13.png?alt=media&#x26;token=5dd2b1f6-71c2-4f9e-83f6-d8166738dd8b" alt=""><figcaption></figcaption></figure>

* Select the subscription product you created in Step 1.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2FDYkCQVbYwhhNqiFbjgr4%2Fcourse%206.14.png?alt=media&#x26;token=64b0dd74-1729-4dc0-a524-d663c4e82cf3" alt=""><figcaption></figcaption></figure>

* The Most Important Configuration:
  * After linking the product, click on "Specific variants".
  * CHECK BOTH the Monthly and Yearly variants.
  * Toggle on "Limit time access".
  * Set the corresponding access days for each variant:
    * For the Monthly variant: Enter 31 days so the course will be renewed for the next 31 days after the customer pays for the next monthly cycle
    * For the Yearly variant: Enter 366 days so the course will be renewed for the next 366 days after the customer pays for the next yearly cycle

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2FEKGWVh2BuY0S955sWVjK%2Fcourse%206.17.png?alt=media&#x26;token=c99d9508-5e3e-4144-ae76-d6f3ab1a8750" alt=""><figcaption></figcaption></figure>

* Click Save to finish.

### Step 4: Test Your Setup

To ensure your entire system is working correctly before you go live.

* Instructions: Follow our guide on [how to grant free course access using a 100% discount code](https://helpdesk.ldtsoft.work/ldt-online-course/get-started/how-to-grant-free-course-access-using-a-100-discount-code) to simulate a customer's purchase and verify that the enrollment and timed access features function as intended.

Conclusion: Once you complete these steps, you will have a fully automated subscription course system that manages billing and access seamlessly. Always remember to double-check that you have selected the correct variants in both Step 2 and Step 3.
