linked_user_id != $current_user_id) { $signed_up = AreteX_WPI::payeeSignedUp($current_user_id); $_SESSION['current_aretex_payee'] = $signed_up; } if (! $signed_up) { echo "Problem with Payee User Validation ... "; return; } $license = AreteX_WPI::getBasLicense(); $business_name = $license->Business_Name; $account_id = $signed_up->id; $coupons = getResource('coupon_codes'); $couponsA = getCoupons($coupons); global $business_url; $qvar = get_option('aretex_tracking_qvar'); $business_url = get_site_url().'/'.$qvar.'/'; global $explain_deep_link; $explain_deep_link = get_option('aretex_explain_deep') == 'Yes'; // $promo_message = "Mother's Day Offer good through this Sunday.
The Coupon Box is now in the Upper Right Corner of every page. " $promo_message = get_option('aretex_ptr_referrer_message'); $promo_message = trim($promo_message); if (empty($promo_message)) $promo_message = null; ?>
'; echo "

Important Message From $business_name

$promo_message

"; } ?>

Get Credit for Promoting

Earn Commissions & Track Results! By setting up and using Tracking Codes (also known as referral codes or coupon codes) and instructions provided below, you can track and measure the results of your sales efforts.

Different promotion venues may be tracked through your personal referral codes. Link your codes directly to available promotion opportunities, by using the instructions given below.

Your Tracking Codes

To get your personalized Tracking Code:
  1. Choose a media source (Tracking Code are based on the selected media source).
  2. From the list of your Tracking Code available, choose a Tracking Code or URL.
  3. Then, copy your Tracking Code or URL in order to
    1. paste into your promotion material,
    2. have for your webmaster to add to your website,
    3. have handy for your customers to
      1. type the URL address into their browser or
      2. enter the Tracking Code Into the Referral (or Coupon) box at purchase time.

How It Works


'; foreach($list as $code=>$detail) { $val = $detail['src_abrv']; $desc = $detail['source_media']; $opt[$val] = $desc .'-'.$val; } foreach($opt as $val=>$desc) { if ($val == 'WEB') $selected = 'selected="selected"'; else $selected = ''; $str .= "\n"; } $str .= ''; return $str; } function getCoupons($obj) { $list = array(); if ($obj) { $arr = get_object_vars($obj); foreach($arr as $code => $coupon) { $applies = ''; $list[$code]['description'] = $coupon->summary->description; $list[$code]['source_media'] = $coupon->source_media; $list[$code]['src_abrv'] = media_source_abrev($code); $summary = $coupon->summary; if ($summary->applies_to == 'Category') { foreach($summary->categories as $cat) $applies .= $cat->cat_name.'
'; } // $list[$code]['applies'] = $applies; $list[$code]['mnemonics'] = $coupon->mnemonics; } } return $list; } function build_coupon_list($list) { if (empty($list) || (! is_array($list))) { return "No Offers Currently Available"; } global $business_url; global $business_name; $str = '
' ."\n"; $str .= '
'; $str .= ''; $str .= '

Click the + (plus sign) next to the Offer you want to promote to get the tracking code for that specific offer.

'; $str .= '
'; $str .= '
'; foreach($list as $code=>$detail) { extract($detail); if (empty($description)) $description = 'General Tracking Code'; $remember = ''; $c = 0; if (! empty($mnemonics)) { foreach($mnemonics as $mnem) { if (! empty($mnem->standard_mnemonic)) { $remember .= $mnem->standard_mnemonic.', '; $c++; } } } $remember = trim($remember,', '); $etor = ''; $thisval = 'this'; $codeval = 'code'; $codevalCap = 'Code'; $endval = ''; if ($c > 1) { $thisval = 'these'; $codeval = 'codes'; $codevalCap = 'Codes'; $endval = '
Because there are several codes that can be used, they are separated by commas.'; } if (! empty($remember)) { $etor =<<
 
Splash Code Tracking $codevalCap: $remember
$business_name has provided you with $thisval easy to remember Splash $codevalCap.
You may give $thisval $codeval to your customers to use in the coupon box at check out. $endval
END_ETOR; } $deep_link = ''; global $explain_deep_link; if ($explain_deep_link) { $deep_link=<<
 
Specific URL:
$business_url$code/replace-with-page-name
To promote a specific page on this web site, you may use the URL above as a sample. Replace the term "replace-with-page-name"" with the actual page name from the site. Contact $business_name if you have any problems.
END_DL; } $str .=<<
$description
$etor
 
Tracking Code: $code
You may give this code to your customers to use in the coupon box at check out.
 
URL: $business_url$code
You may use this URL as a "click through link" or have your customers type it into the browser.
$deep_link
END_CODE; } $str .= ''; $str .= ' '; $str .= ' '; return $str; } ?>