Shopify themes, liquid, logos, and UX
I am looking to add an alert on the product page that says the customer already purchased this item. Ideally it would also show on the items on the collection pages as most of my customers add to cart from those pages. It can be text, or an icon/banner. I have looked through the discussions but cannot find a solution. Is this possible? Any help would be appreciated. My site is americantraditioncookiecutters.com
Do you force your customers to log into their account? For something like this to work with theme code, you'd need to. Now forcing a log in can create friction in the purchase flow and effect conversions so that's something you first need to consider before starting down the path.
I appreciate your response. I do realize that it will only work with those who log in to their account. I do not wish to force people to log in to purchase, but was hoping to offer it to those who do log in. I guess it may be too difficult to implement at the current time. Maybe sometime down the road.
So if this is really just for those that do log in then there's some points to consider.
Once logged in the theme will have access to the Customer object:
https://shopify.dev/docs/themes/liquid/reference/objects/customer
In that object is a customer.orders. This contains an array of the recent Orders the customer has placed.
https://shopify.dev/docs/themes/liquid/reference/objects/order
We're not into the code yet just in case you want to give it a crack first but for a general flow:
This is what I need. Do you know how to add this to my store?
I am looking for exactly the option can you type out the exact code and where to put it?
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025