> For the complete documentation index, see [llms.txt](https://helpdesk.ldtsoft.work/ldt-online-course/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpdesk.ldtsoft.work/ldt-online-course/subscription-and-access-settings/a-step-by-step-guide-to-setting-up-an-automated-subscription-course.md).

# 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="/files/Iu2iWDebragkJI7Kh12u" 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="/files/CKFNMdV0XXS6SpOahwJ2" 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="/files/y7TeNOVbNeM2pUxYYbLP" 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="/files/TAUerYbZitmbTpCppUFO" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/WgoRnOmCSLg5QQGbfZuW" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/S7l0YRYaDM2m8d3J3XzJ" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/2x3voTTrU2EtMIdX3Rp6" 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="/files/rEwvcW52rIu4wChaDofR" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/BciBqfm8sFXYl2bDA30A" alt=""><figcaption></figcaption></figure>

* Select the subscription product you created in Step 1.

<figure><img src="/files/xTGIU6TdJ3LxSKx83kQ1" 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="/files/oSDtr9NJr53m9a7WnXAr" 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.
