> 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/storefront-and-portal/allowing-customers-to-preview-your-course-content.md).

# Allowing Customers to Preview Your Course Content

Let shoppers preview some lessons free before they buy the course

Show part of a course on the product page so a shopper can try it before buying: mark lessons as **Free Preview**, then add the **Preview Course Content** block to the product template.

### 1. Mark the free lessons

In the app, open **Courses** and the course you want to preview, then open the module and the lesson.

![Opening the Courses list in the LDT Online Courses app](https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-01855ab72cac5d358b4fc1e1e80013b73e3c7e50%2Fpreview-course-content-courses-list.png?alt=media)

![Opening the course that holds the preview lessons](https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-6a515f49196ff79fa2190446a79a47efc5ad72a7%2Fpreview-course-content-open-course.png?alt=media)

![Opening the module that holds the free-preview lesson](https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-9500626d2e4965f0724a6abce06ad94aae60095c%2Fpreview-course-content-module.png?alt=media)

In the lesson editor, open the content block's **Settings**, turn on **Free preview**, click **Done**, then click **Save** in the save bar.

![Turning on Free preview in a content block's settings](https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-82d524769557f1e5d584087cd6561853caaf7c31%2Fpreview-course-content-free-preview.png?alt=media)

![Clicking Done to save the block settings](https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-f23e1081b3fe1976cbeeb3b4c9d5cfb1cadec221%2Fpreview-course-content-done.png?alt=media)

![Clicking Save in the save bar](https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-059b6f15bcd61b8266630c2fa9050fd6533d06fb%2Fpreview-course-content-save.png?alt=media)

### 2. Add the block to the product template

In Shopify admin, open **Online Store** -> **Themes**, click **Edit theme**, then choose **Products** -> **Default product** in the template dropdown.

![Opening Online Store then Themes and clicking Edit theme](https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-b11792fcb0c350cd8c593b6d509e825b6623ff8b%2Fpreview-course-content-themes.png?alt=media)

![Choosing the Default product template in the theme editor](https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-b4fcccd8bf9c078d17e592f16de649655a76efae%2Fpreview-course-content-template.png?alt=media)

In the product template, click **Add block** and choose **Preview - Course content** from the apps.

### 3. Set the block options and save

Click the **Preview Course Content** block in the **Product information** section. It has two settings: **Root HTML Classes** adds your own CSS classes to the wrapper, and **Show lesson number** (on by default) controls whether lesson numbers appear in the outline. Click **Save** in the theme editor.

![The Preview Course Content block selected in the Product information section with its settings](https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-505e780cdbcc477e5642490b92dce6441769fd81%2Fpreview-course-content-block-settings.png?alt=media)

### Result

The product page shows the course outline, and only the lessons marked **Free Preview** are playable to a visitor without buying. The rest stay locked until purchase.

![A shopper previewing the course outline on the product page](https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-85b7d28010afc0949058221f6edc565eed5e2a74%2Fpreview-course-content-storefront.png?alt=media)

### Troubleshooting

* **No lessons are playable.** Check **Free Preview** on each lesson and save the course; the block only unlocks the marked lessons.
* **The block is missing on the product page.** Add **Preview - Course content** to the product template and save the theme.
* **The preview shows the wrong course.** The block uses the product's linked course; check the product link on the course.
* **Lesson numbers are missing.** Turn on **Show lesson number** in the block settings.
* **A paid student still sees the preview.** That is expected on the product page; the paid course opens in the portal after enrollment.

### Related pages

* [How to Create a Lesson with Direct Video Upload](https://helpdesk.ldtsoft.work/ldt-online-course/build-your-course/how-to-create-a-lesson-with-direct-video-upload.md)
* [How to embed the course portal in a page](https://helpdesk.ldtsoft.work/ldt-online-course/storefront-and-portal/how-to-embed-the-course-portal.md)
* [How to add a course link to your store menu](https://helpdesk.ldtsoft.work/ldt-online-course/storefront-and-portal/how-to-add-a-course-link-to-your-store-menu.md)
* [How to change course visibility](https://helpdesk.ldtsoft.work/ldt-online-course/enroll-and-price/how-to-change-course-visibility.md)
