A user wants to add purchase history to customer login pages with a custom product detail view. They shared a code snippet, though it appears corrupted or reversed in the post.
Default Shopify Functionality:
Shopify already provides purchase history access when customer accounts are enabled
Customers can view order status and past purchases through their account dashboard
This built-in feature may already meet the basic requirement
Alternative Solution:
The “No-login Order History PRO” app was suggested for displaying purchase history without requiring account login
Uses email OTP verification instead of passwords
Includes a “Shop this order again” button for easy reordering
Offers a 5-day free trial
Status: The discussion remains open, awaiting clarification on whether the user needs functionality beyond Shopify’s default customer account features, particularly regarding the “custom page” requirement mentioned in the original post.
Summarized with AI on November 23.
AI used: claude-sonnet-4-5-20250929.
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.
## YOUR TEXT HERE
Purchase here etc Buy Ticket
Wisconsin
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.
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.