How do I display purchase history on my customers account

Richthedude420
Visitor
2 0 0

I want to add a customers purchase history to there log in page. When they click on their product it would send them to a custom page. I found a site that has something along the lines of this in there scripts. 

  <div class="account-hunts">
    <h2>YOUR TEXT HERE</h2>
    <div class="info-alert">
Purchase here etc <a href="/search" style="text-decoration: underline; color: white;">Buy Ticket</a>
    </div>
    <div class="account-hunt-list">
      
        
          <a href="/pages/wisconsin">
            <div class="account-hunt">
              <div>
                <img src="//cdn.shopify.com/s/files/1/0480/6085/8532/products/wisconsin-01_small.png?v=1600124951" alt="Wisconsin">
              </div>
              <div>Wisconsin</div>
            </div>
          </a>
        
      
    </div>
Replies 2 (2)

Julie
Shopify Staff
1109 106 367

Hi, @Richthedude420!

Julie here from Shopify Support.

I can definitely see how it would be useful to have your customers view their purchase history when they login. However, if you have customer accounts enabled, then your customers will already have access to their purchase history, along with the current order status for any purchases they make, when they login to their account on your online store. More information on this is outlined in our help doc on Customers.

Now, are you able to elaborate on what you mean by "when they click on their product, it would send them to a custom page"? I see that you shared a snippet of code, but if you can share a link or screenshot of what this looks like on a website, that would really help! With a bit more context, I'd love to see if I can offer some guidance. 

Looking forward to your response! 

Julie | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Choong_HueApps
Shopify Partner
156 9 15

As @Julie mentioned, Shopify comes with a default purchase history when you enabled customer account for your store.

 

However, if you wish to show your customers their purchase history without them having an account or having to login, you can consider trying the No-login Order History PRO app.

 

It securely verifies all your customers (with or without account) via email address OTP, thus saving the need for password or customer account. From their purchase history, customers can easily make repeat order with 1 click "Shop this Order again" button.

 

You can try it out from the Shopify App Store for free here (5 days free trial)

 

I would like to know your thought on this.

 

Choong_HueApps_0-1675931115431.png

 

Blog Articles Filter & Search PRO ➜ Blog Article Tag filters + Blog Article search + Featured Articles for Shopify blog.