Shop / e-Commerce Integration

Hikashop profile Plugin

  • Graham
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 day ago #1 by Graham
Hikashop profile Plugin was created by Graham
Hi After installing Hikashop profile when purchasing items through hikashop step 4 takes too long and often give a 500 error.

I have installed the current version plg_joomdlehikashopprofile_v1.0.3

Any idea what could be causing this? I would guess at mail as when it completes i receive the triggered emails straight away.
When enabled step 4 takes over 70 seconds, when disabled it takes less then 10 but i need to profile syncing capability.

Thanks in advanced

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

More
9 years 1 day ago #2 by Antonio Durán
Replied by Antonio Durán on topic Hikashop profile Plugin
Hi.

It seems the problem is coming from the user sync action, so to try to get more info you can do a test: with one user that you already tested a purchase, just go to joomla backend->users, edit the user, and save it.
Check if takes long time, or even shows error.

Do you have many mappings? Which fields are you mapping?

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

  • Graham
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 11 months ago #3 by Graham
Replied by Graham on topic Hikashop profile Plugin
After changing the username in joomla the change was taken by hikashop but not in moodle.

The mappings that are in use are

Joomla field Moodle field
7 hikashop- address_country ---> country
6 hikashop address_telephone ---> phone2
5 hikashop address_city ---> city
8 hikashop address_firstname ---> firstname
9 hikashop address_lastname ---> lastname
10 hikashop address_company ---> institution

Another oddity is that when you try and login with the user it takes the login to a 404 error it directs the user to domain.com/httpsdomain.comemoodledirectory
This would normally be domain.com/moodledirectory . In this case the authentication method is joomdle.

If i then direct back to the moodle instance the user is logged in, If i change the authentication method on the account to a manual account this does not happen.

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

More
8 years 11 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Hikashop profile Plugin
> After changing the username in joomla the change was taken by hikashop but not in moodle.

Are you running Joomdle latest version in both Joomla and Moodle? Support for username changing was added recently.

> Another oddity is that when you try and login with the user it takes the login to a 404 error it directs the user to domain.com/httpsdomain.comemoodledirectory

Same question here about Joomdle version :)

As for Hikashop: did you try just saving a user in backend as I suggested?

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

  • Graham
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 11 months ago #5 by Graham
Replied by Graham on topic Hikashop profile Plugin
I am running the latest version of both joomla 3.7.0, and moodle 3.2.3.

I have tried saving in the backend (hikashop doesn't let you change user details), but when changed in joomla it only changes the details in hikashop and not in moodle.

The joomdle version is 1.1.2.
Login problem when the user has joomdle authentication only. Can you think what could cause this?

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

More
8 years 11 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Hikashop profile Plugin
> have tried saving in the backend (hikashop doesn't let you change user details), but when changed in joomla it only changes the details in hikashop and not in moodle.

But is it slow and/or times out?
If the problem is related to the joomdleprofile plugin, it should be noticeable when saving users, as it does the same function there.

As for redirect after login: is that after login from Moodle or Joomla?

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

  • Graham
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 11 months ago - 8 years 11 months ago #7 by Graham
Replied by Graham on topic Hikashop profile Plugin
When you change a user in joomla backend the save isn't slow or causing a error. but the change is not being passed on to moodle. I'm not sure if the registration error was to do with hikashop VAT check and php7- I will do some testing. Changing a user in moodle does get passed back to joomla though.

The redirect after login is when users login to moodle directly. It is logging them in as if you then go to the moodle site (a second time) after being redirected, the user is logged in.
Last edit: 8 years 11 months ago by Graham.

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

More
8 years 11 months ago #8 by Antonio Durán
Replied by Antonio Durán on topic Hikashop profile Plugin
Ok, I will wait for more info on the hikashop issue.

> but the change is not being passed on to moodle

If you create a new user in joomla backend, is it created in Moodle?
If you change a user's email, does it change in moodle?

> The redirect after login is when users login to moodle directly

Thanks for the info. I could now try and replicate the problem. A fix will be included in next release. If you want, you can do the change yourself now, as it is small.
File: components/com_joomdle/controller.php
Function: login ()
Change:
Code:
$login_data = $this->input->get('data'); $wantsurl = $this->input->get('wantsurl');
By:
Code:
$login_data = $this->input->get('data', '', 'string'); $wantsurl = $this->input->get('wantsurl', '', 'string');

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

  • Graham
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 11 months ago #9 by Graham
Replied by Graham on topic Hikashop profile Plugin
Thanks for that - The login is now working correctly. I will let you know how the other gets on when i get chance to test

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