Freeway integration
Un software gratuito per i negozi online che rende la vendita dei tuoi servizi facile e veloce.
L’integrazione con Freeway viene fatta inserendo lo script di monitoraggio delle vendite nella pagina di conferma. Per ottenere i valori di OrderID e di TotalSale, lo snippet si collega al database di Freeway e recupera i valori direttamente da lì.
Modifica il modello
Trova e apri file ‘/templates/content/checkout_success.tpl.php‘.
Individua il posto giusto per l’integrazione
Nel file trova questa linea:
<?php if(AFFILIATE_COMMISSION_JUNCTION=='true'){
Aggiungi il codice dell’integrazione
Inserisci il seguente codice appena sopra quella linea:
<?php
//--------------------------------------------------------------------------
// STAT - PAP 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 invisible image 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 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 - PAP Integration code
//--------------------------------------------------------------------------
?>
L’integrazione è completata
Ora è integrato. Ogni volta che il cliente entra nella pagina di conferma dell’ordine il codice di tracciamento si attiverà e registrerà una vendita per l’affiliato di riferimento.
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!
How can I Become an Affiliate for Post Affiliate Pro tracking software?
Join the Post Affiliate Pro affiliate program! Sign up now to earn commissions by promoting top tracking software. Start today!
How can I verify if my page is correctly integrated with Post Affiliate tracking codes ?
Easily verify your Post Affiliate Pro tracking code integration with simple steps and troubleshooting tips. Ensure accurate affiliate tracking!
How can I find all brands or stores running affiliate programs on your platform?
Post Affiliate Pro doesn’t list all brands with affiliate programs, but you can explore select programs in our affiliate program directory.