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

#   Display limited to functionality

##

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

Less More

- Posts: 95
- Thank you received: 1
-
-

12 years 6 months ago [\#156530](#156530) by [wideservices](/forum/user/29752-wideservices "View wideservices's Profile")  *[Display limited to functionality](/forum/27-checkout/868332-display-limited-to-functionality#156530 "Hi, I would like to create a custom field (radio button- invoice or receipt) at the address table and when invoice is checked i would like some extra fields to appear in the form. I guess display limited to is the answer but i cannot get it to work. eg: i check Firstname at display limited to but then i dont get a section on where to put the exact values of the firstname. what am i doing wrong? thank you.")* was created by *[wideservices](/forum/user/29752-wideservices "View wideservices's Profile")*

Hi,
I would like to create a custom field (radio button- invoice or receipt) at the address table and when invoice is checked i would like some extra fields to appear in the form. I guess display limited to is the answer but i cannot get it to work. eg:
i check Firstname at display limited to but then i dont get a section on where to put the exact values of the firstname. what am i doing wrong? thank you.

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

12 years 6 months ago [\#156547](#156547) 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 *[Display limited to functionality](/forum/27-checkout/868332-display-limited-to-functionality#156547 "Hi, I would like to create a custom field (radio button- invoice or receipt) at the address table and when invoice is checked i would like some extra fields to appear in the form. I guess display limited to is the answer but i cannot get it to work. eg: i check Firstname at display limited to but then i dont get a section on where to put the exact values of the firstname. what am i doing wrong? thank you.")*

Hello,
If you want to add a field to the address section of your invoice, the solution will be to edit the "address_template" file of the "order" view, of your back-end template through "Hikashop-&gt;Display-&gt;Views" and directly add what you want.

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

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

Less More

- Posts: 95
- Thank you received: 1
-
-

12 years 6 months ago [\#156694](#156694) by [wideservices](/forum/user/29752-wideservices "View wideservices's Profile")  Replied by *[wideservices](/forum/user/29752-wideservices "View wideservices's Profile")* on topic *[Display limited to functionality](/forum/27-checkout/868332-display-limited-to-functionality#156694 "Hi, I would like to create a custom field (radio button- invoice or receipt) at the address table and when invoice is checked i would like some extra fields to appear in the form. I guess display limited to is the answer but i cannot get it to work. eg: i check Firstname at display limited to but then i dont get a section on where to put the exact values of the firstname. what am i doing wrong? thank you.")*

Hi ,
thanks for the answer. But what if i want a condition in order to show a field or not at the invoice?
For example how can i show a field in the invoice if it has a specific value else not show it?

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

12 years 6 months ago [\#156711](#156711) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Display limited to functionality](/forum/27-checkout/868332-display-limited-to-functionality#156711 "Hi, I would like to create a custom field (radio button- invoice or receipt) at the address table and when invoice is checked i would like some extra fields to appear in the form. I guess display limited to is the answer but i cannot get it to work. eg: i check Firstname at display limited to but then i dont get a section on where to put the exact values of the firstname. what am i doing wrong? thank you.")*

Hi,

I think that what you need will require some custom code.
You have to add a custom PHP check in the view "address / show" in: Code:

foreach($this-&gt;fields as $field){ $fieldname = $field-&gt;field_namekey; $html = str_replace('{'.$fieldname.'}', $this-&gt;fieldsClass-&gt;show($field, @$this-&gt;address-&gt;$fieldname), $html); }

To display or not the custom field depending on another value.

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

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

Less More

- Posts: 95
- Thank you received: 1
-
-

12 years 6 months ago [\#156973](#156973) by [wideservices](/forum/user/29752-wideservices "View wideservices's Profile")  Replied by *[wideservices](/forum/user/29752-wideservices "View wideservices's Profile")* on topic *[Display limited to functionality](/forum/27-checkout/868332-display-limited-to-functionality#156973 "Hi, I would like to create a custom field (radio button- invoice or receipt) at the address table and when invoice is checked i would like some extra fields to appear in the form. I guess display limited to is the answer but i cannot get it to work. eg: i check Firstname at display limited to but then i dont get a section on where to put the exact values of the firstname. what am i doing wrong? thank you.")*

thank you for your reply it really helped!
i have customized address/show and order/show to my needs and they work fine. But wehn the email is sent after an order it uses the default template and it doesn;t take my customization into account. What file shall i hack in order to change the email after order and the order confirmed email? Thank you

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

12 years 6 months ago [\#156974](#156974) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Display limited to functionality](/forum/27-checkout/868332-display-limited-to-functionality#156974 "Hi, I would like to create a custom field (radio button- invoice or receipt) at the address table and when invoice is checked i would like some extra fields to appear in the form. I guess display limited to is the answer but i cannot get it to work. eg: i check Firstname at display limited to but then i dont get a section on where to put the exact values of the firstname. what am i doing wrong? thank you.")*

Hi,

You have to edit the email directly via the menu System &gt; Emails. and add the if condition in the preload part.

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

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

Less More

- Posts: 95
- Thank you received: 1
-
-

12 years 6 months ago [\#157063](#157063) by [wideservices](/forum/user/29752-wideservices "View wideservices's Profile")  Replied by *[wideservices](/forum/user/29752-wideservices "View wideservices's Profile")* on topic *[Display limited to functionality](/forum/27-checkout/868332-display-limited-to-functionality#157063 "Hi, I would like to create a custom field (radio button- invoice or receipt) at the address table and when invoice is checked i would like some extra fields to appear in the form. I guess display limited to is the answer but i cannot get it to work. eg: i check Firstname at display limited to but then i dont get a section on where to put the exact values of the firstname. what am i doing wrong? thank you.")*

Thank you for yor reply i started looking into the email templates and i might have found a typo.
order notification email -&gt;preload version -&gt;line 240
$additionaltionnal i think should be $additional but i may be wrong.
anyway i just post it and you can see this.

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")

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

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