Creating a account/order_history liquid template

Shopify Partner
221 0 13

Hello people, 

Ive created a liquid template by the name of customers/order_history.liquid, but I cant seem to link to that page. Do I have to reference this page somewhere or do something else to see this page? What would the url to see this page be?

 

Entrepreneur, Developer, Geek, Gamer and very passionate about WEB development! :P

Need help with your Shopify Store? Contact me: jfeuchter@gmail.com :D
0 Likes
Highlighted
Shopify Partner
30 0 2

I am really not that experienced so I could be wrong, but wouldn't you need to then add it somewhere on theme.liquid?

For example, my theme calls up some of my customer templates like so:

  {% if shop.customer_accounts_enabled %}
                  <li class="site-nav__item site-nav__expanded-item">
                    <a class="site-nav__link site-nav__link--icon" href="/account">
                      <span class="icon-fallback-text">
                        <span class="icon icon-customer" aria-hidden="true"></span>
                        <span class="fallback-text">
                          {% if customer %}
                            {{ 'layout.customer.account' | t }}
                          {% else %}
                            {{ 'layout.customer.log_in' | t }}
                          {% endif %}
                        </span>
                      </span>
                    </a>
                  </li>
                {% endif %}

 

0 Likes
Shopify Partner
221 0 13

Dont know didnt work for me D: But what I did to fix this was I created a page.order_history and commented the content. on the code and added the code I wanted. Then created the page using the page.order_history and presto. Not the best way, but never the less a good workaround :P

Entrepreneur, Developer, Geek, Gamer and very passionate about WEB development! :P

Need help with your Shopify Store? Contact me: jfeuchter@gmail.com :D
0 Likes