TonyKapa Posted November 10, 2021 Share Posted November 10, 2021 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&decimal =,_or_.&itemid[1]=ID_of_first_product&itemprice[1]=unit_pri ce_of_first_product&itemquantity[1]=quantity_of_first_product&a mp;itempayout[1]=1&itemid[2]=ID_of_second_product&itemprice [2]=unit_price_of_second_product&itemquantity[2]=quantity_of_se cond_product&itempayout[2]=1&coupon_price=0&status=pend ing&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! Link to comment Share on other sites More sharing options...
joseantgv Posted November 11, 2021 Share Posted November 11, 2021 You need to develop a module to replace the variables.. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now