This is an example of how to set up the product details screen for the Shopify themes "Rise" and "Dawn" to display "Previously Purchased" status for previously purchased products for logged-in accounts, just like Amazon.
Example of settings to display that a product has been purchased in the past on the product details screen for the theme "Rise" when using a logged-in account

For products with multiple variants, display the purchase status for each variant

[How to set it up] Add a custom Liquid section to the product information block in the product template and insert the code.

