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

#   Hidden custom order fields shown in frontpage

##

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 2 months ago [\#24529](#24529) by [hko](/forum/user/3515-hko "View hko's Profile")  *[Hidden custom order fields shown in frontpage](/forum/3-bug-report/24529-hidden-custom-order-fields-shown-in-frontpage#24529 "Set up custom order field, not to be displayed on the frontpage.  During checkout ok, will not display.  but when the customer later checks his order via de frontend webaccess, all extra custom order fields are displayed.")* was created by *[hko](/forum/user/3515-hko "View hko's Profile")*

Set up custom order field, not to be displayed on the frontpage.

During checkout ok, will not display.

but when the customer later checks his order via de frontend webaccess, all extra custom order fields are displayed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNDUyOS1oaWRkZW4tY3VzdG9tLW9yZGVyLWZpZWxkcy1zaG93bi1pbi1mcm9udHBhZ2U/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

15 years 2 months ago [\#24547](#24547) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Hidden custom order fields shown in frontpage](/forum/3-bug-report/24529-hidden-custom-order-fields-shown-in-frontpage#24547 "Set up custom order field, not to be displayed on the frontpage.  During checkout ok, will not display.  but when the customer later checks his order via de frontend webaccess, all extra custom order fields are displayed.")*

You need to add the code:
if(empty($this-&gt;order-&gt;$fieldName)) continue;

after the line
$foreach($this-&gt;fields as $fieldName =&gt; $oneExtraField) {

in the file "show" of the view "order" of the front end via the menu Display-&gt;Views and that will do what you want.

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 2 months ago [\#24559](#24559) by [hko](/forum/user/3515-hko "View hko's Profile")  Replied by *[hko](/forum/user/3515-hko "View hko's Profile")* on topic *[Re: Hidden custom order fields shown in frontpage](/forum/3-bug-report/24529-hidden-custom-order-fields-shown-in-frontpage#24559 "Set up custom order field, not to be displayed on the frontpage.  During checkout ok, will not display.  but when the customer later checks his order via de frontend webaccess, all extra custom order fields are displayed.")*

Hi Nicolas,

thx, that is indeed the solution.. this is how it is expect to work or not? Will it be included in new versions?

thx!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNDUyOS1oaWRkZW4tY3VzdG9tLW9yZGVyLWZpZWxkcy1zaG93bi1pbi1mcm9udHBhZ2U/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

15 years 2 months ago [\#24567](#24567) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Hidden custom order fields shown in frontpage](/forum/3-bug-report/24529-hidden-custom-order-fields-shown-in-frontpage#24567 "Set up custom order field, not to be displayed on the frontpage.  During checkout ok, will not display.  but when the customer later checks his order via de frontend webaccess, all extra custom order fields are displayed.")*

Well, it would be more logical that way I think. So yes, we'll add it to next version.

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 2 months ago [\#24569](#24569) by [hko](/forum/user/3515-hko "View hko's Profile")  Replied by *[hko](/forum/user/3515-hko "View hko's Profile")* on topic *[Re: Hidden custom order fields shown in frontpage](/forum/3-bug-report/24529-hidden-custom-order-fields-shown-in-frontpage#24569 "Set up custom order field, not to be displayed on the frontpage.  During checkout ok, will not display.  but when the customer later checks his order via de frontend webaccess, all extra custom order fields are displayed.")*

Sorry Nicolas, but it does not work completely yet..

Just added another order custom field, but this time a checkbox, hidden for frontend.

When I tick the box in the backend for an order it will still show up on the frontend.
Tried with Radio Buttons, same results...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNDUyOS1oaWRkZW4tY3VzdG9tLW9yZGVyLWZpZWxkcy1zaG93bi1pbi1mcm9udHBhZ2U/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

15 years 2 months ago [\#24575](#24575) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Hidden custom order fields shown in frontpage](/forum/3-bug-report/24529-hidden-custom-order-fields-shown-in-frontpage#24575 "Set up custom order field, not to be displayed on the frontpage.  During checkout ok, will not display.  but when the customer later checks his order via de frontend webaccess, all extra custom order fields are displayed.")*

Then, try with that line instead:
if(!@$oneExtraField-&gt;field_frontcomp &#124;&#124; empty($this-&gt;order-&gt;$fieldName)) continue;

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 2 months ago [\#24579](#24579) by [hko](/forum/user/3515-hko "View hko's Profile")  Replied by *[hko](/forum/user/3515-hko "View hko's Profile")* on topic *[Re: Hidden custom order fields shown in frontpage](/forum/3-bug-report/24529-hidden-custom-order-fields-shown-in-frontpage#24579 "Set up custom order field, not to be displayed on the frontpage.  During checkout ok, will not display.  but when the customer later checks his order via de frontend webaccess, all extra custom order fields are displayed.")*

Yes, this seems to work.

It also has an extra benefit which I don't know if it is intended or not, but if the field is empty, it will not show up. ( I can use that because I first setup another box to set show/not show for that other tekst field. )

But I can imaging this 'side effect' is not what you want perhaps.

thx again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNDUyOS1oaWRkZW4tY3VzdG9tLW9yZGVyLWZpZWxkcy1zaG93bi1pbi1mcm9udHBhZ2U/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

15 years 2 months ago [\#24584](#24584) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Hidden custom order fields shown in frontpage](/forum/3-bug-report/24529-hidden-custom-order-fields-shown-in-frontpage#24584 "Set up custom order field, not to be displayed on the frontpage.  During checkout ok, will not display.  but when the customer later checks his order via de frontend webaccess, all extra custom order fields are displayed.")*

In most cases, it's what you want though so we'll leave it like that. It can easily be changed anyway.

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

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