I have downloaded the Canned Message extension and set it up for V3 But when I'm storing messages in the database with variable, the twig file is displaying as a variable.
I am using this in the order info page in the admin panel
This is my twig file code
Code: Select all
<div class="form-group">
<label class="col-sm-2" for="cannedmessage"><a href="{{ new_cm }}" class="btn btn-default"><i class="fa fa-plus" aria-hidden="true"></i> Canned message</a></label>
<div class="col-sm-10">
<select name="cannedmessage" id="cannedmessage" class="form-control">
<option>Select</option>
{% for cannedmessage in cannedmessages %}
{% if cannedmessage.status == 1 %}
{{ cannedmessage.description | raw }}
<option value="{{ cannedmessage.description }}">{{ cannedmessage.title }}</option>
{% endif %}
{% endfor %}
</select>
</div>
</div>
Please help me how to solve this