> 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-place-a-test-order-to-make-sure-everything-work.md).

# How to place a test order

Place a test order with a 100% discount code to check that buying a course enrolls the student

Buy your own course with a 100% discount code, so you can watch enrollment happen without paying.

Do this after you change anything about enrollment — a new linked product, a new visibility, a new access window — because those settings only show their effect on a real order.

### 1. Create a 100% discount code

In your Shopify admin, go to **Discounts** and click **Add discount**.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-f94c2365991e71694d17c0c59d18584c3d0082ad%2Fimage.png?alt=media" alt="Opening the Discounts page in the Shopify admin and clicking Add discount"><figcaption><p>Your Shopify admin -> Discount -> Add discount</p></figcaption></figure>

Choose the **Order discount** type.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-b0652dd3043d371a519e3578ea0fcb1736aa19f3%2Fimage.png?alt=media" alt="Selecting the Order discount type"><figcaption><p>Select Order discount type</p></figcaption></figure>

Set the value to **100%**, and limit the code so it cannot be used by real customers — for example switch on a **maximum of 1 use** and a **minimum purchase requirement**, or restrict it to a customer segment.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-ed673ef7074f818349a67c42937baf11573ede99%2Fimage.png?alt=media" alt="Setting the discount value to 100 percent"><figcaption><p>Setup the discount</p></figcaption></figure>

### 2. Use the code at checkout

From your storefront, add the course product to the cart and go to checkout. Type the code in the **Discount code** field and click **Apply**.

<figure><img src="https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-6b65fb927933b2d31207af9d40035be91c353b73%2Fimage.png?alt=media" alt="Entering the discount code in the checkout page"><figcaption><p>Use the discount code in Checkout page</p></figcaption></figure>

Finish the order. Shopify has a **Bogus Gateway** for test payments, or you can use a test mode on your payment provider.

### 3. Check that enrollment happened

Open the LDT Online Courses app and go to **Students**. Your buyer should be listed with the course attached.

### Result

The order is free, and the student is enrolled exactly as a paying customer would be — including the access window, the welcome email, and any enrollment tags.

### Troubleshooting

* **No student appears.** Look at the linked product again: enrollment runs when the order is marked as **Paid**, so an unpaid test order does not enroll anyone.
* **You want to remove the test student.** Delete them in **Students**, and delete the test order in Shopify. The discount code can stay for later tests, but keep the use limit on.
* **The discount code was rejected.** A 100% order discount may need the product to be the only item in the cart.

### Related pages

* [How to Grant Free Course Access Using a 100% Discount Code](/ldt-online-course/enroll-and-price/how-to-grant-free-course-access-using-a-100-discount-code.md)
* [How to Manually Grant Course Access Without Purchasing](/ldt-online-course/enroll-and-price/how-to-manually-grant-course-access-without-purchasing.md)
* [Troubleshoot Missing Course Access in Customer Account](/ldt-online-course/help-and-feedback/troubleshoot-missing-course-access-in-customer-account.md)
