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

#   hide custom item fields on cart/checkout process

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

13 years 2 weeks ago [\#128251](#128251) by [fabio.collura](/forum/user/25322-fabio-collura "View fabio.collura's Profile")  *[hide custom item fields on cart/checkout process](/forum/27-checkout/862877-hide-custom-item-fields-on-cart-checkout-process#128251 "-- HikaShop version -- : 2.2.0  Hi, I have some products that I add to cart by code (using code described ). I have an internal custom item text field that I don't want to be displayed in front-end product page but I need to be visible in back-end order details (Product List) so I have added a little code in administrator/com&#95;hikashop/views/order/tmpl/show&#95;products.php  My problem is that when I disable the &quot;Front end&quot; option in custom field configuration the field is not displayed in front-end as expected but it is not populated in the order (field column in hikashop&#95;order&#95;prodauct is empty).  When I enable the &quot;Front end&quot; option, all works fine.")* was created by *[fabio.collura](/forum/user/25322-fabio-collura "View fabio.collura's Profile")*

-- HikaShop version -- : 2.2.0

Hi,
I have some products that I add to cart by code (using code described [ here](http://www.hikashop.com/forum/2-general-talk-about-hikashop/16216-add-to-cart-link-and-custom-product-fields.html)).
I have an internal custom item text field that I don't want to be displayed in front-end product page but I need to be visible in back-end order details (Product List) so I have added a little code in administrator/com_hikashop/views/order/tmpl/show_products.php

My problem is that when I disable the "Front end" option in custom field configuration the field is not displayed in front-end as expected but it is not populated in the order (field column in hikashop_order_prodauct is empty).

When I enable the "Front end" option, all works fine.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 1 week ago [\#128304](#128304) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[hide custom item fields on cart/checkout process](/forum/27-checkout/862877-hide-custom-item-fields-on-cart-checkout-process#128304 "-- HikaShop version -- : 2.2.0  Hi, I have some products that I add to cart by code (using code described ). I have an internal custom item text field that I don't want to be displayed in front-end product page but I need to be visible in back-end order details (Product List) so I have added a little code in administrator/com&#95;hikashop/views/order/tmpl/show&#95;products.php  My problem is that when I disable the &quot;Front end&quot; option in custom field configuration the field is not displayed in front-end as expected but it is not populated in the order (field column in hikashop&#95;order&#95;prodauct is empty).  When I enable the &quot;Front end&quot; option, all works fine.")*

Hi,
One solution would be to use some CSS code to "hide" your custom item field through your cart/checkout process, you can for example use this CSS property : Code:

display: none!important;

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

13 years 1 week ago [\#128307](#128307) by [fabio.collura](/forum/user/25322-fabio-collura "View fabio.collura's Profile")  Replied by *[fabio.collura](/forum/user/25322-fabio-collura "View fabio.collura's Profile")* on topic *[hide custom item fields on cart/checkout process](/forum/27-checkout/862877-hide-custom-item-fields-on-cart-checkout-process#128307 "-- HikaShop version -- : 2.2.0  Hi, I have some products that I add to cart by code (using code described ). I have an internal custom item text field that I don't want to be displayed in front-end product page but I need to be visible in back-end order details (Product List) so I have added a little code in administrator/com&#95;hikashop/views/order/tmpl/show&#95;products.php  My problem is that when I disable the &quot;Front end&quot; option in custom field configuration the field is not displayed in front-end as expected but it is not populated in the order (field column in hikashop&#95;order&#95;prodauct is empty).  When I enable the &quot;Front end&quot; option, all works fine.")*

Thank you Mohamed,
it is a good idea but the custom field content would be output in html.
My Custom field is related to internal data that should be "internal"

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 week ago [\#128390](#128390) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[hide custom item fields on cart/checkout process](/forum/27-checkout/862877-hide-custom-item-fields-on-cart-checkout-process#128390 "-- HikaShop version -- : 2.2.0  Hi, I have some products that I add to cart by code (using code described ). I have an internal custom item text field that I don't want to be displayed in front-end product page but I need to be visible in back-end order details (Product List) so I have added a little code in administrator/com&#95;hikashop/views/order/tmpl/show&#95;products.php  My problem is that when I disable the &quot;Front end&quot; option in custom field configuration the field is not displayed in front-end as expected but it is not populated in the order (field column in hikashop&#95;order&#95;prodauct is empty).  When I enable the &quot;Front end&quot; option, all works fine.")*

Hi,

In your case you should use the custom fields in the table "product" instead of "item", and disable the "front-end" option.
If the item custom fields are not displayed in frontend so there is no html, and it's not sent to the order.

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

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

[](#top)
