#error!

Hello -

I am copying a customized “Shipping Confirmation” template over from Klayvio and when trying to save I receive “If Tag” not closed…

Here is the code;

@media only screen and (max-width:480px){body,table,td,p,a,li,blockquote{-webkit-text-size-adjust:none !important}body{width:100% !important;min-width:100% !important}#bodyCell{padding:10px !important}table.kmMobileHide{display:none !important}table.kmDesktopOnly,td.kmDesktopOnly,th.kmDesktopOnly,tr.kmDesktopOnly,td.kmDesktopWrapHeaderMobileNone{display:none !important}table.kmMobileOnly{display:table !important}tr.kmMobileOnly{display:table-row !important}td.kmMobileOnly,td.kmDesktopWrapHeader,th.kmMobileOnly{display:table-cell !important}tr.kmMobileNoAlign,table.kmMobileNoAlign{float:none !important;text-align:initial !important;vertical-align:middle !important;table-layout:fixed !important}tr.kmMobileCenterAlign{float:none !important;text-align:center !important;vertical-align:middle !important;table-layout:fixed !important}td.kmButtonCollection{padding-left:9px !important;padding-right:9px !important;padding-top:9px !important;padding-bottom:9px !important}td.kmMobileHeaderStackDesktopNone,img.kmMobileHeaderStackDesktopNone,td.kmMobileHeaderStack{display:block !important;margin-left:auto !important;margin-right:auto !important;padding-bottom:9px !important;padding-right:0 !important;padding-left:0 !important}td.kmMobileWrapHeader,td.kmMobileWrapHeaderDesktopNone{display:inline-block !important}td.kmMobileHeaderSpacing{padding-right:10px !important}td.kmMobileHeaderNoSpacing{padding-right:0 !important}table.kmDesktopAutoWidth{width:inherit !important}table.kmMobileAutoWidth{width:100% !important}table.kmTextContentContainer{width:100% !important}table.kmBoxedTextContentContainer{width:100% !important}td.kmImageContent{padding-left:0 !important;padding-right:0 !important}img.kmImage{width:100% !important}td.kmMobileStretch{padding-left:0 !important;padding-right:0 !important}table.kmSplitContentLeftContentContainer,table.kmSplitContentRightContentContainer,table.kmColumnContainer,td.kmVerticalButtonBarContentOuter table.kmButtonBarContent,td.kmVerticalButtonCollectionContentOuter table.kmButtonCollectionContent,table.kmVerticalButton,table.kmVerticalButtonContent{width:100% !important}td.kmButtonCollectionInner{padding-left:9px !important;padding-right:9px !important;padding-top:9px !important;padding-bottom:9px !important}td.kmVerticalButtonIconContent,td.kmVerticalButtonTextContent,td.kmVerticalButtonContentOuter{padding-left:0 !important;padding-right:0 !important;padding-bottom:9px !important}table.kmSplitContentLeftContentContainer td.kmTextContent,table.kmSplitContentRightContentContainer td.kmTextContent,table.kmColumnContainer td.kmTextContent,table.kmSplitContentLeftContentContainer td.kmImageContent,table.kmSplitContentRightContentContainer td.kmImageContent{padding-top:9px !important}td.rowContainer.kmFloatLeft,td.rowContainer.kmFloatLeft,td.rowContainer.kmFloatLeft.firstColumn,td.rowContainer.kmFloatLeft.firstColumn,td.rowContainer.kmFloatLeft.lastColumn,td.rowContainer.kmFloatLeft.lastColumn{float:left;clear:both;width:100% !important}table.templateContainer,table.templateContainer.brandingContainer,div.templateContainer,div.templateContainer.brandingContainer,table.templateRow{max-width:600px !important;width:100% !important}h1{font-size:40px !important;line-height:1.1 !important}h2{font-size:32px !important;line-height:1.1 !important}h3{font-size:24px !important;line-height:1.1 !important}h4{font-size:18px !important;line-height:1.1 !important}td.kmTextContent{font-size:14px !important;line-height:1.3 !important}td.kmTextBlockInner td.kmTextContent{padding-right:18px !important;padding-left:18px !important}table.kmTableBlock.kmTableMobile td.kmTableBlockInner{padding-left:9px !important;padding-right:9px !important}table.kmTableBlock.kmTableMobile td.kmTableBlockInner .kmTextContent{font-size:14px !important;line-height:1.3 !important;padding-left:4px !important;padding-right:4px !important}} span.yshortcuts:hover {background-color:none !important;border:none !important} span.yshortcuts:active {background-color:none !important;border:none !important} span.yshortcuts:focus {background-color:none !important;border:none !important} .rowContainer .kmTextContent a:link {color:#776328;font-weight:normal;text-decoration:underline} .rowContainer .kmTextContent a:visited {color:#776328;font-weight:normal;text-decoration:underline} .kmTable .kmTableRow:last-child > td {border-bottom:none !important}

Hello!

Thanks for shopping with us. Your Little Rootz order has been received and will be processed shortly - this usually takes up to 2 business days. Your package will be carefully prepared and sent on its way to you. Just so you know, you’ll receive a confirmation email as soon as your order has been shipped.

Reminder: If you shopped a Pre-Order style, that means it's not quite ready yet. The timing may vary due to matters outside of our control but we aim to abide as closely by the estimated shipping time reflected on our website.

Something not right?

If any adjustments are needed, please reach out to us by responding to this email with the correct information.

LITTLE ROOTZ

Your order summary

{% if line_items %} {% for line in line_items %} {% endfor %}

Quantity: {{ line.quantity }}

Total: {{ line.price|money }}

Shipping from TEXAS

{{ line.title }}

{% else %} {% endif %}

Sub-Total

Shipping

Taxes

Promotions

{{ subtotal_price|money }}

{{ shipping_price|money }}

{{ tax_line.price|money }}

{% if discounts %}Discount (code: {{ discounts.first.code }}): {{ discounts_savings|money}}

{% if line_items %} {% for line in line_items %} {% endfor %}

Total

Payment Method

{{ total_price|money }}

{{ event.extra.payment_details.credit_card_company }}

{% else %} {% endif %}

©2021 Little Rootz, LLC. All rights reserved.

Bringing Inspiration to a Cultural Staple.

3839 Mckinney Avenue Dallas, TX 75204

(214) 945-8281

You are receiving this email because you opted in at www.LittleRootz.com

Button Text
Custom
Custom
Custom

Can anyone help to identify what is not being recognized and advise how to correct it ?

Hi Onawave! Hope you are doing well!

I found your problem and compiled steps for you to solve this problem:

  1. Find this place in the code https://prnt.sc/12f2a31.
  2. After the last span element put {% endif %} https://prnt.sc/12f2b7p.

I will also provide you with a corrected version of the code:

Show More

</table><table>

</table><table>

</table><table>

</table>

| <br><br>![39ca6a32-9ac6-4d36-ba73-53312dd94aa7.jpe...](https://d3k81ch9hvuctc.cloudfront.net/company/Yvx4fz/images/39ca6a32-9ac6-4d36-ba73-53312dd94aa7.jpe...)<br><br> |
| - |

<table>

</table>

| <br><br> |
| - |

<table>

</table><table>

</table>

| <br><br>Hello!<br><br>Thanks for shopping with us. Your Little Rootz order has been received and will be processed shortly - this usually takes up to 2 business days. Your package will be carefully prepared and sent on its way to you. Just so you know, you’ll receive a confirmation email as soon as your order has been shipped.<br><br>_**Reminder:** If you shopped a Pre-Order style, that means it's not quite ready yet. The timing may vary due to matters outside of our control but we aim to abide as closely by the estimated shipping time reflected on our website._<br><br>Something not right?<br><br>If any adjustments are needed, please reach out to us by responding to this email with the correct information.<br><br>LITTLE ROOTZ<br><br> |
| - |

<table>

</table>

| <br><br>Your order summary<br><br> |
| - |

{% if line_items %} {% for line in line_items %} {% endfor %}<table>
</table>

| <br><br> | <br><br> |
| - | - |

| <br><br> |
| - |

Quantity: {{ line.quantity }}

Total: {{ line.price|money }}

Shipping from TEXAS

#### {{ line.title }}{% else %} {% endif %}<table>

</table>

| <br><br> |
| - |

<table>

</table>

| <br><br> | <br><br> |
| - | - |
| <br><br> | <br><br> |
| <br><br>Sub-Total<br><br>Shipping<br><br>Taxes<br><br>Promotions<br><br> | <br><br>{{ subtotal_price|money }}<br><br>{{ shipping_price|money }}<br><br>{{ tax_line.price|money }}<br><br>{% if discounts %} **Discount (code: {{ discounts.first.code }}):** {{ discounts_savings|money }} {% endif %}<br><br> |

<table>

</table>

| <br><br> |
| - |

{% if line_items %} {% for line in line_items %} {% endfor %}<table>
</table>

| <br><br> | <br><br> |
| - | - |
| <br><br> | <br><br> |
| <br><br>**Total**<br><br>Payment Method<br><br> | <br><br>{{ total_price|money }}<br><br>{{ event.extra.payment_details.credit_card_company }}<br><br> |

{% else %} {% endif %}<table>

</table>

| <br><br> |
| - |

<table>

</table>

| <br><br>©2021 Little Rootz, LLC. All rights reserved.<br><br>Bringing Inspiration to a Cultural Staple. <br><br>3839 Mckinney Avenue Dallas, TX 75204<br><br>(214) 945-8281<br><br>You are receiving this email because you opted in at www.LittleRootz.com<br><br> |
| - |

<table>

</table><table>

</table><table>

</table><table>

</table>

| <br><br>![Custom|96x96](upload://4gpadtkTgE2I5Xko2l21Ri3gCr6.png) <br><br> |
| - |

| <br><br>![Custom|96x96](upload://5yzcpBVzdEqZkJ4dkAUVwg9yRGq.png) <br><br> |
| - |

| <br><br>![Button Text|96x96](upload://z9hTdAOVsUNsdkfWzECTu0xdrWm.png) <br><br> |
| - |

| <br><br>![Custom|96x96](upload://tERDQ50UcQDJcPxUNrcKfE1L5k1.png) <br><br> |
| - |

‌

<table>

</table><table>

</table><table>

</table>

| <br><br>[![Powered by Klaviyo|244x100](upload://3bZeUR8TA5Kmk9pb99aNfKnJeuB.png) ](https://www.klaviyo.com/?utm_medium=freebie&utm_source=brand&utm_term=Yvx4fz)<br><br> |
| - |

‌

Alex

Thank you so much!

That worked perfectly (:

1 Like

Hi Alex,

I have the same problem, can you help me as well?

here is the code:

@media only screen and (max-width:480px){body,table,td,p,a,li,blockquote{-webkit-text-size-adjust:none !important}body{width:100% !important;min-width:100% !important}#bodyCell{padding:10px !important}table.kmMobileHide{display:none !important}table.kmDesktopOnly,td.kmDesktopOnly,th.kmDesktopOnly,tr.kmDesktopOnly,td.kmDesktopWrapHeaderMobileNone{display:none !important}table.kmMobileOnly{display:table !important}tr.kmMobileOnly{display:table-row !important}td.kmMobileOnly,td.kmDesktopWrapHeader,th.kmMobileOnly{display:table-cell !important}tr.kmMobileNoAlign,table.kmMobileNoAlign{float:none !important;text-align:initial !important;vertical-align:middle !important;table-layout:fixed !important}tr.kmMobileCenterAlign{float:none !important;text-align:center !important;vertical-align:middle !important;table-layout:fixed !important}td.kmButtonCollection{padding-left:9px !important;padding-right:9px !important;padding-top:9px !important;padding-bottom:9px !important}td.kmMobileHeaderStackDesktopNone,img.kmMobileHeaderStackDesktopNone,td.kmMobileHeaderStack{display:block !important;margin-left:auto !important;margin-right:auto !important;padding-bottom:9px !important;padding-right:0 !important;padding-left:0 !important}td.kmMobileWrapHeader,td.kmMobileWrapHeaderDesktopNone{display:inline-block !important}td.kmMobileHeaderSpacing{padding-right:10px !important}td.kmMobileHeaderNoSpacing{padding-right:0 !important}table.kmDesktopAutoWidth{width:inherit !important}table.kmMobileAutoWidth{width:100% !important}table.kmTextContentContainer{width:100% !important}table.kmBoxedTextContentContainer{width:100% !important}td.kmImageContent{padding-left:0 !important;padding-right:0 !important}img.kmImage{width:100% !important}td.kmMobileStretch{padding-left:0 !important;padding-right:0 !important}table.kmSplitContentLeftContentContainer,table.kmSplitContentRightContentContainer,table.kmColumnContainer,td.kmVerticalButtonBarContentOuter table.kmButtonBarContent,td.kmVerticalButtonCollectionContentOuter table.kmButtonCollectionContent,table.kmVerticalButton,table.kmVerticalButtonContent{width:100% !important}td.kmButtonCollectionInner{padding-left:9px !important;padding-right:9px !important;padding-top:9px !important;padding-bottom:9px !important}td.kmVerticalButtonIconContent,td.kmVerticalButtonTextContent,td.kmVerticalButtonContentOuter{padding-left:0 !important;padding-right:0 !important;padding-bottom:9px !important}table.kmSplitContentLeftContentContainer td.kmTextContent,table.kmSplitContentRightContentContainer td.kmTextContent,table.kmColumnContainer td.kmTextContent,table.kmSplitContentLeftContentContainer td.kmImageContent,table.kmSplitContentRightContentContainer td.kmImageContent{padding-top:9px !important}td.rowContainer.kmFloatLeft,td.rowContainer.kmFloatLeft,td.rowContainer.kmFloatLeft.firstColumn,td.rowContainer.kmFloatLeft.firstColumn,td.rowContainer.kmFloatLeft.lastColumn,td.rowContainer.kmFloatLeft.lastColumn{float:left;clear:both;width:100% !important}table.templateContainer,table.templateContainer.brandingContainer,div.templateContainer,div.templateContainer.brandingContainer,table.templateRow{max-width:600px !important;width:100% !important}h1{font-size:40px !important;line-height:1.1 !important}h2{font-size:32px !important;line-height:1.1 !important}h3{font-size:24px !important;line-height:1.1 !important}h4{font-size:18px !important;line-height:1.1 !important}td.kmTextContent{font-size:14px !important;line-height:1.3 !important}td.kmTextBlockInner td.kmTextContent{padding-right:18px !important;padding-left:18px !important}table.kmTableBlock.kmTableMobile td.kmTableBlockInner{padding-left:9px !important;padding-right:9px !important}table.kmTableBlock.kmTableMobile td.kmTableBlockInner .kmTextContent{font-size:14px !important;line-height:1.3 !important;padding-left:4px !important;padding-right:4px !important}} span.yshortcuts:hover {background-color:none !important;border:none !important} span.yshortcuts:active {background-color:none !important;border:none !important} span.yshortcuts:focus {background-color:none !important;border:none !important} .rowContainer .kmTextContent a:link {color:#B49A70;font-weight:normal;text-decoration:underline} .rowContainer .kmTextContent a:visited {color:#B49A70;font-weight:normal;text-decoration:underline} .kmTable .kmTableRow:last-child > td {border-bottom:none !important}#outlook a { padding-left: 0; padding-right: 0; padding-top: 0; padding-bottom: 0 } .ReadMsgBody { width: 100% } .ExternalClass { width: 100% } span.yshortcuts { background-color: none !important; border: none !important } span.yshortcuts:hover, span.yshortcuts:active, span.yshortcuts:focus { background-color: none !important; border: none !important } body { margin: 0; padding: 0 } a { word-wrap: break-word !important; max-width: 100% } img { border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none; max-width: 100% } img[align="left"] { margin-right: 0 } img[align="right"] { margin-left: 0 } table, td { border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; table-layout: fixed } p { margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; padding-bottom: 1em } p:last-child { padding-bottom: 0 } #bodyTable, #bodyCell { height: 100% !important; margin: 0; width: 100% !important; table-layout: auto } #bodyTable { padding: 0 } #bodyCell { padding-top: 50px; padding-left: 20px; padding-bottom: 20px; padding-right: 20px; border-top: 0 } body, #bodyTable { background-color: #E8E4DE } .templateContainer { border: 0 none #aaa; background-color: #fff; border-radius: 0 } .brandingContainer { background-color: transparent; border: 0 } .templateContainerInner { padding: 0 } h1 { color: #342D29 !important; display: block; font-family: "Century Gothic", AppleGothic, Arial; font-size: 40px; font-style: normal; font-weight: normal; line-height: 1.1; letter-spacing: 0; margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 20px; text-align: left } h2 { color: #342D29 !important; display: block; font-family: "Century Gothic", AppleGothic, Arial; font-size: 32px; font-style: normal; font-weight: bold; line-height: 1.1; letter-spacing: 0; margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 16px; text-align: left } h3 { color: #342D29 !important; display: block; font-family: "Century Gothic", AppleGothic, Arial; font-size: 24px; font-style: normal; font-weight: bold; line-height: 1.1; letter-spacing: 0; margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 12px; text-align: left } h4 { color: #342D29 !important; display: block; font-family: "Century Gothic", AppleGothic, Arial; font-size: 18px; font-style: normal; font-weight: italic; line-height: 1.1; letter-spacing: 0; margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 9px; text-align: left } .rowContainer .kmTextContent { color: #342D29; font-family: "Century Gothic", AppleGothic, Arial; font-size: 14px; line-height: 1.3; letter-spacing: 0; text-align: left; max-width: 100%; word-wrap: break-word } .rowContainer .kmTextContent a, .rowContainer .kmTextContent a:link, .rowContainer .kmTextContent a:visited, .rowContainer .kmTextContent a .yshortcuts { color: #B49A70; font-weight: normal; text-decoration: underline } .rowContainer .kmTextContent .kmParagraph { padding-bottom: 9px } .kmImageContent { padding: 0; font-size: 0 } .kmImage { padding-bottom: 0; display: inline !important; vertical-align: top; border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none; font-size: 12px; width: 100% } .kmButtonBlockInner, .kmButtonCollectionInner { min-width: 60px; padding: 9px 18px } .kmButtonContentContainer { border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; background-color: #999; border-collapse: separate } .kmButtonContent { color: white; font-family: "Century Gothic", AppleGothic, Arial; font-size: 16px } .kmButton { font-weight: bold; line-height: 100%; text-align: center; text-decoration: none; color: white; font-family: "Century Gothic", AppleGothic, Arial; font-size: 16px } .kmButtonBarContent, .kmButtonCollectionContent { font-family: "Century Gothic", AppleGothic, Arial } .kmVerticalButtonContent { border-collapse: separate } .kmTable .kmTableRow > td:last-child { border-right: none !important } .kmTable .kmTableRow:last-child > td { border-bottom: none !important } .kmMobileOnly { display: none } .kmDesktopWrapHeader, .kmDesktopWrapHeaderMobileNone { display: inline-block } .kmHide { display: none } .kmMobileHeaderStackDesktopNone, .kmMobileWrapHeaderDesktopNone { display: none } .kmDesktopAutoWidth { width: 100% }
Alle
Skjorter
Bluser
Om os

Ordrebekræftelse

Kære {{ first_name|default:'' }}

Tusind tak fordi du vælger at støtte A Working Theory.

Denne e-mail bekræfter din ordre. Vi sender dig en e-mail, så snart din ordre er afsendt.

Dit ordre nummer er {{ order_number }}.
{{ date | date: "%m/%d/%Y" }}.

Faktureringsadresse:

{{ event.extra.billing_address.name|title }}
{{ event.extra.billing_address.address1 }}
{{ event.extra.billing_address.city|title }}, {{ event.extra.billing_address.province }} {{ event.extra.billing_address.zip }}
{{ event.extra.billing_address.country }}

Leveringsadresse:

{{ event.extra.shipping_address.name|title }}
{{ event.extra.shipping_address.address1 }}
{{ event.extra.shipping_address.city|title }}, {{ event.extra.shipping_address.province }} {{ event.extra.shipping_address.zip }} {{ event.extra.shipping_address.country }}

Din ordre:

{% if line_items %} {% for line in line_items %} {% endfor %}
line.title

{{ line.title }}

Quantity: {{ line.quantity }}
Total: {{ line.price|money }}

{% if discounts %}Rabat (code: {{ discounts.first.code }}): {{ discounts_savings|money }}
Subtotal: {{ subtotal_price|money }}
{% for tax_line in tax_lines %}{{ tax_line.title }}: {{ tax_line.price|money }}
{% endfor %} {% if requires_shipping %} Fragt: {{ shipping_price|money }}
{% endif %} Total: {{ total_price|money }}

{% else %}
{% endif %}

FRI FRAGT | NEM RETUR

KONTAKT OS:

kundeservice@aworkingtheory.dk

[www.aworkingtheory.dk](http://www.aworkingtheory.dk)

Stockholmsgade 61, 1.th, 2100 København Ø

Facebook
[https://www.instagram.com/a_working_theory/](https://www.instagram.com/a_working_theory/)

I also need help with adding my payment provider code, it should be under payments. can you help me with that as well?

here is that code:

{% if transaction.gateway == “dibs_easy_checkout” %}
Dibs Transaction id : {{transaction.receipt.x_gateway_reference}}
{% if transaction.receipt.x_card_type %}
Card type: {{ transaction.receipt.x_card_type }}

{% endif %}
{% if transaction.receipt.x_card_masked_pan %}
Card Mask: {{ transaction.receipt.x_card_masked_pan }}
{% endif %}
{% endif %}

Really hope you can help,

B.regards,

Michelle