I came up with another feature though that is of use - order age.
If the customer orders list is newer than 35 days. This is within credit card billing cycle for fraud and chargebacks.
I tested this on a dev site - seemed to work. Hard to test completely on a dev site based on the others parameter checks I have.
PHP Code:
$customers_orders = $db->Execute("select o.orders_id, o.date_purchased
from " . TABLE_ORDERS . " o
where customers_id = '" . (int)$order_check->customers_id . "'");
$days35fromnow = strtotime("+35 days", strtotime("<date-from-db>"));
$no_history = ($customers_orders->date_purchased >= $days35fromnow);
Bookmarks