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

#   Order custom fields hidden in email

##

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

Less More

- Posts: 25
- Thank you received: 0
-
-

10 years 4 months ago [\#243535](#243535) by [ingjjaa](/forum/user/38158-ingjjaa "View ingjjaa's Profile")  *[Order custom fields hidden in email](/forum/25-install-update/885173-order-custom-fields-hidden-in-email#243535 "-- HikaShop version -- : 3.6 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi i need to hide the order custom fields in the email creation template, the problem is that if i delete or comment the line of {VAR:ORDER&#95;SUMMARY} the payment informatuon dissapear too and i need, i just need to hide the cutoms order fields thanks")* was created by *[ingjjaa](/forum/user/38158-ingjjaa "View ingjjaa's Profile")*

-- HikaShop version -- : 3.6
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.5

Hi i need to hide the order custom fields in the email creation template, the problem is that if i delete or comment the line of {VAR:ORDER_SUMMARY} the payment informatuon dissapear too and i need, i just need to hide the cutoms order fields thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4NTE3My1vcmRlci1jdXN0b20tZmllbGRzLWhpZGRlbi1pbi1lbWFpbD90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 4 months ago [\#243551](#243551) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order custom fields hidden in email](/forum/25-install-update/885173-order-custom-fields-hidden-in-email#243551 "-- HikaShop version -- : 3.6 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi i need to hide the order custom fields in the email creation template, the problem is that if i delete or comment the line of {VAR:ORDER&#95;SUMMARY} the payment informatuon dissapear too and i need, i just need to hide the cutoms order fields thanks")*

Hi,

If you update to the latest version of HikaShop, there are specific options in the custom fields to control where the custom order fields should and should not display, including the emails.
So there is no need to change any code.

If you don't want to update, the you'll have to edit the "preload version" of the email, and remove the part of the code near the bottom related to the custom order fields: Code:

$sep = ''; if(hikashop_level(2)) { $fields = $fieldsClass-&gt;getFields('display:field_order_status_notification=1',$data,'order',''); foreach($fields as $fieldName =&gt; $oneExtraField) { if(isset($data-&gt;$fieldName) &amp;&amp; !isset($data-&gt;cart-&gt;$fieldName)) $data-&gt;cart-&gt;$fieldName = $data-&gt;$fieldName; if(empty($data-&gt;cart-&gt;$fieldName)) continue; echo $sep . $fieldsClass-&gt;trans($oneExtraField-&gt;field_realname).' : '.$fieldsClass-&gt;show($oneExtraField, $data-&gt;cart-&gt;$fieldName,'user_email'); $sep = '&lt;br /&gt;'; } }

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

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

[](#top)
