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:
In that object is a customer.orders. This contains an array of the recent Orders the customer has placed.
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?
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...By Jacqui Mar 10, 2023
Upskill and stand out with the new Shopify Foundations Certification programBy SarahF_Shopify Mar 6, 2023
One of the key components to running a successful online business is having clear and co...By Ollie Mar 6, 2023