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

#   Registration via Jomsocial.

##

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

Less More

- Posts: 61
- Thank you received: 2
-
-

13 years 3 months ago [\#115148](#115148) by [xsbucks](/forum/user/22196-xsbucks "View xsbucks's Profile")  *[Registration via Jomsocial.](/forum/2-general-talk-about-hikashop/85651-registration-via-jomsocial#115148 "Hi guys,  I am running a Jomsocial registration as my master registration. I want to add the HikaMarket Vendor Paypal Email Address to the registration. I know i can use custom fields however, it won't enter into the Vendor Registration. Is there a way I can code it into the registration form to avoid repetition and confusion for our end users? Maybe a plugin to force it into the joomla user portion of the form? I know this isn't a Hikashop thing but would be willing to pay for help on this one.")* was created by *[xsbucks](/forum/user/22196-xsbucks "View xsbucks's Profile")*

Hi guys,

I am running a Jomsocial registration as my master registration. I want to add the HikaMarket Vendor Paypal Email Address to the registration. I know i can use custom fields however, it won't enter into the Vendor Registration. Is there a way I can code it into the registration form to avoid repetition and confusion for our end users? Maybe a plugin to force it into the joomla user portion of the form? I know this isn't a Hikashop thing but would be willing to pay for help on this one.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg1NjUxLXJlZ2lzdHJhdGlvbi12aWEtam9tc29jaWFsP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 3 months ago [\#115175](#115175) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Registration via Jomsocial.](/forum/2-general-talk-about-hikashop/85651-registration-via-jomsocial#115175 "Hi guys,  I am running a Jomsocial registration as my master registration. I want to add the HikaMarket Vendor Paypal Email Address to the registration. I know i can use custom fields however, it won't enter into the Vendor Registration. Is there a way I can code it into the registration form to avoid repetition and confusion for our end users? Maybe a plugin to force it into the joomla user portion of the form? I know this isn't a Hikashop thing but would be willing to pay for help on this one.")*

Hi,

Yes a little plugin will be the best solution.
HikaMarket uses triggers like HikaShop, so you will find the trigger " onBeforeVendorCreate(&amp;$vendor, &amp;$do) {} " which allow you to modify the vendor object before his creation (and you have the same thing for the "update").

The paypal email is stored in the "vendor_params" which is a serialize object. Code:

public function onBeforeVendorCreate(&amp;$vendor, &amp;$do) { $hk_user_id = $vendor-&gt;vendor_admin_id; if(empty($hk_user_id)) return; $userClass = hikamarket::get('shop.class.user'); $hkUser = $userClass-&gt;get($hk_user_id); $cms_user_id = $hkUser-&gt;user_cms_id; // // Do your job with Jomsocial using the $cms_user_id // if(!empty($vendor-&gt;vendor_params)) $vendor-&gt;vendor_params = unserialize($vendor-&gt;vendor_params); else $vendor-&gt;vendor_params = new stdClass(); $vendor-&gt;vendor_params-&gt;paypal_email = '...'; // Set the email from jomsocial $vendor-&gt;vendor_params = serialize($vendor-&gt;vendor_params); }

Hope it will help you !

Regards,

---

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

The following user(s) said Thank You: [xsbucks](/forum/user/22196-xsbucks "View xsbucks's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg1NjUxLXJlZ2lzdHJhdGlvbi12aWEtam9tc29jaWFsP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 61
- Thank you received: 2
-
-

13 years 3 months ago [\#115387](#115387) by [xsbucks](/forum/user/22196-xsbucks "View xsbucks's Profile")  Replied by *[xsbucks](/forum/user/22196-xsbucks "View xsbucks's Profile")* on topic *[Registration via Jomsocial.](/forum/2-general-talk-about-hikashop/85651-registration-via-jomsocial#115387 "Hi guys,  I am running a Jomsocial registration as my master registration. I want to add the HikaMarket Vendor Paypal Email Address to the registration. I know i can use custom fields however, it won't enter into the Vendor Registration. Is there a way I can code it into the registration form to avoid repetition and confusion for our end users? Maybe a plugin to force it into the joomla user portion of the form? I know this isn't a Hikashop thing but would be willing to pay for help on this one.")*

Okay, i built the plugin with XML as well. Obviously little.

What i am trying to understand is how to get the Custom Field in registration, FIELD_PAYPALEMAIL in my Phpadmin to Join the s:12 paypal_email in the Vendor Market Reg.

Example,

Currently the vendor 'Joomla' Data Auto Populates the Vender Profile Form in the few fields.

I want to be able to do the same thing with the rest of Jomsocial Registration. I am willing to pay for it and also quite sure it will be a good integration.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg1NjUxLXJlZ2lzdHJhdGlvbi12aWEtam9tc29jaWFsP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 3 months ago [\#115441](#115441) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Registration via Jomsocial.](/forum/2-general-talk-about-hikashop/85651-registration-via-jomsocial#115441 "Hi guys,  I am running a Jomsocial registration as my master registration. I want to add the HikaMarket Vendor Paypal Email Address to the registration. I know i can use custom fields however, it won't enter into the Vendor Registration. Is there a way I can code it into the registration form to avoid repetition and confusion for our end users? Maybe a plugin to force it into the joomla user portion of the form? I know this isn't a Hikashop thing but would be willing to pay for help on this one.")*

Hi,

The paypal email is stored in a special "vendor_params" column which is a serialized PHP object.
That's why I made a Code:

$vendor-&gt;vendor_params = unserialize($vendor-&gt;vendor_params);

before reading/writing the value and I made a Code:

$vendor-&gt;vendor_params = serialize($vendor-&gt;vendor_params);

at this end to re-set the data in the right form for the database insert.

The Paypal Adaptive plugin read the paypal email from that field and if the field is empty, it will use the vendor email (column: vendor_email).
Otherwise, it is possible to see to modify the paypal adaptive plugin in order to read the paypal email value from another field (before the "vendor email").
So you will be able to create a vendor custom field and link this custom field (which will be a column in your database) with JomSocial.

After that, if you want a quote for a custom plugin, please send me your requirements by email (jerome at hikashop.com).

Kind regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg1NjUxLXJlZ2lzdHJhdGlvbi12aWEtam9tc29jaWFsP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 61
- Thank you received: 2
-
-

13 years 3 months ago [\#115548](#115548) by [xsbucks](/forum/user/22196-xsbucks "View xsbucks's Profile")  Replied by *[xsbucks](/forum/user/22196-xsbucks "View xsbucks's Profile")* on topic *[Registration via Jomsocial.](/forum/2-general-talk-about-hikashop/85651-registration-via-jomsocial#115548 "Hi guys,  I am running a Jomsocial registration as my master registration. I want to add the HikaMarket Vendor Paypal Email Address to the registration. I know i can use custom fields however, it won't enter into the Vendor Registration. Is there a way I can code it into the registration form to avoid repetition and confusion for our end users? Maybe a plugin to force it into the joomla user portion of the form? I know this isn't a Hikashop thing but would be willing to pay for help on this one.")*

Sent an email off.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg1NjUxLXJlZ2lzdHJhdGlvbi12aWEtam9tc29jaWFsP3RtcGw9bWFya2Rvd24=) 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.061 seconds

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