[Skip to main content](#vessel-content)

#   CB Mapping User Name

##

- **[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")**
- [![cberry1971's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13211-cberry1971 "View cberry1971's Profile") Topic Author
- [ Offline](/forum/user/13211-cberry1971)

Less More

- Posts: 241
- Thank you received: 5
-
-

13 years 6 months ago [\#103230](#103230) by [cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")  *[CB Mapping User Name](/forum/3-bug-report/81642-cb-mapping-user-name#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&#95;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:  Any way to fix this retroactively? Also needs to work going forward. Please advise.")* was created by *[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")*

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:
Code:

$fields = array('cbactivation','id','user_id','approved','confirmed'); $values = array('\'\'',(int)$newUser-&gt;user_cms_id,(int)$newUser-&gt;user_cms_id,1,1); if(!empty($addressData-&gt;address_firstname)){ $fields[]='firstname'; $values[]=$this-&gt;database-&gt;Quote($addressData-&gt;address_firstname); } if(!empty($addressData-&gt;address_middle_name)){ $fields[]='middlename'; $values[]=$this-&gt;database-&gt;Quote($addressData-&gt;address_middle_name); } if(!empty($addressData-&gt;address_lastname)){ $fields[]='lastname'; $values[]=$this-&gt;database-&gt;Quote($addressData-&gt;address_lastname); }

Any way to fix this retroactively? Also needs to work going forward. Please advise.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTY0Mi1jYi1tYXBwaW5nLXVzZXItbmFtZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")**
- [![cberry1971's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13211-cberry1971 "View cberry1971's Profile") Topic Author
- [ Offline](/forum/user/13211-cberry1971)

Less More

- Posts: 241
- Thank you received: 5
-
-

13 years 6 months ago [\#103237](#103237) by [cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")  Replied by *[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")* on topic *[CB Mapping User Name](/forum/3-bug-report/81642-cb-mapping-user-name#103237 "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&#95;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:  Any way to fix this retroactively? Also needs to work going forward. Please advise.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTY0Mi1jYi1tYXBwaW5nLXVzZXItbmFtZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")**
- [![cberry1971's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13211-cberry1971 "View cberry1971's Profile") Topic Author
- [ Offline](/forum/user/13211-cberry1971)

Less More

- Posts: 241
- Thank you received: 5
-
-

13 years 6 months ago [\#103242](#103242) by [cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")  Replied by *[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")* on topic *[CB Mapping User Name](/forum/3-bug-report/81642-cb-mapping-user-name#103242 "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&#95;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:  Any way to fix this retroactively? Also needs to work going forward. Please advise.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTY0Mi1jYi1tYXBwaW5nLXVzZXItbmFtZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

13 years 6 months ago [\#103253](#103253) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[CB Mapping User Name](/forum/3-bug-report/81642-cb-mapping-user-name#103253 "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&#95;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:  Any way to fix this retroactively? Also needs to work going forward. Please advise.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTY0Mi1jYi1tYXBwaW5nLXVzZXItbmFtZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")**
- [![cberry1971's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13211-cberry1971 "View cberry1971's Profile") Topic Author
- [ Offline](/forum/user/13211-cberry1971)

Less More

- Posts: 241
- Thank you received: 5
-
-

13 years 6 months ago [\#103326](#103326) by [cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")  Replied by *[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")* on topic *[CB Mapping User Name](/forum/3-bug-report/81642-cb-mapping-user-name#103326 "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&#95;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:  Any way to fix this retroactively? Also needs to work going forward. Please advise.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTY0Mi1jYi1tYXBwaW5nLXVzZXItbmFtZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

13 years 6 months ago [\#103333](#103333) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[CB Mapping User Name](/forum/3-bug-report/81642-cb-mapping-user-name#103333 "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&#95;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:  Any way to fix this retroactively? Also needs to work going forward. Please advise.")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTY0Mi1jYi1tYXBwaW5nLXVzZXItbmFtZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")**
- [![cberry1971's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13211-cberry1971 "View cberry1971's Profile") Topic Author
- [ Offline](/forum/user/13211-cberry1971)

Less More

- Posts: 241
- Thank you received: 5
-
-

13 years 6 months ago [\#103533](#103533) by [cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")  Replied by *[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")* on topic *[CB Mapping User Name](/forum/3-bug-report/81642-cb-mapping-user-name#103533 "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&#95;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:  Any way to fix this retroactively? Also needs to work going forward. Please advise.")*

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

[ ![Screen&#95;Shot&#95;2013-05-12&#95;at&#95;5&#95;53&#95;18&#95;AM.png](/forum/attachment/10095) ](/forum/attachment/10095 "...5&#95;53&#95;18&#95;AM.png")

- [ ![Screen&#95;Shot&#95;2013-05-12&#95;at&#95;5&#95;53&#95;18&#95;AM.png](/forum/attachment/10095) ](/forum/attachment/10095 "...5&#95;53&#95;18&#95;AM.png") [ ](/forum/attachment/10095?download=1 "...5&#95;53&#95;18&#95;AM.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTY0Mi1jYi1tYXBwaW5nLXVzZXItbmFtZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

13 years 6 months ago [\#103626](#103626) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[CB Mapping User Name](/forum/3-bug-report/81642-cb-mapping-user-name#103626 "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&#95;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:  Any way to fix this retroactively? Also needs to work going forward. Please advise.")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTY0Mi1jYi1tYXBwaW5nLXVzZXItbmFtZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.066 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
