Jump to content

Shareasalecom affiliate tracking code issue


Recommended Posts

Hello,

 

Im trying to implement the tracking code of sharesale.com to send info (product price without shipping cost) but I cannot make it work...

 

If someone can help... below are the two files that I have modified : 

 

 

/modules/paypal/views/templates/front/order-confirmation.tpl

<img src="https://shareasale.com/sale.cfm?amount={$order.total_products}&tracking={$order.id_order}&transtype=sale&merchantID=74223" width="1" height="1">

/controllers/front/OrderConfirmationController.php

$order = new Order($this->id_order);
   $cart = new Cart($order->id_cart);
   $description="";
   foreach ($cart->getProducts() AS $k=>$v){
   $description.=$v['name']."X".$v['quantity'];
   }   
   $description=urlencode($description);
  
   $this->context->smarty->assign(array(
   'total_products'=>$order->total_products,
   'description'=>$description
   ));
Iam using Prestashop 1.6.0.11 with PayPal official module v3.8.1

 

PS : the below code sucessfully send price (order price + shipping)

<img src="https://shareasale.com/sale.cfm?amount={$order.total_paid}&tracking={$order.id_order}&transtype=sale&merchantID=74223" width="1" height="1"> 
Link to comment
Share on other sites

  • 1 year later...
  • 8 months later...

Hi there,

to implement the shareasale tracking code i use only this img pixel and works ok. It's inserted in all confirmation.tpl pages. (paypal, default presta, credit card, express checkout...)

Now i would like to have in the pixel also this data: 

skulist=SKU1,SKU2
pricelist=PRICE1,PRICE2
quantitylist=Quantity1,Quantity2

as specified here: http://shareasale.com/itp/custom.htm#_Toc520969531

Anyone have a solution?

 

Link to comment
Share on other sites

  • 1 month later...
  • 5 months later...
On 9/13/2019 at 8:25 AM, espacious said:

Ok i found a solution, if anyone interested contact me. 

Hi espacious,

we have kinda the same issue.  We use Prestashop 1.7

We try to get a tracking pixel from belboon in to our orderconfirmation.tpl but none of the global smarty variables are giving a value or amount.

The tracking worked with order_id and module_id  (just to test if it is working at all).

Please help

best regards

Mark  

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...