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

#   Different registration pages

##

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

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 5 months ago [\#18121](#18121) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  *[Different registration pages](/forum/4-how-to/18121-different-registration-pages#18121 "i need to create different registration pages based on the things in the cart.. how can i control what page they go to? what i am trying to do is show some fields and not others, how do i control the...")* was created by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")*

i need to create different registration pages based on the things in the cart.. how can i control what page they go to? what i am trying to do is show some fields and not others, how do i control the field that show based on what is the cart? i was thinking i can add the custom fields in the back end make them not visible, but in the registration view add some code that will control what gets view or not based in whats in the cart.

if this is a correct approach can i some sample code thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4MTIxLWRpZmZlcmVudC1yZWdpc3RyYXRpb24tcGFnZXM/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: 86561
- Thank you received: 14307
-
-

15 years 5 months ago [\#18147](#18147) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Different registration pages](/forum/4-how-to/18121-different-registration-pages#18147 "i need to create different registration pages based on the things in the cart.. how can i control what page they go to? what i am trying to do is show some fields and not others, how do i control the...")*

That's indeed the correct approach.
The fields are displayed in the file custom_fields of the view user that you can edit via the menu Display-&gt;Views.
There, you need first to parse the products in the cart.
$product_there = false;
foreach($this-&gt;rows as $i =&gt; $row){
if($row-&gt;product_code=="my_product") $product_there = true;
}

then, in the foreach of the fields, if you don't want to display the field "my_field" when the product "my_product" is in the cart, you need to add at the beginning something like that:
if($product_there &amp;&amp; $fieldName=="my_field") continue;

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

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