This topic contains 2 replies, has 2 voices, and was last updated by Rio 6 months, 4 weeks ago.
-
Topic
-
Hello Masters,
I’ve tried to order, checkout and receive an email order confirmation in orocommerce 1.5 and its working well…
after I customize the order confirmation email template through admin site, I added logos after that when I tried to checkout … I got an error variable “item” doesn’t exist… Then I change it back to the default but still got the same error. I did cache:clear also but still got the error…123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051Variable "item" does not exist in <!DOCTYPE html><html><head></head><body><h1>Hello, {{ entity.customerUser|oro_format_name }}!</h1><p>Thank you for order from {{ entity.website|oro_format_name }}. If you have any questions about your order, <a href="mailto:{{ entity.owner.email|oro_html_sanitize }}" rel="nofollow">please contact us.</a></p><p> </p><h3>Please see your order details below.</h3><h4>Billing Information</h4><p>{{ entity.billingAddress|oro_format_address }}</p><h4>Shipping Information</h4><p>{{ entity.shippingAddress|oro_format_address }} {% set payment_methods = get_payment_methods(entity) %} {% if payment_methods|length == 1 %}</p><h4>Payment Method:</h4><p>{{ payment_methods[0] }} {% elseif payment_methods|length > 1 %}</p><h4>Payment Methods:</h4><p>{{ payment_methods|join(', ') }} {% endif %} {% if entity.shipUntil or entity.customerNotes %}</p><h4>Additional Information</h4><p>{% if entity.shipUntil %} <strong>Do Not Ship Later Than: </strong>{{ entity.shipUntil|oro_format_date }} {% endif %} {% if entity.customerNotes %} <strong>Notes: </strong> <br />{{ entity.customerNotes|oro_html_sanitize }} {% endif %} {% endif %}</p><p>{% set data = order_line_items(entity) %} {% for item in data.lineItems %}{% endfor %}</p><table style="border: 1px solid black; margin-top: 10px;"><thead><tr><th><strong>Item</strong></th><th><strong>Quantity</strong></th><th><strong>Price</strong></th><th><strong>Subtotal</strong></th></tr></thead><tbody><tr><td>{{ item.product_name }}<br />SKU #: {{ item.product_sku }}</td><td>{{ item.quantity|oro_format_short_product_unit_value(item.unit) }}</td><td>{{ item.price|oro_format_price }}</td><td>{{ item.subtotal|oro_format_price }}</td></tr></tbody></table><p> </p><p>{% for total in data.subtotals %}{% endfor %}</p><table><tbody><tr><td>{{ total.label }}</td><td align="right">{{ total.totalPrice|oro_format_price }}</td></tr></tbody></table><p><br />Thank you.</p></body></html> at line 32.Any suggestion about it ?
Thanks in advance
-
This topic was modified 7 months, 1 week ago by
Rio.
-
This topic was modified 7 months, 1 week ago by
You must be logged in to reply to this topic.