I would edit the buy button function in the functions_general.php just above the line for:
Code:
$button_check = $db->Execute("select product_is_call, products_quantity from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");
And put in a test on the:
(int)$product_id
to see if that product is in the table:
orders_products
for the customers_id using:
$_SESSION['customer_id']
If it is, change the value in the CASES below that so that to add a new case and change the:
$return_button
so it is a message such as:
$return_button = 'You only get 1!';