- Posts: 84
Shop / e-Commerce Integration
Hikashop order sync slow
- Jason E
-
Topic Author
- Offline
- Premium Member
-
Less
More
11 years 10 months ago #1
by Jason E
Hikashop order sync slow was created by Jason E
I have the most recent versions of Hikashop Business: 2.3.0 and CB 1.9 on Joomla 3.3 moodle 2.x
I have had a problem since I implemented it where orders seem to take a long time to process.
If an order is placed in hikashop, it can take 5 or 10 minutes before the course shows up for the user in joomdle my courses.
It appears that they are enrolled in moodle and the order is confirmed in hikashop.
I have been experimenting on the assumption that perhaps a user field might be missing when they purchase the course. But even after a user completes their whole profile sometimes it takes a long time or never shows up.
This is true for courses purchased by paypal or even gotten for free using a hikashop coupon.
Has this been seen before?
Thanks
I have had a problem since I implemented it where orders seem to take a long time to process.
If an order is placed in hikashop, it can take 5 or 10 minutes before the course shows up for the user in joomdle my courses.
It appears that they are enrolled in moodle and the order is confirmed in hikashop.
I have been experimenting on the assumption that perhaps a user field might be missing when they purchase the course. But even after a user completes their whole profile sometimes it takes a long time or never shows up.
This is true for courses purchased by paypal or even gotten for free using a hikashop coupon.
Has this been seen before?
Thanks
Please Log in or Create an account to join the conversation.
- Jason E
-
Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 84
11 years 10 months ago #2
by Jason E
Replied by Jason E on topic Hikashop order sync slow
I tried changing the moodle database so that there are no required fields (not null) in mdl_usr that didn't do anything.
It's really frustrating because the order is confirmed in hikashop and when I look in moodle, the user is enrolled, but they can not see their course from the joomla side. If I unenroll and enroll them, they can see it.
I have a minimal login for purchase, they only need a username and password to use hikashop to buy or register for a course. Which is why I suspected that the issue might happen when they try to enter a course without entering more fields in their profile. But even after they enter their profile it doesn't show up. But then some hours later it might show up.
If you have any advice on how I can figure out what is happening here I would appreciate it.
Thanks
It's really frustrating because the order is confirmed in hikashop and when I look in moodle, the user is enrolled, but they can not see their course from the joomla side. If I unenroll and enroll them, they can see it.
I have a minimal login for purchase, they only need a username and password to use hikashop to buy or register for a course. Which is why I suspected that the issue might happen when they try to enter a course without entering more fields in their profile. But even after they enter their profile it doesn't show up. But then some hours later it might show up.
If you have any advice on how I can figure out what is happening here I would appreciate it.
Thanks
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
11 years 10 months ago #3
by Antonio Durán
Replied by Antonio Durán on topic Hikashop order sync slow
Hi.
If you go to moodle enrolments in the course, you say user is enroled. Is enroled enabled? It seems it is making enrolments "in the future", so enrolment may be set to start some time later?
I have never seen a enrolment being made, and not appearing in "my courses".
If you go to moodle enrolments in the course, you say user is enroled. Is enroled enabled? It seems it is making enrolments "in the future", so enrolment may be set to start some time later?
I have never seen a enrolment being made, and not appearing in "my courses".
Please Log in or Create an account to join the conversation.
- Jason E
-
Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 84
11 years 10 months ago #4
by Jason E
Replied by Jason E on topic Hikashop order sync slow
Thanks for responding Antonio.
It was strange, If I unenrolled and re enrolled the user in moodle, it would show up.
After more testing, the course was showing up exactly one hour after enrollment.
Even though the user was enrolled in moodle, and the order was confirmed.
I was able to resolve this by setting both Joomla and Moodle to UTC time. So it had nothing to do with Hikashop.
I wonder if there is some restriction in Joomdle that prevents those courses from being visible? If a user were to log in to Moodle they would be there and moodle is showing up in a wrapper right?
I should have known because I had a similar issue in the past and deal with this kind of issue in my day job all the time. But I wasn't getting a clear description of the problem from the users and didn't have time to sit down and see what was happening.
Thanks again and I hope this post helps others who might find this issue.
It was strange, If I unenrolled and re enrolled the user in moodle, it would show up.
After more testing, the course was showing up exactly one hour after enrollment.
Even though the user was enrolled in moodle, and the order was confirmed.
I was able to resolve this by setting both Joomla and Moodle to UTC time. So it had nothing to do with Hikashop.
I wonder if there is some restriction in Joomdle that prevents those courses from being visible? If a user were to log in to Moodle they would be there and moodle is showing up in a wrapper right?
I should have known because I had a similar issue in the past and deal with this kind of issue in my day job all the time. But I wasn't getting a clear description of the problem from the users and didn't have time to sit down and see what was happening.
Thanks again and I hope this post helps others who might find this issue.
Please Log in or Create an account to join the conversation.
- Jason E
-
Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 84
11 years 10 months ago #5
by Jason E
Replied by Jason E on topic Hikashop order sync slow
It is a little painful to use UTC, because I can't see the time an order was placed or a user logged in without getting out my calculator.
I see similar issues in other systems where the software is looking for a time field in a database to show things from this time (now) and going back X hours or days. But the time in the database has not happened yet.
I'm surprised that this has not come up with other users, if it has not, maybe I have something set up wrong.
I see similar issues in other systems where the software is looking for a time field in a database to show things from this time (now) and going back X hours or days. But the time in the database has not happened yet.
I'm surprised that this has not come up with other users, if it has not, maybe I have something set up wrong.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
11 years 10 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic Hikashop order sync slow
Hi.
In fact this has happened to a client recently. I did not know it was your same problem, because you talked about minutes, instead of full hours.
The best solution I have found for this is to change timezone settings for the joomdle connector user. Doing that fixed the issues in a couple of installations I worked on.
In fact this has happened to a client recently. I did not know it was your same problem, because you talked about minutes, instead of full hours.
The best solution I have found for this is to change timezone settings for the joomdle connector user. Doing that fixed the issues in a couple of installations I worked on.
Please Log in or Create an account to join the conversation.