> 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/enroll-and-price/how-to-limit-access-time-for-a-course.md).

# How to limit access time for a course

Choose whether access to a course never ends, ends X days after enrolment, or ends on a fixed day

Pick one of the three access-time modes on the product that grants the course, so students keep access forever, for a number of days, or until a date you set.

The setting sits on each **linked product**, so two products can sell the same course with different access windows.

### 1. Open the course

In Shopify admin, open **Apps** -> **LDT Online Courses** -> **Courses** (1a), then click the course you want to limit (1b).

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-17eafc99e4656b597e52bff613cee6e44d738dd5%2Fhow-to-set-up-limit-time-access-step-1.png?alt=media" alt="Opening Courses in Shopify admin and then clicking a course in the list"><figcaption></figcaption></figure>

### 2. Find the product that grants access

Scroll to **Option 1: Auto enroll via Shopify Products** and find the linked product (2). This section only renders while the course is **Paid - Private**, **Paid - Secret** or **Hidden - No listing**; on a free course (any of the three **Free** options, including **Free - Link only (no login)**) there is no product box yet, so set the visibility first ([How to change course visibility](https://helpdesk.ldtsoft.work/ldt-online-course/enroll-and-price/how-to-change-course-visibility.md)) and click **Link to products / variants** to link the product. The access-time settings sit **inside that product's box** — do not use its **Edit** button, which opens the product in Shopify admin instead.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-ec0cb62e967f1812de775254effc5a338c24ff4c%2Fhow-to-set-up-limit-time-access-step-2.png?alt=media" alt="Finding the linked product box under Option 1: Auto enroll via Shopify Products"><figcaption></figcaption></figure>

### 3. Choose the access-time mode

Under the **Enroll when** setting, pick one of the three options:

| Option                                          | What the student gets                                                 |
| ----------------------------------------------- | --------------------------------------------------------------------- |
| **Unlimited access time**                       | access that never expires                                             |
| **Limited access time X days after enrollment** | access for a number of days counted from the moment they are enrolled |
| **Limit access time to a specific day**         | access until one calendar day, the same for every student             |

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-1ef5d44c329cd3376ad4f6d6dbb730b6552f2c4b%2Fhow-to-set-up-limit-time-access-step-3.png?alt=media" alt="Choosing between the three access-time modes"><figcaption></figcaption></figure>

### 4. Set the number of days

With **Limited access time X days after enrollment** selected, type the number in the field below and keep the **days** suffix. `31` gives a month of access; the app accepts any whole number of days.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-f96cad21417c216ea4b861e14f61e812a9436c30%2Fhow-to-set-up-limit-time-access-step-4.png?alt=media" alt="Typing the number of days of access after enrollment"><figcaption></figcaption></figure>

### 5. Or pick the day access ends

With **Limit access time to a specific day** selected, choose the day in **Expired date**. Until you choose one the app warns *Choose an expiration date so the course expires on it.* If the course already has paid orders, a **Apply to previously purchased orders** checkbox appears as well — tick it to move those students to the same end date.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-fd755012102c00127dcfdfc121dc8266d0a9c4d9%2Fhow-to-set-up-limit-time-access-step-5.png?alt=media" alt="Picking the day access ends in the Expired date field"><figcaption></figcaption></figure>

### 6. Save the course

The top bar shows **Unsaved changes** with **Discard** and **Save** — click **Save**.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-f38135997a58b6f814de71e8868054aeab53d6a2%2Fhow-to-set-up-limit-time-access-step-6.png?alt=media" alt="Saving the access-time settings from the Unsaved changes bar"><figcaption></figcaption></figure>

### Result

Students enrolled through that product can open the course until the mode says so, and the app keeps an expiry date for each member. Each product link carries its own window, so a course sold by two products can run with two different access times.

### Troubleshooting

* **A student lost access sooner than expected.** The days are counted from the moment the student was enrolled, not from your change — check the member's expiry date in **Students**.
* **The mode does not apply to students who bought earlier.** **Limited access time X days** starts counting for new enrolments; for a fixed day, tick **Apply to previously purchased orders** before saving.
* **The app warns in red under Expired date.** The fixed-day mode needs a day; without it nothing expires and the setting is not saved as you expect.
* **Nothing changed after you picked an option.** Use the **Save** button in the top bar — the setting only leaves the page when the bar is saved.
* **Two products, two windows.** That is by design: the access time belongs to the product link, so change the one the students actually bought.

### Related pages

* [A Step-by-Step Guide to Setting Up an Automated Subscription Course](https://helpdesk.ldtsoft.work/ldt-online-course/enroll-and-price/a-step-by-step-guide-to-setting-up-an-automated-subscription-course.md)
