diff --git a/NP_Custom_Templates/customer_templates/Stripe/_courses_partnertraining_index.html.liquid b/NP_Custom_Templates/customer_templates/Stripe/_courses_partnertraining_index.html.liquid index c62ede62..130e153b 100644 --- a/NP_Custom_Templates/customer_templates/Stripe/_courses_partnertraining_index.html.liquid +++ b/NP_Custom_Templates/customer_templates/Stripe/_courses_partnertraining_index.html.liquid @@ -102,17 +102,24 @@ {% comment %} In Progress courses {% endcomment %} {% if courses_in_progress.size > 0 %} {% for course in courses_in_progress %} - {% include "cards_course", course: course, card_classes: "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %} + {% for category in course.categories %} + {% if category.name == 'Partner Training'%} + {% include "cards_course", course: course, card_classes: "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %} + {% endif %} + {% endfor %} {% endfor %} {% endif %} {% comment %} Enrolled courses {% endcomment %} {% if courses_enrolled.size > 0 %} {% for course in courses_enrolled %} - {% include "cards_course", course: course, card_classes: "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %} + {% for category in course.categories %} + {% if category.name == 'Partner Training'%} + {% include "cards_course", course: course, card_classes: "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %} + {% endif %} + {% endfor %} {% endfor %} {% endif %} - {% endif %} @@ -123,7 +130,11 @@