Skip Navigation

[Resolved] Create courses similar to Toolset

This thread is resolved. Here is a description of the problem and solution.

Problem:

I want to create courses similar to toolset courses, but the content should be accessible only to registered members.

if people browse the course and find it interesting, then they would have to pay (how would I do that, with woocomerce?).

Solution:

Here are my suggestions:

https://toolset.com/forums/topic/create-courses-similar-to-toolset/#post-2095415

Relevant Documentation:

https://toolset.com/documentation/programmer-reference/views/views-shortcodes/item-attribute/

This support ticket is created 3 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by kemalS-2 3 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#2095213

Hello,

I want to create courses similar to toolset courses, but the content should be accessible only to registered members.

My general question is which of the courses offered by Toolset is the right one to learn how things get done.

The idea would be to lock the course on chapter 3, if people browse the course and find it interesting, then they would have to pay (how would I do that, with woocomerce?).

I guess this is the way -> https://toolset.com/course/wordpress-membership-sites/ and then lock the course with the access plugin?

Whats the best aproach to create the courses? CPT?

#2095415

Hello,

Here are my suggestions:
1) Create two custom post types:
- Course
- Purchase

2) Setup one-to-many relationship between above post types "Course" and "Purchase"

3) Setup a post form for creating new "Purchase" post, after user submit this post form, charge him with Woocommerce:
https://toolset.com/course-lesson/charge-users-for-submitting-content/

4) Create a content template, for example "course-viewable", display the Course post information

5) In the single "Course" post, create a post view:
- Query "Purchase" posts
- Filter by:
a) Post author is same as logged in user
https://toolset.com/documentation/user-guides/views/filtering-views-query-by-author/
b) Post type relationship between "Course" and "Purchase"
https://toolset.com/course-lesson/displaying-related-posts/
- In view's loop
if there is any result found, display the content template (step 4) with item="$current_page" attribute:
$current_page is used to retrieve data from the current page being rendered. It can be used inside a View loop to obtain data from the page on which the View is being rendered.
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/item-attribute/
If there isn't any result found, display the post form link of step 3)
https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/

#2096221

My issue is resolved now. Thank you!