account/myreturnsDetail.template.html

Follow

This template shows the users return in detail.

return

TermData TypeTypical OutputDescription
return.id int 4 The return id
return.credit.id int 4 The associated credit id if true
return.status.id int 5 The current status id
return.status.name varchar Pending The current return status in plain text
return.status.body varchar Pendings status in detail The current return status in detail
return.reason varchar Unwanted item The reason for the return in plain text
return.date.created varchar Tue 11th June 2012, 13:45 The formatted date in plain text
return.date.received varchar Tue 11th June 2012, 13:45 The formatted date in plain text
return.date.updated varchar Tue 11th June 2012, 13:45 The formatted date in plain text
return.product.name varchar Product Name The product name
return.product.warranty.expires varchar Tue 11th June 2014, 13:45 The formatted expiry date in plain text
return.product.warranty.left_days varchar 365 The number of days left
return.order.id int 8 The order id relating to the return
return.cancel_return_button html <button name=”.. A button to cancel the return

return.messages (array)

The return.messages reference is an recursive array that requires a loop to extract the contents.

TermData TypeTypical OutputDescription
user.name int John Smith The name of the user or customer who sent the message
date varchar Tue 11th June 2011, 13:45 The formatted date in plain text
body varchar Hello world The body of the message

Usage

<div class="greyContainer">
    <label>Product</label><p><a href="{{ return.product.link }}">{{ return.product.name }} </a><br />Your Warranty Expires on {{ return.product.warranty.expires }}, and has: {{ return.product.warranty.left_days }} Days left until expiry.</p>
    <label>Reason for Return</label><p>{{ return.reason|raw }}</p>
    <!-- <label>Preferred Method?</label>{{ return.method|raw }}<br /><br /><br /> -->
    <label>Current Status</label><p>{{ return.status.name }}</p>
    <label>Important</label><p><strong>{{ return.status.body }}</strong></p>
    {% if return.received %}<label>Date Received</label>{{ return.date.received  }} {% if return.status.id == '' %}{{ return.cancel_return_button }} {% endif %}<br /><br /><br />{% endif %}
    <label>Updated on</label><p>{{ return.date.updated }}</p>
    {% if credit.id %}<label>Related Credit Note</label><a href="{{ credit.link }}" title="Credit {{ credit.id }}">Credit Note #{{ credit.id }}</a>{% endif %}
</div>
 
<h4>Send us a message about this return<h4>
        <form action="myreturns.php?action=reply" method="post">
            <input id="return" name="return" value="{{ return.id }}" type="hidden" />
            <p><textarea id="message" name="message" style="width:400px; height: 200px" rows="15">Type your message here..</textarea></p>
            <input id="submit" name="submit" value="Send Reply" type="submit" />
        </form>
        {% if return.messages %}
        <h4>You have the following messages relating to this order</h4>
        {% for message in return.messages %}
        <p class="greyContainer"><strong>{{ message.user.name }} wrote on {{ message.date }}</strong><br /><br />
            {{ message.body }}</p><br />
        {% endfor %}
        {% endif %}
        </div>
Have more questions? Submit a request

Comments

Powered by Zendesk