Okay
  Public Ticket #3498037
View of courses by student category
Closed

Comments

  •  1
    Bruno started the conversation

    Hello everything is fine?

    I received the following request from my client: I would like to have specific training by student category.

    For example, students in the waiter category will only be able to view courses for waiters.

    How can I do this?

    Attached files:  Captura de Tela 2023-10-13 às 16.04.43.png

  •  390
    Ripul replied

    This is possible but it will onyl work for logged in users, so the course directory inside the app .

    We already have this function in WPLMS Batches but it requires you to connect the courses manually.

    Every batch has a setting, to allow users to only see courses from their batch only.

    now, if you're not using batches and think that batches is an overkill we can give you a code snippet to enable this.

  •  1
    Bruno replied

    Could you provide me with the code and explain how I can implement this? It's simple?

  •  390
    Ripul replied

    ok, so my query would be how to connect the student to the category,

    a. PRofile field - Course category connection ? 

    b. Member type - course cateogry connection

    based on above I can share code with you.

  •  1
    Bruno replied

    I could not understand. Could you explain me better?

  •  390
    Ripul replied

    How are you deciding which student should see which category what is the parameter to detect student - category connection.

  •  1
    Bruno replied

    The parameter that will be used is the student category with the course category. Is it possible to do it this way?

    What I don't know and don't understand how to do is this relationship of categories.

  •  390
    Ripul replied

    It is possible,

    so here's what you need to do :

    Find a way to connect student with category :

    one example :

    1. Create a profile field, say department

    2. This should be of type select

    3. Enter the values of this department field which match with the category.

    --

    now, based on this paramter in the course directory fetch courses filter we can show only courses connected with the department.

    Let me know if that helps.