CB Mapping User Name

  • Posts: 241
  • Thank you received: 5
11 years 6 months ago #103230

I believe this may be a bug: Copying from How To Post:

OMG... MY heart has just sunk and I'm trying not to panic.

Basically, the code in the 2.1.2 administrator/components/com_hikashop/classes/user.php file is not mapping user names into community builder.

I have had hundreds (literally) of orders since using 2.1.2 which have come thru and the CB mapping is not working. This code here:

$fields = array('cbactivation','id','user_id','approved','confirmed');
		$values = array('\'\'',(int)$newUser->user_cms_id,(int)$newUser->user_cms_id,1,1);
		if(!empty($addressData->address_firstname)){
			$fields[]='firstname';
			$values[]=$this->database->Quote($addressData->address_firstname);
		}
		if(!empty($addressData->address_middle_name)){
			$fields[]='middlename';
			$values[]=$this->database->Quote($addressData->address_middle_name);
		}
		if(!empty($addressData->address_lastname)){
			$fields[]='lastname';
			$values[]=$this->database->Quote($addressData->address_lastname);
		}	
Any way to fix this retroactively? Also needs to work going forward. Please advise.

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

  • Posts: 241
  • Thank you received: 5
11 years 6 months ago #103237

I am digging a bit further and seeming to see the mapping issue to be a issue around "user group after purchase" not taking effect on free items.

Will explore further and report back in a hour or so.

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

  • Posts: 241
  • Thank you received: 5
11 years 6 months ago #103242

Ok that appears to be the issue. If users sign up for a free event (product), they are not added to the correct User group and therefore this is not a CB issue but a user group after purchase problem.

Sorry to confuse, but still needs fixing as we have many events we do for "free".

Thanks.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
11 years 6 months ago #103253

I recall such issue in an old version but that has been corrected since then as far as I know.
Basically, for the user group to be added to the user after the purchase, the order has to be confirmed.
If the order is confirmed and that the user group is not added to the user then either the HikaShop group plugin has been deactivated and the group has been unselected from the product at some point. If that's not the case, then maybe it is a new bug that we need to investigate in the user group plugin as no one else reported such issue.
If the order is not confirmed, then it means that the HikaShop validate free orders plugin has been deactivated. If that's not the case, then maybe it is a new bug that we need to investigate in thevalidate free order plugin as no one else reported such issue.

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

  • Posts: 241
  • Thank you received: 5
11 years 6 months ago #103326

Free orders are being confirmed, but the user is not being added to the appropriate user group.

The validate free orders plugin is active.

Looks to be a potential bug. Thanks.

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
11 years 6 months ago #103333

Hi,

I will try to reproduce your problem.
In which mode is the "validate free orders" plugin : With notification or not ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 241
  • Thank you received: 5
11 years 6 months ago #103533

If notification means email confirm.. it is on as per screenshot.


Attachments:

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
11 years 6 months ago #103626

Hi,

I test the plugin "validate free order" with the plugin "group after purchase" and I didn't have any specific problem.
The order is right validated and the user group is changed.
Without being logout, the user group has been reloaded in the session and all seems ok.

After that, I don't know if community builder right see if the user group has been reloaded by Joomla.
But in my case, I gave the "editor" right with my test product, and the user have the right to edit articles just after validate his free order.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.073 seconds
Powered by Kunena Forum