Okay, I did go over everything again today. I did notice that I had created a "Program", set the commission rate and all that. I never went and set the affiliate as a part of that program. I have done it now and I still have no commissions being tracked in the DB.
Emails are still sent out saying that a commission was generated for xxx order for xxx dollars but there is nothing reflecting that in the admin or in the affiliates account.
The lower part of my tpl_footer looks like this
Code:
<!--eof-ip address display -->
<?php
// bof JROX integration
if (isset($zv_orders_id) && (int)$zv_orders_id > 0 && isset($order_summary) && is_array($order_summary)) {
if (!isset($_SESSION['affiliate_order_id']) || $_SESSION['affiliate_order_id'] != $zv_orders_id ) {
$_SESSION['affiliate_order_id'] = $zv_orders_id;
$commissionable_order_formatted = number_format($order_summary['commissionable_order'], 2, '.', '');
echo '<script language="javascript" type="text/javascript" src="/affiliates/sale.php?amount=' . $commissionable_order_formatted . '&trans_id=' . $order_summary['order_number'] . '"></script>';
}
}
// eof JROX integration
} // flag_disable_footer
if (ZEN_CONFIG_USER_TRACKING == 'true') { zen_update_user_tracking(); } ?>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5115033-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</div>
Is the .htaccess code supposed to be added to my public_html/.htaccess or should the JROX .htaccess be in the affiliates dir?
Would the .htaccess be causing the problem that I'm having?
Thank you,
John