Un sistema de carrito de la compra gratuito. OpenCart es una solución de comercio electrónico de código abierto basada en PHP.
Este es el método de integración para el carro de la compra de código abierto OpenCart. La integración se realiza integrando los archivos de la página de agradecimiento.
Puedes hacer un seguimiento de los pedidos por producto, de las comisiones de por vida y también de los cupones.
Editar la acción de confirmación
Ve al directorio de tu carrito catalog/controller/checkout y abre confirm.php para editarlo. Encuentra esta línea:
$data['totals'] = array();
Pon este código debajo de esa línea:
$this->session->data['totals'] = $order_data['totals'];
$this->session->data['pap4_products'] = $data['products'];
Guarda estos archivos y continúa con el siguiente paso.
Editar la acción de éxito
Abre el archivo catalog/controller/checkout/success.php y encuentra esta línea (primera aparición):
if ($this->customer->isLogged()) {
Coloca el siguiente código encima de esa línea:
$data['pap4_orderid'] = $this->session->data['order_id'];
$data['pap4_totals'] = $this->session->data['totals'];
$data['pap4_products'] = $this->session->data['pap4_products'];
if ($this->customer->isLogged()) {
$data['pap4_email'] = $this->customer->getEmail();
}
else {
$data['pap4_email'] = $this->session->data['guest']['email'];
}
unset($this->session->data['pap4_products']);
De nuevo, no olvides guardar los cambios y continuar con el siguiente paso de integración.
Todo el carro como una transacción – Editar vista de éxito
Si quieres procesar todo el pago como una sola transacción en PAP, sigue este paso. Si quieres crear una transacción para cada producto, continúa con el paso 4.
Abrir archivo catalog/view/theme/default/template/common/success.tpl.
Añade estas líneas antes de la última línea que dice ‘echo $footer;‘:
<?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('default1');
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 } ?>
Guarda el archivo y tu tienda estará integrada.
Nota: Los valores de Coupon y Voucher son negativos, por eso lo sumamos directamente al valor del subtotal.
Una transacción por producto – Editar vista de éxito
Este paso no es necesario si ya has utilizado el paso 3.
Abrir archivo catalog/view/theme/default/template/common/success.tpl.
Añade estas líneas antes de la última línea que dice ‘echo $footer;’:
<?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">
<?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
}
?>
Esto registrará una comisión por cada producto pedido.
No olvides integrar tu carrito con el seguimiento de clics para que funcione el seguimiento de las ventas. Puedes colocar el código de seguimiento de clics en el archivo de pie de página del tema: catalog/view/theme/YOUR_THEME/template/common/footer.tpl
The text discusses Post Affiliate Pro, a marketing platform that offers sales tracking tools and integrations with shopping carts and click tracking. It also mentions the ease of use of InSales for creating an online store without the aid of developers, and offers a free account creation for Post Affiliate Pro. The platform provides options for commission tracking by order and product, suggests integration with ShopSite, and offers resources for other e-commerce platforms. The integration of Post Affiliate Pro with CommerceGate and Shopware for online payment processing is also discussed, along with the necessary steps for integration. The text also provides information on the company and its support, knowledge base, and affiliate program.
The article discusses how to integrate Post Affiliate Pro with the OpenCart e-commerce solution. It provides instructions on editing the confirmation and success pages as well as setting up the cart as one transaction or one transaction per product. The article also mentions a free trial offer and highlights the positive review ratings.
The article discusses Post Affiliate Pro, a tool for affiliate marketing that integrates with various resources such as aMember, Recurly, and Iono. It provides instructions for successful integration and also mentions other relevant resources such as Payrexx and Instamojo. The article also covers the Gravity Forms affiliate program, clear terms and conditions, and the importance of following campaign rules. The text concludes with mentions of Recurly, its features, and customer support options.
The given text provides information about a company, its awards, customer reviews, affiliate program, and templates. It also offers a glossary and directory of its affiliate program. The text mentions the construction of a Post Affiliate Pro account and invites visitors to schedule a call to learn more about it. The website uses cookies and offers contact forms, live chat, and messenger services.