This is not built into Zen Cart ...
You could customize the Discount Coupon order totals file by adding the code in RED:
Code:
// remove if fails address validation
if (!$foundvalid) {
$messageStack->add_session('checkout_payment', TEXT_REMOVE_REDEEM_COUPON_ZONE, 'caution');
$this->clear_posts();
if (!$foundvalid) zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL',true, false));
}
// bof: remove if discount and has an order
if ($foundvalid && $coupon_result->fields['coupon_id'] == NEW_SIGNUP_DISCOUNT_COUPON) {
$chk_first_order = $db->Execute("select orders_id from " . TABLE_ORDERS . " where customers_id = " . $_SESSION['customer_id']);
if (!$chk_first_order->EOF) {
$foundvalid = false;
$messageStack->add_session('checkout_payment', 'Only allowed on first order', 'caution');
$this->clear_posts();
if (!$foundvalid) zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL',true, false));
}
}
// eof: remove if discount and has an order
to the file:
/includes/modules/order_total/ot_coupon.php
This will then use the setting in the Configuration ... GV Coupons ... for the:
New Signup Discount Coupon ID#
and check the customer for Orders and stop it from being used ...