Order Email

  • Posts: 6
  • Thank you received: 1
8 years 7 months ago #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_ADMIN_NOTIFICATION_SUBJECT HTML lines 138 to 132
{LINEVAR:PRODUCT_IMG}
{LINEVAR:PRODUCT_NAME}<!--{IF:ORDER_PRODUCT_CODE}-->{LINEVAR:PRODUCT_CODE}<!--{ENDIF:ORDER_PRODUCT_CODE}-->
{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 or Create an account to join the conversation.

  • Posts: 83932
  • Thank you received: 13588
  • MODERATOR
8 years 7 months ago #253584

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 <br/> tag to the line:

$t .= '<p>'.$fieldsClass->getFieldName($field).': '.$fieldsClass->show($field,$item->$namekey,'user_email').'</p>';
in the preload area of the email.

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 1
8 years 7 months ago #254238

Hi Nicolas

Thank you for your advice & I have been able to acheive the desired result with using the <br> tag instead of the <p> tag.

Regards
Kent

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum