- Posts: 6
- Thank you received: 1
Order Email
9 years 11 months ago #253577
by Kent
Order Email was created by Kent
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.
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.
9 years 11 months ago #253584
by nicolas
Replied by nicolas on topic Order Email
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:
in the preload area of the email.
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:
Code:
$t .= '<p>'.$fieldsClass->getFieldName($field).': '.$fieldsClass->show($field,$item->$namekey,'user_email').'</p>';
Please Log in or Create an account to join the conversation.
9 years 11 months ago #254238
by Kent
Replied by Kent on topic Order Email
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
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.152 seconds