- Posts: 5
Exportar categorias de moodle al VirtueMart
- jon
- Topic Author
- Offline
- New Member
-
Less
More
13 years 6 months ago #1
by jon
Exportar categorias de moodle al VirtueMart was created by jon
Hola buenas:
Tengo instalado un Moodle con cursos divididos en categorias y el Joomla de puente para el Joomdle pero ahora he instalado el VirtueMart y no pasan las categorias de los cursos.
Se ha pasado los usuarios, cursos pero no las categorias.
Gracias y Un Cordial Saludo
PD: Espero respuesta rapido. Gracias
Tengo instalado un Moodle con cursos divididos en categorias y el Joomla de puente para el Joomdle pero ahora he instalado el VirtueMart y no pasan las categorias de los cursos.
Se ha pasado los usuarios, cursos pero no las categorias.
Gracias y Un Cordial Saludo
PD: Espero respuesta rapido. Gracias
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
13 years 6 months ago #2
by Chris
Replied by Chris on topic Exportar categorias de moodle al VirtueMart
Did you configure Joomdle with a VM category ID?
You can only specify one category in VM to move the courses into. Once you have exported the courses from Moodle to Joomla, you can edit the VM courses and give them a new category ID.
You can only specify one category in VM to move the courses into. Once you have exported the courses from Moodle to Joomla, you can edit the VM courses and give them a new category ID.
Please Log in or Create an account to join the conversation.
- jon
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
13 years 6 months ago #3
by jon
Replied by jon on topic Exportar categorias de moodle al VirtueMart
yes but the I want is the same categories pass the moodle to VM. I know that it have flange to display the categories of Moodle with Joomlet but this not import VM this is the problem.
I think do some triggers or type when insert, update or delete some categorie in Moodle do it the same in the other DataBase.
Another solution pleasee!!!!
Thanks!!!!
I think do some triggers or type when insert, update or delete some categorie in Moodle do it the same in the other DataBase.
Another solution pleasee!!!!
Thanks!!!!
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
13 years 6 months ago #4
by Chris
Replied by Chris on topic Exportar categorias de moodle al VirtueMart
Sorry I dont quite understand your response.
1) You say you understand that VM categories need to be only 1?
2) You still want a solution to have multiple VM categories?
If my 1 & 2 are correct, at this moment Joomdle maps all moodle courses into one VM category. You can manually change the product categories or copy the product to another category if you wish.
There is no other solution at this time unless you program one. Alternatively you could sponsor the development to provide this function.
1) You say you understand that VM categories need to be only 1?
2) You still want a solution to have multiple VM categories?
If my 1 & 2 are correct, at this moment Joomdle maps all moodle courses into one VM category. You can manually change the product categories or copy the product to another category if you wish.
There is no other solution at this time unless you program one. Alternatively you could sponsor the development to provide this function.
Please Log in or Create an account to join the conversation.
- jon
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
13 years 6 months ago #5
by jon
Replied by jon on topic Exportar categorias de moodle al VirtueMart
Entonces se podrÃa hacer por triggers a la BD.
Como serÃa en caso de afirmativo? Es que he probado de está forma y ahora al crear una categorÃa en moodle falla el moodle y en su caso el VM no le llega el Trigger.
Además ya se que habrÃa que hacer en total 6 triggers (insercción de categoria, modificación categoria, eliminación de categoria, inserccion de nuevo curso, modificación de curso y eliminacion del curso).
create trigger Nueva_Categoria AFTER INSERT
insert into campusiej.vmabn_virtuemart_categories_es_es (virtuemart_category_id, category_name)
values ( mdl_course_categories.id, mdl_course_categories.name);
Gracias!
Como serÃa en caso de afirmativo? Es que he probado de está forma y ahora al crear una categorÃa en moodle falla el moodle y en su caso el VM no le llega el Trigger.
Además ya se que habrÃa que hacer en total 6 triggers (insercción de categoria, modificación categoria, eliminación de categoria, inserccion de nuevo curso, modificación de curso y eliminacion del curso).
create trigger Nueva_Categoria AFTER INSERT
insert into campusiej.vmabn_virtuemart_categories_es_es (virtuemart_category_id, category_name)
values ( mdl_course_categories.id, mdl_course_categories.name);
Gracias!
Please Log in or Create an account to join the conversation.