Exportar categorias de moodle al VirtueMart

More
13 years 6 months ago #1 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

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #2 by Chris
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.

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #3 by jon
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!!!!

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #4 by Chris
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.

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #5 by jon
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!

Please Log in or Create an account to join the conversation.