> 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-grant-free-course-access-using-a-100-discount-code.md).

# How to Grant Free Course Access Using a 100% Discount Code

Give a paid course for free with a 100% discount code, while keeping a real order

Use a 100% discount code when you want a real Shopify order — for a promotion, a partner or a student who should not pay — and still let the course's product enrollment work.

### 1. Check the course product is linked

The course must have the product linked under **Auto enroll via Shopify Products**; otherwise a free order creates no enrollment. If you have not linked it yet, follow [Create and sell your first course](https://helpdesk.ldtsoft.work/ldt-online-course/start-here/readme.md).

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-d777fef9ece0ea5c7abc6742c313445dc6f62e81%2Fhow-to-grant-free-course-access-using-a-100-discount-code-product.png?alt=media" alt="The course product in the Shopify admin"><figcaption></figcaption></figure>

### 2. Create a 100% discount

In Shopify admin, open **Discounts** and click **Add discount** -> **Amount off products**.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-bae4b835726be9180d79fe7b048a6ae457e2e8f4%2Fhow-to-grant-free-course-access-using-a-100-discount-code-discount-dialog.png?alt=media" alt="Choosing Amount off products in the Add discount dialog"><figcaption></figcaption></figure>

Set **Discount code** (for example `FREECOURSE`), **Value** 100%, **Applies to** the course product, the customer eligibility you want, and an optional total usage limit. Save the discount.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-3218639467fa2dd3590086ebca2c865e07781565%2Fhow-to-grant-free-course-access-using-a-100-discount-code-discount-form.png?alt=media" alt="The FREECOURSE code with a 100% value applied to products in the create-discount form"><figcaption></figcaption></figure>

### 3. Send the customer through checkout

Send the customer the product page URL. They add the course to the cart, apply the code at checkout and complete the order at **$0** — no payment is taken, but a real order is created.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-258d15697b0398f636e2a1e6dfad86515b5d01f8%2Fhow-to-place-a-test-order-checkout.png?alt=media" alt="Applying the discount code on the checkout page (the order becomes free)"><figcaption></figcaption></figure>

### 4. Let the product link enroll them

When the order is paid/fulfilled according to the course's trigger, the app enrolls the customer and sends the welcome email, exactly as it would for a paid order.

![The Auto enroll via Shopify Products section with the linked course product](https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-b5be3ca6ce9c38b6676bb9f89f80d57285641a49%2Fhow-to-grant-free-course-access-using-a-100-discount-code-auto-enroll.png?alt=media)

### Result

The customer gets the course for free, the order appears in Shopify, and the enrollment is tied to that order. You can see both sides: the order in Shopify and the student/course on the student's page.

### Troubleshooting

* **The code is rejected.** Check that it applies to this product, is active, and has not reached its usage limit or expiry.
* **The order is free but the student is not enrolled.** Check the product link on the course and the enrollment trigger; a $0 order still needs to match the trigger.
* **The customer used the code twice.** Set a total usage limit or a one-use-per-customer limit when creating the discount.
* **The student did not get the welcome email.** The order may still be unpaid/fulfilled later than expected; check the email settings and spam.
* **I want to enroll without an order.** Use **Add student** on the Students page instead; this flow is for a real order.

### Related pages

* [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 link a product to a course](https://helpdesk.ldtsoft.work/ldt-online-course/enroll-and-price/how-to-change-course-visibility.md)
* [How to place a test order](https://helpdesk.ldtsoft.work/ldt-online-course/enroll-and-price/how-to-place-a-test-order-to-make-sure-everything-work.md)
* [How to Export Your Student List and Read One Student's Progress](https://helpdesk.ldtsoft.work/ldt-online-course/students-and-reports/how-to-export-students-and-read-progress.md)
