- Posts: 6
Shop / e-Commerce Integration
automatic course adding with virtuemart
- Fabien J
- Topic Author
- Offline
- New Member
-
Less
More
12 years 6 months ago #1
by Fabien J
automatic course adding with virtuemart was created by Fabien J
Hello,
I've installed joomdle 0.92 with virtuemart 2 on my joomla 2.5 and moodle 2.5.2+.
All seem to be well configured, I've added courses in my virtuemart using joomdle. I've registered and bougth the course using paypal in sandbox mode. The user is created in joomla and is also identified in moodle.
But, the courses is not added for the user that cannot access it in moodle. The courses is listed in the virtuemart order.
So, when the paypal works, before redirecting to website, there is a notification to joomla with following logs. I think that Cache warning is not related to my issue.
The others are strange for me.
Thank you for your help.
Oct 21 22:23:59 main httpd: PHP Strict Standards: Declaration of JCacheControllerPage::store() should be compatible with JCacheController::store($data, $id, $group = NULL) in /var/www/html/libraries/loader.php on line 332
Oct 21 22:23:59 main httpd: PHP Strict Standards: Declaration of JParameter::loadSetupFile() should be compatible with JRegistry::loadSetupFile() in /var/www/html/administrator/components/com_virtuemart/plugins/vmplugin.php on line 75
Oct 21 22:23:59 main httpd: PHP Strict Standards: Declaration of plgVMPaymentPayzen::emptyCart() should be compatible with vmPSPlugin::emptyCart($session_id = NULL, $order_number = NULL) in /var/www/html/libraries/joomla/plugin/helper.php on line 171
Oct 21 22:23:59 main httpd: PHP Strict Standards: Declaration of plgVMPaymentSystempay::emptyCart() should be compatible with vmPSPlugin::emptyCart($session_id = NULL, $order_number = NULL) in /var/www/html/libraries/joomla/plugin/helper.php on line 171
Oct 21 22:23:59 main httpd: PHP Notice: Undefined index: ipn_test in /var/www/html/plugins/vmpayment/paypal/paypal.php on line 618
Oct 21 22:24:01 main httpd: PHP Strict Standards: Declaration of TableUserfields::check() should be compatible with VmTable::check() in /var/www/html/libraries/joomla/database/table.php on line 175
Oct 21 22:24:01 main httpd: PHP Strict Standards: Declaration of TableUserfields::checkAndDelete() should be compatible with VmTable::checkAndDelete($table, $whereField = 0, $andWhere = '') in /var/www/html/libraries/joomla/database/table.php on line 175
Oct 21 22:24:01 main httpd: PHP Strict Standards: Declaration of VirtueMartModelMedia::store() should be compatible with VmModel::store(&$data) in /var/www/html/administrator/components/com_virtuemart/helpers/vmmodel.php on line 85
Oct 21 22:24:01 main httpd: PHP Strict Standards: Only variables should be assigned by reference in /var/www/html/administrator/components/com_virtuemart/models/media.php on line 80
Oct 21 22:24:02 main httpd: PHP Strict Standards: Non-static method shopFunctionsF::getMenuItemId() should not be called statically, assuming $this from incompatible context in /var/www/html/components/com_virtuemart/views/invoice/tmpl/invoice_items.php on line 49
Oct 21 22:24:02 main httpd: PHP Strict Standards: Only variables should be assigned by reference in /var/www/html/administrator/components/com_virtuemart/models/media.php on line 80
Oct 21 22:24:02 main httpd: PHP Strict Standards: Non-static method shopFunctionsF::getMenuItemId() should not be called statically, assuming $this from incompatible context in /var/www/html/components/com_virtuemart/views/invoice/tmpl/invoice_items.php on line 49
I've installed joomdle 0.92 with virtuemart 2 on my joomla 2.5 and moodle 2.5.2+.
All seem to be well configured, I've added courses in my virtuemart using joomdle. I've registered and bougth the course using paypal in sandbox mode. The user is created in joomla and is also identified in moodle.
But, the courses is not added for the user that cannot access it in moodle. The courses is listed in the virtuemart order.
So, when the paypal works, before redirecting to website, there is a notification to joomla with following logs. I think that Cache warning is not related to my issue.
The others are strange for me.
Thank you for your help.
Oct 21 22:23:59 main httpd: PHP Strict Standards: Declaration of JCacheControllerPage::store() should be compatible with JCacheController::store($data, $id, $group = NULL) in /var/www/html/libraries/loader.php on line 332
Oct 21 22:23:59 main httpd: PHP Strict Standards: Declaration of JParameter::loadSetupFile() should be compatible with JRegistry::loadSetupFile() in /var/www/html/administrator/components/com_virtuemart/plugins/vmplugin.php on line 75
Oct 21 22:23:59 main httpd: PHP Strict Standards: Declaration of plgVMPaymentPayzen::emptyCart() should be compatible with vmPSPlugin::emptyCart($session_id = NULL, $order_number = NULL) in /var/www/html/libraries/joomla/plugin/helper.php on line 171
Oct 21 22:23:59 main httpd: PHP Strict Standards: Declaration of plgVMPaymentSystempay::emptyCart() should be compatible with vmPSPlugin::emptyCart($session_id = NULL, $order_number = NULL) in /var/www/html/libraries/joomla/plugin/helper.php on line 171
Oct 21 22:23:59 main httpd: PHP Notice: Undefined index: ipn_test in /var/www/html/plugins/vmpayment/paypal/paypal.php on line 618
Oct 21 22:24:01 main httpd: PHP Strict Standards: Declaration of TableUserfields::check() should be compatible with VmTable::check() in /var/www/html/libraries/joomla/database/table.php on line 175
Oct 21 22:24:01 main httpd: PHP Strict Standards: Declaration of TableUserfields::checkAndDelete() should be compatible with VmTable::checkAndDelete($table, $whereField = 0, $andWhere = '') in /var/www/html/libraries/joomla/database/table.php on line 175
Oct 21 22:24:01 main httpd: PHP Strict Standards: Declaration of VirtueMartModelMedia::store() should be compatible with VmModel::store(&$data) in /var/www/html/administrator/components/com_virtuemart/helpers/vmmodel.php on line 85
Oct 21 22:24:01 main httpd: PHP Strict Standards: Only variables should be assigned by reference in /var/www/html/administrator/components/com_virtuemart/models/media.php on line 80
Oct 21 22:24:02 main httpd: PHP Strict Standards: Non-static method shopFunctionsF::getMenuItemId() should not be called statically, assuming $this from incompatible context in /var/www/html/components/com_virtuemart/views/invoice/tmpl/invoice_items.php on line 49
Oct 21 22:24:02 main httpd: PHP Strict Standards: Only variables should be assigned by reference in /var/www/html/administrator/components/com_virtuemart/models/media.php on line 80
Oct 21 22:24:02 main httpd: PHP Strict Standards: Non-static method shopFunctionsF::getMenuItemId() should not be called statically, assuming $this from incompatible context in /var/www/html/components/com_virtuemart/views/invoice/tmpl/invoice_items.php on line 49
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
12 years 6 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic automatic course adding with virtuemart
You should disable strict standards in your php configuration.
I don't know if that is causing the problem, but you have lots of log from that.
I don't know if that is causing the problem, but you have lots of log from that.
Please Log in or Create an account to join the conversation.
- Fabien J
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
12 years 6 months ago #3
by Fabien J
Replied by Fabien J on topic automatic course adding with virtuemart
Hello, these are onlys logs and should not change behaviour.
I've disabled theses logs (notice and strict standards), but the problem still appears (I've retested)
Thanks.
I've disabled theses logs (notice and strict standards), but the problem still appears (I've retested)
Thanks.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
12 years 6 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic automatic course adding with virtuemart
Then, re-check that the order is being confirmed in VM, plugin is enabled, category is well set....
Please Log in or Create an account to join the conversation.
- Fabien J
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
12 years 5 months ago #5
by Fabien J
Replied by Fabien J on topic automatic course adding with virtuemart
Hello,
I've checked and everything seems to be right.
So, here are my settings:
I've a course with product that is REEE.
The course enrollment method settings are:
- allow joodmle = yes
- enrol cost = 0
- currency = Euro
- assign role: student
- period, start date and end date are disabled.
In virtuemart, I've a category with Id = 1 that is published.
In this category, I've a product (id=1) that is generated by joomdle importing my course. This product is features and published.
In Moodle > Site admin > plugins > Enrollments > Enrol. Plugin Mngt:
- joomdle is first in the list
- joomdle parameters is same as before:
- allow joodmle enrolments = Yes, Cost = 0, Curency = 0, message = BUY_COURSE_URL, Default role = Student, Enrol period = 0.
In joomla, datasource = virtuemart 2, shop integration = virtuemart 2, course category = 1.
So, when I buy the course, I receive the email that confirms my order is well done, but the product is not set.
I've made a new test by creating new empty course (with Id and price), and publishing it in the same category in virtuemart. That does not work since I remove anonymous access to enrollment methods en this course. There is a link to product page in joomla/virtuemart.
So can you help me to discover the issue ?
Can you also explain me where the id of the course is stored in the product record of virtuemart ?
Thanks.
I've checked and everything seems to be right.
So, here are my settings:
I've a course with product that is REEE.
The course enrollment method settings are:
- allow joodmle = yes
- enrol cost = 0
- currency = Euro
- assign role: student
- period, start date and end date are disabled.
In virtuemart, I've a category with Id = 1 that is published.
In this category, I've a product (id=1) that is generated by joomdle importing my course. This product is features and published.
In Moodle > Site admin > plugins > Enrollments > Enrol. Plugin Mngt:
- joomdle is first in the list
- joomdle parameters is same as before:
- allow joodmle enrolments = Yes, Cost = 0, Curency = 0, message = BUY_COURSE_URL, Default role = Student, Enrol period = 0.
In joomla, datasource = virtuemart 2, shop integration = virtuemart 2, course category = 1.
So, when I buy the course, I receive the email that confirms my order is well done, but the product is not set.
I've made a new test by creating new empty course (with Id and price), and publishing it in the same category in virtuemart. That does not work since I remove anonymous access to enrollment methods en this course. There is a link to product page in joomla/virtuemart.
So can you help me to discover the issue ?
Can you also explain me where the id of the course is stored in the product record of virtuemart ?
Thanks.
Please Log in or Create an account to join the conversation.
- Fabien J
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
12 years 5 months ago #6
by Fabien J
Replied by Fabien J on topic automatic course adding with virtuemart
Another question:
can you tell me wich code page is used as payment callback and should call joomdle moodle services to apply enrollment.
Perhaps should I go into debugging code ?
Thanks you.
can you tell me wich code page is used as payment callback and should call joomdle moodle services to apply enrollment.
Perhaps should I go into debugging code ?
Thanks you.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
12 years 5 months ago #7
by Antonio Durán
Replied by Antonio Durán on topic automatic course adding with virtuemart
You don't say if order is confirmed in VM...aside from that, I can't think of anything else from here.
Course id is stored in product SKU.
If free enrolments work fine from Joomdle, I don't think there is a problem there. Anyway, it's quite complicated to debug Joomdle code, as it used web services.
Course id is stored in product SKU.
If free enrolments work fine from Joomdle, I don't think there is a problem there. Anyway, it's quite complicated to debug Joomdle code, as it used web services.
Please Log in or Create an account to join the conversation.
- Fabien J
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
12 years 5 months ago #8
by Fabien J
Replied by Fabien J on topic automatic course adding with virtuemart
I've seen something "strange" in your text compared to my settings:
you say "If free enrolments work fine from Joomdle [...]".
Do you mean that I need that moodle free enrollments are set for courses that are in the shop ?
I've disabled these enrollements since I do not want that custumer subscribe freely to courses and since I need that the shop make enrollment on order confirm event.
Am I right ?
you say "If free enrolments work fine from Joomdle [...]".
Do you mean that I need that moodle free enrollments are set for courses that are in the shop ?
I've disabled these enrollements since I do not want that custumer subscribe freely to courses and since I need that the shop make enrollment on order confirm event.
Am I right ?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
12 years 5 months ago #9
by Antonio Durán
Replied by Antonio Durán on topic automatic course adding with virtuemart
No, that's not what I said. I meant that you should test normal/free enrolments first.
Anyway, what you should have enabled is the manual enrol plugin for the course.
Anyway, what you should have enabled is the manual enrol plugin for the course.
Please Log in or Create an account to join the conversation.
- Fabien J
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
12 years 5 months ago #10
by Fabien J
Replied by Fabien J on topic automatic course adding with virtuemart
I've retested: serl enrollment works well.
Manuel enrollment and joomdle enrollment are enabled.
I'm really blocked with this feature and I've no idea of what is bad configured.
If I give you an admin access on my test env, do you think you can have a look on what's wrong ?
If you agree, can you give me a private mail address to send you login/pass ?
Thanks.
Manuel enrollment and joomdle enrollment are enabled.
I'm really blocked with this feature and I've no idea of what is bad configured.
If I give you an admin access on my test env, do you think you can have a look on what's wrong ?
If you agree, can you give me a private mail address to send you login/pass ?
Thanks.
Please Log in or Create an account to join the conversation.