> 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/setting-up-limited-time-access-for-your-courses.md).

# Setting Up Limited-Time Access for Your Courses

This guide shows you how to automatically grant course access for a specific period (e.g., 30 days, 90 days) from the date of purchase, after which the system will automatically revoke access. This is perfect for subscription-based content, short-term offers, or promotional packages.

### Step 1: Access Course Settings in LDT

First, navigate to the course you want to apply a time limit to.

* From your Shopify admin, go to Apps > LDT Online Courses.
* Click on Courses and select the specific course you want to set a time limit for.

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

### Step 2: Link the Course to a Shopify Product

This feature requires the course to be linked to a product on Shopify.

* On the course settings page, find the section titled "Auto enroll via Shopify Products".
* Click the Link product button.
* In the pop-up, find and select the product you will be using to sell access to this course.
* Important Tip: If you have different plans (e.g., a 31-day plan and a 1-year plan), you can create variants for your product (e.g., "31-Day Access" and "1-Year Access"). In this step, click on "Specific variants" and select all the relevant variants you want to link.

<figure><img src="/files/6OeFjkrO0QbcaWioZxJf" alt=""><figcaption></figcaption></figure>

### Step 3: Activate and Configure the Time Limit

This is the key step where you activate and set the duration of the limited access.

* Just below the product link, you will find the "Limit time access" option. Toggle this on.
* Once enabled, an input field will appear.
* Enter the number of days you want to grant your student access. For example:
* Enter 31 for a 1-month plan.
* Enter 366 for a 1-year plan.
* Enter 91 for a 3-month plan.
* Important: If you linked multiple variants in Step 2, you CAN set different access times for each one. Make sure you enter the correct number of days corresponding to each plan.

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

\
By following these steps, you can easily control and automate the duration of your students' course access, giving you greater flexibility in your business model.

<br>
