Feature #7272
Extend buy_course plugin to include sessions
Description
The current buy_courses plugin provides the possibility to sell courses, but it doesn't handle sessions at all.
The current plugin_buy_course table contains only the course_id and code, so it is impossible, at this point, to just extend it to sessions without a database modification. However, considering it is a plugin, the database structure can be changed to include a session_id field.
- extend the database and sales logic to allow someone to buy access to a session instead of a course (you can buy a course or a session, but not a specific course inside a specific session)
- add a plugin configuration setting to "include sessions"
- extend the admin's list of courses (in the page to configure the price for each) to include sessions
- extend the final user's (student) list to show sessions as well as courses
Files
Related issues
Associated revisions
Extend buy_course plugin to include sessions - refs #7272
Minor - Fix typo - refs #7272
Fix many coding style issues, warnings and notice messages. Test and working. Please, DO NOT consider this as a minor commit - refs #7272
Minor - Remove an extra trailing semicolon and add a couple of comments - refs #7272
Additional changes to course purchase plugin - refs #7272
Fix SQL injection threats and replace SESSION variable with api_get_user_id - refs #7272
Merge @aragonc style improvements and add French translation - refs #7272
If user has only one option to choose from buy courses menu, redirect it there - refs #7272
Fix. Replace a pair of id_user with user_id - refs #7272
Add manageTab function to plugin main class - refs #7272
Conflict solved when merging - refs #7272
Minor - Remove a useless commented line - refs #7272
Add comments. Fix french translation. Change redirection process to a much cleaner one. - refs #7272
Fix manageTab issue when changing language - refs #7272
[Fix] Custom tab titles are now translated. Translations must be in trad4all - refs #7272
Minor - Add comment - refs #7272
History
Updated by Yannick Warnier about 5 years ago
- Complexity changed from Normal to Difficult
- SCRUM pts - complexity changed from ? to 20
Updated by Alex Aragon about 5 years ago
Necesitare capturas de pantallas y descripción del comportamiento para ver la UI del Plugins.
Updated by Imanol Losada about 5 years ago
- Status changed from Assigned to Needs testing
- Assignee changed from Imanol Losada to Yannick Warnier
- % Done changed from 0 to 70
Updated by Imanol Losada about 5 years ago
- File 1-EnablePlugin.png 1-EnablePlugin.png added
- File 2-BuyCourseTab.png 2-BuyCourseTab.png added
- File 3-PluginConfig.png 3-PluginConfig.png added
- File 4-PluginMenu.png 4-PluginMenu.png added
- File 5-SetCourses.png 5-SetCourses.png added
- File 6-SetSessions.png 6-SetSessions.png added
- File 7-PaymentConfig.png 7-PaymentConfig.png added
- File 8-PendingOrders.png 8-PendingOrders.png added
Alex Aragon wrote:
Necesitare capturas de pantallas y descripción del comportamiento para ver la UI del Plugins.
Updated by Imanol Losada about 5 years ago
- File 9-ListCourses.png 9-ListCourses.png added
- File 10-BuyCourse.png 10-BuyCourse.png added
- File 11-PayPalCourse.png 11-PayPalCourse.png added
- File 12-CourseConfirm.png 12-CourseConfirm.png added
- File 13-CourseFinished.png 13-CourseFinished.png added
- File 14-ListSessions.png 14-ListSessions.png added
- File 15-BuySession.png 15-BuySession.png added
- File 16-PayPalSession.png 16-PayPalSession.png added
- File 17-SessionConfirm.png 17-SessionConfirm.png added
- File 18-SessionFinished.png 18-SessionFinished.png added
Alex Aragon wrote:
Necesitare capturas de pantallas y descripción del comportamiento para ver la UI del Plugins.
Updated by Alex Aragon about 5 years ago
Me he descargado la rama para una instalación y configuración en local para pruebas de usabilidad del plugin
Updated by Yannick Warnier about 5 years ago
- Status changed from Needs testing to Feature implemented
- Assignee changed from Yannick Warnier to Imanol Losada
The update PR for the plugin code has been merged into 1.9.x.
Alex, has podido revisarlo? Voy a cerrar esta tarea, pero si necesitas aplicar cambios, me avisas para ver si abrimos otra o si los agregamos aquí.
Updated by Alex Aragon about 5 years ago
Estaba revisando el plugin, y no me agrada como se muestra las opciones, deberia ser en forma de menú.
y no llama al estilo active cuando se encuentra seleccionado el menú.
Updated by Alex Aragon about 5 years ago
Iconos para presentar mejor la parte anterior de la imagen con estos iconos así como al momento de crear un curso sale 4 opciones...
Updated by Yannick Warnier about 5 years ago
- Status changed from Feature implemented to Assigned
- Assignee changed from Imanol Losada to Alex Aragon
Iconos OK por mi.
Alex ha dicho que iba a terminar esto.
Updated by Alex Aragon about 5 years ago
- File icon_buy.png icon_buy.png added
Ultimos retoques para los iconos para el plugin by course
Updated by Yannick Warnier about 5 years ago
Alex, tienes una rama con estos cambios?
Quiero cerrar esta tarea, pero necesito los iconos en todos los formatos y el cambio de CSS.
Updated by Alex Aragon about 5 years ago
Enviado mi pull resquest con los cambios.
https://github.com/chamilo/chamilo-lms/pull/392
Queda pendiente la opción de listar la lista de cursos apenas el usuario le da clic en Comprar cursos, ya que solo muestra una opción y no tiene sentido añadir un paso adicional dando clic en el carrito de compras, eso debe ser solo para el administrador con sus 4 opciones de configuración
Updated by Yannick Warnier about 5 years ago
- Assignee changed from Alex Aragon to Imanol Losada
Volviendo a asignar a Imanol para hacer un redirect en el caso del usuario final (para que no vea la lista de opciones) y añadir una opción para no mostrar la pestaña de "Buy courses" en la barra azul de menú principal.
Ya casi terminamos!
Updated by Imanol Losada about 5 years ago
- Assignee changed from Imanol Losada to Yannick Warnier
Updated by Yannick Warnier about 5 years ago
- Status changed from Assigned to Needs testing
- Assignee deleted (
Yannick Warnier) - % Done changed from 70 to 90
Everything has been merged. We only need functional testing now.
Updated by Yannick Warnier about 5 years ago
- Status changed from Needs testing to Feature implemented
- Assignee set to Imanol Losada
- % Done changed from 90 to 100
Verified. There's only one minor issue in the tabs system: it checks for the term in a specific language.
For example, if I install the plugin in English, enable the tab, and then switch to Spanish and try to disable the tab, it doesn't work, and then it adds a tab in Spanish. I have to disable the tab in the specific language in which I enabled it.
I'm closing this issue as the feature has been developed and the tab activation has been added as an extension of the original task itself.
Updated by Imanol Losada about 5 years ago
- Assignee changed from Imanol Losada to Yannick Warnier
Extend buy_course plugin to include sessions (session mailing not done yet) - refs #7272