Cart    Account    Contact    Newsletter Signup    Showcase    Login    Signup

Developers Docs

Customer Orders

Internal Tags

  • {orders} (pair) - The loop of orders
    • order_id
    • created format="%n/%d/%y"
    • address - Billing and Shipping Fields
    • status - Order status (text)
    • status_id - Numberical order status
    • total 
Example from Blank template: (file: customer/orders.html )
{exp:brilliant_retail:customer_orders}
      {orders}
         <tr>
            <td class="col1">
                <a href="{path='customer/order_detail/{order_id}'}">{order_id}</a></td>
            <td class="col2">
                {created format="%n/%d/%y"}</td>
            <td class="col3">
                {address}
                  {shipping_fname} {shipping_lname}
                {/address}</td>
            <td class="col4">
                {status}</td>
            <td class="col5">
                {currency_marker}{total}</td>
        </tr>
     {/orders}
{/exp:brilliant_retail:customer_orders}

Comments

  • By RobertSteck on Tuesday April 26th, 2011 at 12:57pm

    Is there a “no results” tag? I am trying to do this:

    {exp:brilliant_retail:customer_orders order_id=”{segment_3}”}
      {orders}
      {if no_results}

        Your order was not found.

      {/if}
      ORDER INFO
      {/orders}
    {/exp:brilliant_retail:customer_orders}

Add Your Comments


You must be logged in to comment.