There's a session variable set if the current customer has entered your store using an affiliate link, so you'd bracket your custom coupon-limiting code with:
Code:if (isset($_SESSION['referrer_key']) && zen_not_null($_SESSION['referrer_key'])) { <your custom code here> }
Bookmarks