CRE Loaded integration
Una soluzione di e-commerce completa e facile da usare, che combina un potente software per negozi online e un programma di carrello degli acquisti completo.
L’integrazione con CRE Loaded avviene inserendo lo script di tracciamento delle vendite nella pagina di conferma. Per ottenere i valori di OrderID e TotalSale, lo snippet si connette al database CRE Loaded e recupera i valori da lì.
Individua il file ‘checkout_success.php’
Trova e apri il file ‘checkout_success.php’
Trova la posizione corretta per l’integrazione nel file
Nel file ‘checkout_success.php‘ trova queste linee:
// load all enabled checkout success modulesrequire(DIR_WS_CLASSES . 'checkout_success.php');
Inserisci il codice
Prima di queste linee inserisci questo codice:
//--------------------------------------------------------------------------
// 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)
//--------------------------------------------------------------------------
// 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 != "")
{
$pap_sale_img = '<img src="https://URL_TO_PostAffiliatePro/scripts/sale.php?TotalCost='.$pap_total_value.'&OrderID='.$pap_order_id.'" width=1 height=1>';
}
//--------------------------------------------------------------------------
// END of Post Affiliate Pro code
//--------------------------------------------------------------------------
Individua il modello
Trova e apri il file ‘/templates/content/checkout_success.tpl.php‘
Trova il luogo corretto per l’integrazione
In questo file trova:
</table></form>
Dopo questa riga inserisci questo codice:
<?php
//--------------------------------------------------------------------------
// START of Post Affiliate Pro code
//--------------------------------------------------------------------------
echo $pap_sale_img;
//--------------------------------------------------------------------------
// END of Post Affiliate Pro code
//--------------------------------------------------------------------------
?>
Sei pronto
Il carrello di CRE Loaded è ora integrato. Ogni volta che il cliente entra nella pagina di conferma dell’ordine, il codice di tracciamento viene richiamato e registra una vendita per l’affiliato di riferimento.
Nota: Testato su CRE Loaded 6.2 Pro B2B 6.2.06
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!
Post Affiliate Pro installation
Easily install Post Affiliate Pro with our step-by-step guide. Ensure server compatibility, create a database, and start managing affiliates today!
Cookies created by Post Affiliate Pro
Discover the various cookies created by Post Affiliate Pro, including tracking and interface cookies, designed to optimize your affiliate and merchant panel experiences. Learn about their functions, lifetimes, and how they enhance tracking and authentication processes. Visit now to explore detailed insights and manage your cookie settings effectively!
Discover the seamless Auto-Registering Affiliates feature in Post Affiliate Pro that automatically creates affiliate accounts using email addresses in tracking codes. Activate it in your Merchant panel and effortlessly generate links and banners. Note: Visibility of email addresses may pose a security risk. Explore more at [Quality Unit Support](https://support.qualityunit.com/987859-Auto-Registering-Affiliates).