Hello there,
I am working on customer account and it’s been days that I am trying to figure out how to make the orders history url (/account/orders) different than /account url.
Or if it is not possible, then I want to create a new url called: /account/order-history and inject this code in that page:
{{ 'customer.orders.title' | t }}
{% if customer.orders.size > 0 %}
{% paginate customer.orders by 5 %}
{% for order in customer.orders %}
{{ order.name | link_to: order.customer_url }}{% if order.cancelled %}: {{ 'customer.order.cancelled' | t }}{% endif %}
{{ 'customer.orders.date' | t }}: {{ order.created_at | date: settings.month_day_year }}{{ 'customer.orders.total' | t }}: {{ order.total_price | money }}{{ 'customer.orders.payment_status' | t }}: {{ order.financial_status_label }}{{ 'customer.orders.fulfillment_status' | t }}: {{ order.fulfillment_status_label }}
{% endfor %}
{% if paginate.pages > 1 %}
{% endif %}
{% endpaginate %}
{% else %}
{{ 'customer.orders.none' | t }}
{% endif %}
Can someone help me please? I am really struggling to make these changes to my site.
Thank you in advance for your assistance.
Meriem