I'm trying to integrate affiliate tracking which needs to be placed on success.tpl but variables are already cleared before success page is displayed so that tracking code not getting values for the variable.
It needs value for following variable for affiliate tracking.
CRID=<?php echo $orderDetails['customer_id']; ?>
ORDERID=<?php echo $orderDetails['order_id']; ?>
ORDERAMNT=<?php echo $orderDetails['total']; ?>
CUR=<?php echo $orderDetails['currency']; ?>
I'll really appreciate if i get some hints how to get values for variable in success.tpl.
Thanks.
Code: Select all
if (isset($this->session->data['order_id'])) {
Code: Select all
$this->load->model('checkout/order');
$data['orderDetails] = $this->model_checkout_order->getOrder($this->session->data['order_id']);
Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount
It should work fine in 2.3 as well without any changes.taran_117 wrote:Its not working for ver 2.3.
Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount
Users browsing this forum: No registered users and 22 guests