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…
<p>Thankyoufororderfrom{{entity.website|oro_format_name}}.Ifyou have any questions about your order,<ahref="mailto:{{ entity.owner.email|oro_html_sanitize }}"rel="nofollow">please contact us.</a></p>
<p>{%ifentity.shipUntil%}<strong>DoNotShip Later Than:</strong>{{entity.shipUntil|oro_format_date}}{%endif%}{%ifentity.customerNotes%}<strong>Notes:</strong><br/>{{entity.customerNotes|oro_html_sanitize}}{%endif%}{%endif%}</p>
There is a known issue related that WYSIWYG editor can break the layout of the email template, as a workaround you can disable it for all the website or write FormTypeExtension that will disable WYSIWYG only for email templates. Currently, WYSIWYG is not compatible with the complex twig layout that contains loops like for.
Yes I got the solution, thanks for reply … Finally I copied the editor to database (oro_email_template) through phpmyadmin, yes that was “for” tag trouble on WSYIWIG when saved :D
Author
Replies
Viewing 2 replies - 1 through 2 (of 2 total)
The forum ‘OroCommerce’ is closed to new topics and replies.
We collect cookie information with a goal to provide you with the best user experience. By using this website, you agree to our use of cookies. Read Oro Inc.’s Cookie policy.
We collect cookie information with a goal to provide you with the best user experience. By using this website, you agree to our use of cookies. Read Oro Inc.’s Cookie policy.