XtCommerce integration
Un sistema di carrello degli acquisti.
L’integrazione con XtCommerce si fa cambiando il file checkout_success.php.
Modifica il modello
Trova e apri il file checkout_success.php.
Integrazione
Inserisci il codice seguente:
//--------------------------------------------------------------------------
// Post Affiliate Pro code
// The code below will get the order_id and total value of recent order
// from the database and displays invisible image that registers the sale
// for affiliate (if some affiliate referred this visitor)
//--------------------------------------------------------------------------
$sql = "select orders_id from ".TABLE_ORDERS." where customers_id='".$_SESSION['customer_id']."' order by orders_id desc limit 1";
$pap_orders_query = xtc_db_query($sql);
$pap_orders = xtc_db_fetch_array($pap_orders_query);
$pap_order_id = $pap_orders['orders_id'];
// get total amount of order
$sql = "select value from ".TABLE_ORDERS_TOTAL.
" where orders_id='".(int)$pap_order_id."'";
$pap_orders_total_query = xtc_db_query($sql);
$pap_orders_total = xtc_db_fetch_array($pap_orders_total_query);
$pap_total_value = $pap_orders_total['value'];
// draw sale tracking code to register sale
if($pap_total_value != "" && $pap_order_id != "")
{
$smarty->assign('pap_sale_tracking','<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>'."
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');var sale = PostAffTracker.createSale();
sale.setTotalCost('$pap_total_value');
sale.setOrderID('$pap_order_id');
PostAffTracker.register();
</script>");
}
//--------------------------------------------------------------------------
// END of Post Affiliate Pro code
//------------------------------------------------------------------
subito prima della linea:
if (DOWNLOAD_ENABLED == 'true')
Modifica il modello
Trova ed apri il file /templates/xtc4/module/checkout_success.html.
Integrazione
Inserisci il codice seguente:
<!-- START of Post Affiliate Pro code -->
{$pap_sale_tracking}
<!-- END of Post Affiliate Pro code -->
subito prima della linea:
{if $downloads_content neq '}
Post Affiliate Pro Alternative
Discover why Post Affiliate Pro is the top choice in affiliate tracking software with robust features and stellar customer support.
Overview of Post Affiliate Network
Discover the power of Post Affiliate Network for managing affiliate programs across multiple brands from a single account.
Discover comprehensive fraud protection with Post Affiliate Pro. Our tool identifies fraudulent transactions across clicks, sales, sign-ups, and login attempts. Customize settings in the merchant panel to safeguard your business effectively. Explore features such as IP and URL restrictions, duplicate recognition, and country blacklisting. Ensure secure and reliable affiliate operations with our advanced fraud protection solutions.
How to integrate Post Affiliate Pro with Google Analytics?
Learn how to seamlessly integrate Post Affiliate Pro with Google Analytics to effectively track affiliate-referred visits. Follow our step-by-step guide to generate optimized URLs using the Google Analytics URL builder, decode them, and use them as Destination URLs in your campaigns. Visit now to enhance your tracking capabilities.
9. Integrate the affiliate software with your website
Integrate your affiliate software seamlessly with your website for effective tracking of referrals and commissions. Set it up right!
How to integrate Post Affiliate Pro (Network) with 3rd party affiliate systems?
Learn how to integrate Post Affiliate Pro with 3rd-party affiliate systems. Follow our step-by-step guide to streamline your affiliate tracking!