Is Purchased Item
This evaluates whether or not a customer has purchased a specific item. You can use this to flag past purchases for logged in users, or require the purchase of a particular item to gain access to additional information about that item, forums, or other members only content. The customer must be logged in for this to work correctly, and you must store order data in a channel.
If the item has been purchased, 1 is returned, else 0 is returned.
Table of Contents
Parameters
entry_id
The entry id of the product
entry_id="{segment_2}"
Examples
{if '{exp:cartthrob:is_purchased_item entry_id="123"}' }
You have already purchased this item!
{/if}