Jump to content

Linkwise Affiliate intergration in Prestashop


TonyKapa
 Share

Recommended Posts

I work on a PrestaShop 1.7 site and I want to intergrate the Linkwise Affiliate program. I have very little to none php knowledge and I would like any help possible.

They sent me the following two codes.

This for the Order completion / checkout “thank you” page

 

<script async src="//go.linkwi.se/delivery/js/tlwt.js"></script>
<script>
window.lw=window.lw||function(){(lw.q=lw.q||[]).push(arguments)};lw
.l=+new Date;
lw("setProgram", "program ID as given by Linkwise");
lw("setDecimal", "decimal separator i.e. , or .");
</script>
<script>
lw("setCurrency", "numeric currency code, e.g. 978 for Euro");
lw("addItem", {
 id: "ID (as given in the XML) of first product in order"
 ,price: "unit price of first product, without VAT e.g. 13,49"
 ,quantity: "quantity of first product"
 ,payout: "1"
});
lw("addItem", {
 id: "ID (as given in the XML) of second product in order"
 ,price: "unit price of second product, without VAT e.g. 25,16"
 ,quantity: "quantity of second product"
 ,payout: "1"
});
// more items
lw("setCoupon", "0");
lw("thankyou", {
 orderid: "unique order ID"
 ,status: "pending"
});
</script>
<noscript>
<img
src="//go.linkwi.se/delivery/acl.php?program=program_ID&amp;decimal
=,_or_.&amp;itemid[1]=ID_of_first_product&amp;itemprice[1]=unit_pri
ce_of_first_product&amp;itemquantity[1]=quantity_of_first_product&a
mp;itempayout[1]=1&amp;itemid[2]=ID_of_second_product&amp;itemprice
[2]=unit_price_of_second_product&amp;itemquantity[2]=quantity_of_se
cond_product&amp;itempayout[2]=1&amp;coupon_price=0&amp;status=pend
ing&amp;orderid=unique_order_ID" style="width:0px;height:0px;"/>
</noscript>

And this one for the header

<script async src="//go.linkwi.se/delivery/js/tl.js"></script>
<script>
window.lw=window.lw||function(){(lw.q=lw.q||[]).push(arguments)};lw
.l=+new Date;
lw("setProgram", "program ID as given by Linkwise");
lw("setDecimal", "decimal separator i.e. , or .");
</script>

Thanks in advance!

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More