> 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-automate-tagging-and-fulfilment.md).

# How to automate tagging and fulfilment

Tag customers after they buy a course, and mark their order items fulfilled automatically

Add a tag to every customer who buys a course and let the app fulfil their order items, with a delay you choose.

Both automations run on the order itself, so a customer who buys two courses gets the same treatment without any manual step in Shopify admin.

### 1. Open the automation settings

In Shopify admin, open **Apps** -> **LDT Online Courses** -> **Settings** (1a), then click **Automation tasks** (1b) in the app's Settings menu.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-06f1ca0a3fc68ea8b9f7be5c9f9973c7f9e51bd0%2Fhow-to-automate-tagging-and-fulfilment-step-1.png?alt=media" alt="Opening Settings in Shopify admin and then Automation tasks in the app menu"><figcaption></figcaption></figure>

### 2. Switch on auto tagging

Under **Customer setting**, click the switch next to **Auto tagging** — the switch reads **Turn on** while it is off. The line under it states what happens: *Add tag to your customer after they buy your course.*

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-88c75ca62e22714d47f18b26b55fb9558825c003%2Fhow-to-automate-tagging-and-fulfilment-step-2.png?alt=media" alt="Switching on Auto tagging for customers who buy a course"><figcaption></figcaption></figure>

### 3. Write the tag value

In **Customize tag value**, type the tag to add. A fixed value such as `course-buyer` tags every buyer the same way; a variable such as `{{course.title}}` writes the course name, which is what you want when the tag has to tell courses apart.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-cd5684aae95013f189b02ddad11ac5fa6dceb085%2Fhow-to-automate-tagging-and-fulfilment-step-3.png?alt=media" alt="Writing a tag value with a course variable in Customize tag value"><figcaption></figcaption></figure>

### 4. Copy a variable from the list

Click **Variables** under the field to see the two placeholders the app replaces per order:

| Variable           | Becomes          |
| ------------------ | ---------------- |
| `{{course.id}}`    | the course id    |
| `{{course.title}}` | the course title |

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-3e8e0019e76b1f1e261e4c0919e4e5ff60b1592b%2Fhow-to-automate-tagging-and-fulfilment-step-4.png?alt=media" alt="Reading the tag variables the app can insert into the tag value"><figcaption></figcaption></figure>

### 5. Switch on automatic fulfilment

Under **Order automation**, click the switch next to **Mark order item as fulfilled after customer enrolled course**. The order item is fulfilled as soon as the customer is enrolled, so the order leaves your unfulfilled list on its own.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-e4d04bbe73c30083bab441b214bdcb243e594845%2Fhow-to-automate-tagging-and-fulfilment-step-5.png?alt=media" alt="Switching on automatic fulfilment after a customer is enrolled"><figcaption></figcaption></figure>

### 6. Set the fulfilment delay

Two more settings appear below once automatic fulfilment is on:

* **Fulfill the physical item** — switch it on when the order also holds a physical product that should be fulfilled with the course.
* **Fulfillment delay** — how many seconds the app waits before fulfilling the delivered order. A short delay lets a slow enrolment finish first; `60` is a safe start.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-836f7012b6424c5219ae1af4e6fe644d48a147f5%2Fhow-to-automate-tagging-and-fulfilment-step-6.png?alt=media" alt="Setting the fulfilment delay and the physical item option"><figcaption></figcaption></figure>

### 7. Save the settings

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-f1e4c5105622824d063ee45609bc45529e0beed4%2Fhow-to-automate-tagging-and-fulfilment-step-7.png?alt=media" alt="Saving the automation settings from the Unsaved changes bar"><figcaption></figcaption></figure>

### Result

Every new course buyer gets the tag you wrote, and their order items are fulfilled automatically after the delay. You can filter customers by that tag in Shopify admin, for example to send a follow-up campaign.

### Troubleshooting

* **A fixed tag mixes courses together.** Replace the value with `{{course.title}}` (or `{{course.id}}`) so each course writes its own tag; a tag already written to a customer is not rewritten by a later change.
* **The order stays unfulfilled.** Check that the switch is on, that the order holds a course product, and that the delay has passed — the app waits the whole delay before fulfilling.
* **Fulfillment delay and physical item are missing.** They only appear while **Mark order item as fulfilled after customer enrolled course** is on.
* **Fulfilment fails for an order with a physical product.** Leave **Fulfill the physical item** off, so only the course item is fulfilled and you ship the rest yourself.
* **A setting is greyed out with "Upgrade plan to use".** Auto tagging and auto fulfilment are plan features; the box names the lowest plan that includes them.

### Related pages

* [Setting Up a Subscription Course with Enrollment Tags](https://helpdesk.ldtsoft.work/ldt-online-course/enroll-and-price/setting-up-a-subscription-course-with-enrollment-tags.md)
* [How to Manually Grant Course Access Without Purchasing](https://helpdesk.ldtsoft.work/ldt-online-course/enroll-and-price/how-to-manually-grant-course-access-without-purchasing.md)
* [How to Enable or Disable Course Enrollment Welcome Emails](https://helpdesk.ldtsoft.work/ldt-online-course/emails-and-notifications/how-to-enable-or-disable-course-enrollment-welcome-emails.md)
