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

#   Prepopulate registration fields

##

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

Less More

- Posts: 57
- Thank you received: 0
-
-

13 years 11 months ago [\#79634](#79634) by [rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")  *[Prepopulate registration fields](/forum/4-how-to/76302-prepopulate-registration-fields#79634 "Hello, I have a landing page which captures name, last, phone, zipcode, email and phone. I then have a single product and add to cart after the person fills out that form. My goal is to load those values into session(s) and when the user ADD TO CART, they will have those fields already filled out (the hika registration will grab the values from the session(s).  I was thinking I just need to locate the file that has the registration form, and in the Value put the session ID of the corresponding field. Any suggestions or ideas on how I can get this working?")* was created by *[rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")*

Hello, I have a landing page which captures name, last, phone, zipcode, email and phone.
I then have a single product and add to cart after the person fills out that form.
My goal is to load those values into session(s) and when the user ADD TO CART, they will have those fields already filled out (the hika registration will grab the values from the session(s).

I was thinking I just need to locate the file that has the registration form, and in the Value put the session ID of the corresponding field.
Any suggestions or ideas on how I can get this working?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MzAyLXByZXBvcHVsYXRlLXJlZ2lzdHJhdGlvbi1maWVsZHM/dG1wbD1tYXJrZG93bg==) 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 11 months ago [\#79708](#79708) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Prepopulate registration fields](/forum/4-how-to/76302-prepopulate-registration-fields#79708 "Hello, I have a landing page which captures name, last, phone, zipcode, email and phone. I then have a single product and add to cart after the person fills out that form. My goal is to load those values into session(s) and when the user ADD TO CART, they will have those fields already filled out (the hika registration will grab the values from the session(s).  I was thinking I just need to locate the file that has the registration form, and in the Value put the session ID of the corresponding field. Any suggestions or ideas on how I can get this working?")*

Hi,

It's the file "registration" of the view "user" that you can edit via the menu Display-&gt;views in order to set your default values in the fields.

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

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

Less More

- Posts: 57
- Thank you received: 0
-
-

13 years 11 months ago [\#80513](#80513) by [rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")  Replied by *[rockstaran](/forum/user/7241-rockstaran "View rockstaran's Profile")* on topic *[Prepopulate registration fields](/forum/4-how-to/76302-prepopulate-registration-fields#80513 "Hello, I have a landing page which captures name, last, phone, zipcode, email and phone. I then have a single product and add to cart after the person fills out that form. My goal is to load those values into session(s) and when the user ADD TO CART, they will have those fields already filled out (the hika registration will grab the values from the session(s).  I was thinking I just need to locate the file that has the registration form, and in the Value put the session ID of the corresponding field. Any suggestions or ideas on how I can get this working?")*

I found it and able to populate Email, however I cannot find Firstname, lastname, zipcode, address, phone.

Where would I be able to find those?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MzAyLXByZXBvcHVsYXRlLXJlZ2lzdHJhdGlvbi1maWVsZHM/dG1wbD1tYXJrZG93bg==) 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 11 months ago [\#80574](#80574) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Prepopulate registration fields](/forum/4-how-to/76302-prepopulate-registration-fields#80574 "Hello, I have a landing page which captures name, last, phone, zipcode, email and phone. I then have a single product and add to cart after the person fills out that form. My goal is to load those values into session(s) and when the user ADD TO CART, they will have those fields already filled out (the hika registration will grab the values from the session(s).  I was thinking I just need to locate the file that has the registration form, and in the Value put the session ID of the corresponding field. Any suggestions or ideas on how I can get this working?")*

These are custom fields.
They are generated dynamically as you can configure them via the menu Display-&gt;Custom fields.

You can set their default value like that:
$this-&gt;address-&gt;address_lastname = $lastname;
at the beginning of the registration file

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

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