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

#   Order Email

##

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

Less More

- Posts: 6
- Thank you received: 1
-
-

10 years 3 hours ago [\#253577](#253577) by [Kent](/forum/user/39953-kent "View Kent's Profile")  *[Order Email](/forum/25-install-update/887150-order-email#253577 "I am trying to remove the line spacing between the custom fields I have as there are quite a few so when I print out a received order it can be kept to a min page size. The code line I am looking at on the ORDER&#95;ADMIN&#95;NOTIFICATION&#95;SUBJECT HTML lines 138 to 132 {LINEVAR:PRODUCT&#95;IMG} {LINEVAR:PRODUCT&#95;NAME}{LINEVAR:PRODUCT&#95;CODE} {LINEVAR:PRODUCT&#95;DOWNLOAD} {LINEVAR:PRODUCT&#95;DETAILS} {LINEVAR:CUSTOMFIELD&#95;VALUE} is the a way to do this as when it comes through as an email there is a line spacing between each field.")* was created by *[Kent](/forum/user/39953-kent "View Kent's Profile")*

I am trying to remove the line spacing between the custom fields I have as there are quite a few so when I print out a received order it can be kept to a min page size.
The code line I am looking at on the ORDER_ADMIN_NOTIFICATION_SUBJECT HTML lines 138 to 132
{LINEVAR:PRODUCT_IMG}
{LINEVAR:PRODUCT_NAME}&lt;!--{IF:ORDER_PRODUCT_CODE}--&gt;{LINEVAR:PRODUCT_CODE}&lt;!--{ENDIF:ORDER_PRODUCT_CODE}--&gt;
{LINEVAR:PRODUCT_DOWNLOAD}
{LINEVAR:PRODUCT_DETAILS}
{LINEVAR:CUSTOMFIELD_VALUE}
is the a way to do this as when it comes through as an email there is a line spacing between each field.

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

Less More

- Posts: 86290
- Thank you received: 14266
-
-

9 years 11 months ago [\#253584](#253584) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order Email](/forum/25-install-update/887150-order-email#253584 "I am trying to remove the line spacing between the custom fields I have as there are quite a few so when I print out a received order it can be kept to a min page size. The code line I am looking at on the ORDER&#95;ADMIN&#95;NOTIFICATION&#95;SUBJECT HTML lines 138 to 132 {LINEVAR:PRODUCT&#95;IMG} {LINEVAR:PRODUCT&#95;NAME}{LINEVAR:PRODUCT&#95;CODE} {LINEVAR:PRODUCT&#95;DOWNLOAD} {LINEVAR:PRODUCT&#95;DETAILS} {LINEVAR:CUSTOMFIELD&#95;VALUE} is the a way to do this as when it comes through as an email there is a line spacing between each field.")*

Hi,

If you're talking about custom product fields, each one will be in its own column with one cell per product, so it should not be a problem.

If you're talking aobut custom item fields, each one is in a p tag.
And by default there is no CSS on p tags in the emails so you should already have one per line in the emails, unless you added custom CSS to change that.
In that case, you can add such CSS to avoid that:
table p[ display: block !important; }
You could also add a &lt;br/&gt; tag to the line: Code:

$t .= '&lt;p&gt;'.$fieldsClass-&gt;getFieldName($field).': '.$fieldsClass-&gt;show($field,$item-&gt;$namekey,'user_email').'&lt;/p&gt;';

in the preload area of the email.

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

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

Less More

- Posts: 6
- Thank you received: 1
-
-

9 years 11 months ago [\#254238](#254238) by [Kent](/forum/user/39953-kent "View Kent's Profile")  Replied by *[Kent](/forum/user/39953-kent "View Kent's Profile")* on topic *[Order Email](/forum/25-install-update/887150-order-email#254238 "I am trying to remove the line spacing between the custom fields I have as there are quite a few so when I print out a received order it can be kept to a min page size. The code line I am looking at on the ORDER&#95;ADMIN&#95;NOTIFICATION&#95;SUBJECT HTML lines 138 to 132 {LINEVAR:PRODUCT&#95;IMG} {LINEVAR:PRODUCT&#95;NAME}{LINEVAR:PRODUCT&#95;CODE} {LINEVAR:PRODUCT&#95;DOWNLOAD} {LINEVAR:PRODUCT&#95;DETAILS} {LINEVAR:CUSTOMFIELD&#95;VALUE} is the a way to do this as when it comes through as an email there is a line spacing between each field.")*

Hi Nicolas

Thank you for your advice &amp; I have been able to acheive the desired result with using the &lt;br&gt; tag instead of the &lt;p&gt; tag.

Regards
Kent

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

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

[](#top)
