Jump to content

Affiliate tracking code


Guest

Recommended Posts

Hi, plesase I need help with find variable for price, product id, etc.

 

For information we use Prestashop 1.3.4.0, and affiliate code all parts are good wrote (we test it with affiliate company and all four parts are good send so now I need only put prestashop codes for variables).

Affiliate code has 4 parts and every parts must be put in another tpl file in my theme:

orange - this we know so this is okay, this provided us with an affiliate company itself :)
green - I was able to find out :)

{Product-ID} ---> {$id_order}

{Price of Product} ---> {$order->total_products}
red - unfortunately I can not find anywhere, I tried to read the documentation prestashop etc. but no result :'(

 

in footer.tpl:
<iframe height="1" width="1" frameborder="0" scrolling="no" src="url affiliate company" name="name my website"></iframe>

in order-confirmation.tpl:
<iframe height="1" width="1" frameborder="0" scrolling="no" src="url affiliate company/OID={Product-ID}&AMOUNT={Price of Product}&CURRENCY=EUR&SKU={Product-IDs}&PRQTY={Product Quantities}" name="name my website"></iframe>

in product.tpl:
<iframe height="1" width="1" frameborder="0" scrolling="no" src="url affiliate company/SKU={Product-ID}&PRICE={Price of Product}&CATEGORY={Category Name}&CATID={Category ID}&BRAND={Brand}&RELATED={Related Product-IDs}" name="name my website"></iframe>

in shopping-cart.tpl:
<iframe height="1" width="1" frameborder="0" scrolling="no" src="url affiliate company/SKU={Product-IDs}&PRQTY={Product Quantities}" name="name my website"></iframe>

Edited by Guest (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...