(auto)Subscribe during Joomla registration - Plug

  • Posts: 13
  • Thank you received: 0
12 years 1 month ago #69301

Hi,

I'm currently using Joomla 2.5.7 with hikashop 1.6 and ACYMailing 3.9 with the (auto)Subscribe during Joomla registration plugin.
My problem is the following: when the user registers through the Hikashop registration the user information is passed to acy mailing as intended - the only thing is the value for both firstname and lastname end up in the name(in this case lasname) field.I circled the fields in the attachment . Also no values for title are passed. Fields where it's displayed correctly are from users registering through the newsletter registration.

I have the same thread posted on the acymailing page www.acyba.com/en/forum/5-how-to/40630-au...ues-wrong.html#40670

Could you tell me where the hikashop registration defines the values from the registration fields before they are passed to acymailing? There should be a function that combines the first and the last name into one string because in the regacymailing.php file they are already one string.

Thanks in advance,

Regards Paul

Attachments:

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #69351

Hi,

As Adrien said on the AcyMailing forum, you will have to modify the code of the (auto)Subscribe during Joomla registration plugin of AcyMailing in order to use the address values from HikaShop like you want.

You can use that code to get the address data of the user:

if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true;
$userClass = hikashop_get('class.user');
$userData = $userClass->get($user['id'],'cms');
$addressClass = hikashop_get('class.address');
$addresses=$addressClass->loadUserAddresses($hikashop_user_id);

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

  • Posts: 13
  • Thank you received: 0
12 years 1 month ago #69361

Thanks for your support but when I output $addresses I always get 'array(0) { }' or 'Array'.

Anyway I think i need to try a different approach because the values are passed by the registration to the database and there the name first-and lastname values are written into one field .

So I guessed that I need to just seperate the values before they are passed to the database. Do you know in what file and line the registration does that?

Thanks in advance !

Paul

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #69365

That's done in the file administrator/components/com_hikashop/classes/user.php in the register function.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum