osc2nuke integration
L’integrazione con osc2nuke viene effettuata inserendo lo script di monitoraggio delle vendite nella pagina di conferma. Per ottenere i valori di OrderID e TotalSale, lo snippet si connette al database di osc2nuke e recupera i valori direttamente da lì.
Modifica il modello
Trova e apri il file ‘modules/catalog/checkout_success.php‘
Individua il percorso dell’integrazione
Trova la seguente linea nel file:
require(DIR_WS_CLASSES . 'checkout_success.php');
Integrazione
Aggiungi il seguente codice prima di questa linea:
//--------------------------------------------------------------------------
// integration code
//--------------------------------------------------------------------------
// get order id
$sql = "select orders_id from ".TABLE_ORDERS.
" where customers_id='".(int)$customer_id.
"' order by date_purchased desc limit 1";
$pap_orders_query = tep_db_query($sql);
$pap_orders = tep_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.
"' and class='ot_subtotal'";
$pap_orders_total_query = tep_db_query($sql);
$pap_orders_total = tep_db_fetch_array($pap_orders_total_query);
$pap_total_value = $pap_orders_total['value'];
// draw script to register sale
if($pap_total_value != "" && $pap_order_id != "") {
print '<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>'."
</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 integration code
//--------------------------------------------------------------------------
Overview of Post Affiliate Network
Discover the power of Post Affiliate Network for managing affiliate programs across multiple brands from a single account.
Copy Post Affiliate Pro to your server
Learn to install Post Affiliate Pro on your server effortlessly with our step-by-step video guide using an FTP client.
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!