I want to show this message on the product page
{if ordered}You bought this item{/if} view order
make a request to db using two tables
- cscart_order_details (check product_id here)
- cscart_orders (check user_id here)
How?
So do you receive any error or empty result for this request? Please make sure that $product_id and $user_id variables are not empty
Yes, can you give me the snippet for the db query to check if the buyer has purchased it before and the link to the order? Thanks