Hello, the Course Duration on the individual course listing page is not showing correctly. It always says "10:00:00"
Please see image in hidden link.
Hello, the Course Duration on the individual course listing page is not showing correctly. It always says "10:00:00"
Please see image in hidden link.
Hello Carl B Parker
Which template are you using? Please share the page link for checking the issue.
Best regards
It's Language School Template. Did you download the image I sent a link to? Putting direct link in hidden asset.
It shows the lesson video duration of that course. Please change your lesson video duration and you will see the changes. It is 10:00:00 because by default the lesson video duration is set to it.
This makes no sense. There is no place to change that (video duration) as a parameter. All there is is a "Video URL" which is pointless if I'm not using a video. Are you forcing us to use videos for every Course description? If we don't, it will display some misleading time on the page under "course duration"? This looks like it's only meant to service on-line classes which is useless in many applications.
Hello, I need a real answer to this. so far it's a definite bug in the component and I'd like it fixed.
You have given me no way to change the "Course Duration" value which is some random video duration value that I have no access too. It's making me publish infomration on my site which is confusing, wrong and meaningless. All you do is tell me to change and value (Lesson Video Duration) that does not exist. Really?
Offer a real solution to this please. It's your product. Noone else can fix it. I've already paid people to fix other stuff you stone-wall paying customers on. Fixing this bug to pull information from the ACTUAL "Course Duration" field in the back end would be a good start.
Burying heads in sand does not make a problem go away.
Apology for the delayed response.
Carl B Parker
I went to:
/components/com_splms/models
course.php
And commented out
// Duration
$query->select("CASE WHEN lessonsDuration.timeSum IS NULL THEN '00:00:00' ELSE lessonsDuration.timeSum END as duration")
->join('LEFT', '( SELECT b.course_id, SEC_TO_TIME( ROUND( SUM( TIME_TO_SEC(b.video_duration) ) ) ) AS timeSum FROM #__splms_lessons b WHERE b.published = 1 GROUP By b.course_id) AS lessonsDuration ON a.id = lessonsDuration.course_id');
And it seems to work