Freeway integration
Um software de loja online gratuito que torna a venda de seus serviços fácil e rápida.
A integração com o Freeway é feita colocando o script de acompanhamento de vendas na página de confirmação. Para obter os valores de OrderID e TotalSale, o snippet se conecta ao banco de dados Freeway e recupera os valores de lá.
Editar modelo
Encontre e abra o arquivo ‘/templates/content/checkout_success.tpl.php‘.
Localize o lugar certo para integração
Dentro do arquivo encontre esta linha:
<?php if(AFFILIATE_COMMISSION_JUNCTION=='true'){
Adicione o código de integração
Insira o seguinte código logo acima dessa linha:
<?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
//--------------------------------------------------------------------------
?>
A integração está concluída
Agora está integrado. Toda vez que o cliente entra na página de confirmação do pedido, o código de rastreamento é chamado e ele registrará uma venda para o afiliado indicado.
Post Affiliate Pro Domain parking possible problems
Solve domain parking issues with Post Affiliate Pro. Learn how to fix SSL, CNAME, and DNS errors for smooth domain setup.
Post Affiliate Pro Domain parking guide
Learn to park your custom domain with Post Affiliate Pro. Discover CNAME setup, SSL requirements, and troubleshoot common issues.
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.
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!