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

#   changed user data

##

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

Less More

- Posts: 44
- Thank you received: 0
-
-

14 years 6 months ago [\#47766](#47766) by [mohamed](/forum/user/5767-mohamed "View mohamed's Profile")  *[changed user data](/forum/2-general-talk-about-hikashop/47766-changed-user-data#47766 "if I loaded the user using $user = hikashop&#95;loadUser(true); and then $user-&gt;user&#95;partner&#95;activated = 1; to activate partner status however the user partnership status is not activated. is there a way to change the attributes of the user object and have them stick")* was created by *[mohamed](/forum/user/5767-mohamed "View mohamed's Profile")*

if I loaded the user using
$user = hikashop_loadUser(true);
and then
$user-&gt;user_partner_activated = 1;
to activate partner status however the user partnership status is not activated. is there a way to change the attributes of the user object and have them stick

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ3NzY2LWNoYW5nZWQtdXNlci1kYXRhP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

14 years 6 months ago [\#47923](#47923) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: changed user data](/forum/2-general-talk-about-hikashop/47766-changed-user-data#47923 "if I loaded the user using $user = hikashop&#95;loadUser(true); and then $user-&gt;user&#95;partner&#95;activated = 1; to activate partner status however the user partnership status is not activated. is there a way to change the attributes of the user object and have them stick")*

That just set the variable in the object of the current page. It doesn't save the information in the database.
For that, you will have to do like that :

$class = hikashop_get('class.user');
$updateObject = null;
$updateObject-&gt;user_id = hikashop_loadUser();
$updateObject-&gt;user_partner_activated = 1;
$class-&gt;save($updateObject);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ3NzY2LWNoYW5nZWQtdXNlci1kYXRhP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.053 seconds

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