Quote Originally Posted by ShopVille View Post
Hi was wondering if someone could help me (no idea how it is built might be impossible) limit certain coupon codes should not work if the order is an affiliate order?
TIA
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>
    }