Een gratis winkelwagensysteem. OpenCart is een open source op PHP gebaseerde online ecommerce oplossing.
Dit is een integratiemethode voor open source winkelwagentje OpenCart. De integratie wordt gedaan door bestanden van de bedankpagina te integreren.
U kunt per product bestellingen, levenslange commissies en ook kortingsbonnen volgen.
Bevestigingsactie bewerken
$this->data['totals'] = $total_data;
Er zijn twee plaatsen met deze lijn, gebruik de tweede. Zet deze code onder die regel:
$this->session->data['pap4_totals'] = $total_data;
$this->session->data['pap4_products'] = $this->data['products'];
$this->session->data['pap4_email'] = $this->data['email'];
Sla deze bestanden op en ga verder met de volgende stap.
$this->data['totals'] = $total_data;
Succesactie bewerken
if (isset($this->session->data['order_id'])) {
Het zou rond regel 10 moeten zijn. Zet deze code eronder:
$this->data['pap4_orderid'] = $this->session->data['order_id'];
$this->data['pap4_totals'] = $this->session->data['pap4_totals'];
$this->data['pap4_products'] = $this->session->data['pap4_products'];
$this->data['pap4_email'] = $this->session->data['pap4_email'];
unset($this->session->data['pap4_totals']);
unset($this->session->data['pap4_products']);
unset($this->session->data['pap4_email']);
Vergeet opnieuw niet om de wijzigingen op te slaan en door te gaan naar de volgende integratiestap.
Hele winkelwagen als één transactie – Succesweergave bewerken
Als u de hele betaling als één transactie in PAP wilt verwerken, volgt u deze stap. Als u voor elk product één transactie wilt aanmaken, gaat u verder met stap 4.
<?php
if(isset($pap4_totals) && isset($pap4_orderid) && isset($pap4_email)) {
$subtotal = 0;
foreach ($pap4_totals as $item) {
if ($item['code'] == "sub_total") {$subtotal += $item['value'];}
if ($item['code'] == "coupon") {$subtotal += $item['value'];}
if ($item['code'] == "voucher") {$subtotal += $item['value'];}
}
if ($subtotal < 0) {$subtotal = 0;}
?>
<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('<?php echo $subtotal; ?>');
sale.setOrderID('<?php echo $pap4_orderid; ?>');
sale.setData1('<?php echo $pap4_email; ?>');
PostAffTracker.register();
</script>
<?php } ?>
Sla het bestand op en uw shop is geïntegreerd.
Eén transactie per product – Succesweergave bewerken
Deze stap is niet nodig als u stap 3 heeft geïntegreerd.
<?php
if(isset($pap4_totals) && isset($pap4_orderid) && isset($pap4_email)) {
?>
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
<?php
$i = 0;
foreach ($pap4_products as $item) {
echo "var sale$i = PostAffTracker.createSale();";
echo "sale".$i.".setTotalCost('".$item['total']."');";
echo "sale".$i.".setProductID('".$item['product_id']."');";
echo "sale".$i.".setOrderID('".$pap4_orderid."(".$i.")');";
echo "sale".$i.".setData1('".$pap4_email."');";
$i++;
}
?>
PostAffTracker.register();
</script>
<?php
}
?>
Dit zal een commissie registreren per besteld product.
Vergeet niet om uw winkelwagen te integreren met de kliktracking om de verkooptracking te laten werken. U kunt de kliktrackingcode in het themavoettekstbestand plaatsen: catalog/view/theme/YOUR_THEME/template/common/footer.tpl.
This text provides detailed instructions on integrating Post Affiliate Pro with various e-commerce solutions, including xt:Commerce 4, Volusion, and CoreCommerce. The text explains how to add tracking codes and edit files to complete the integration, and provides alternative plugin options and related resources. Free account creation is available, and the text highlights Post Affiliate Pro as a trusted choice for referral marketing. The article also covers e-commerce template integration with Post Affiliate Pro for tracking sales and calculating commissions.
This article explains different methods for integrating Post Affiliate Pro with various e-commerce software platforms, including Oxid Eshop, AbleCommerce, and InSales. It describes the steps involved in adding sales tracking code and integrating destination pages with click tracking code. The article also discusses different values that can be used for total product costs including VAT and offers instructions for creating widgets and activating plug-ins to track commissions. Restitution and lifetime commissions are also supported. Various text fields for JavaScript code are available in the administrator panel.