ddosprotection Posted May 11, 2014 Share Posted May 11, 2014 As I can integrate WHMCS to shopperapproved.com - PLEASE HELP ME I want add my code script shopperapproved on WHMCS Before of complete order of my clients example https://www.clients.ddoshostingprotection.com/cart.php?a=complete I modify file /home/xxxxxx/public_html/clients/templates/orderforms/cart/complete.tpl add my CODE ============ <script type="text/javascript"> var sa_values = { 'site':11071 }; function saLoadScript(src) { var js = window.document.createElement('script'); js.src = src; js.type = 'text/javascript'; document.getElementsByTagName("head")[0].appendChild(js); } var d = new Date(); if (d.getTime() - 172800000 > 1399671955000) saLoadScript('//www.shopperapproved.com/thankyou/rate/11071.js'); else saLoadScript('//direct.shopperapproved.com/thankyou/rate/11071.js?d=' + d.getTime()); </script> BUT NOTHING NOT LOAD MESSAGE SCRIPT when my clients completed order. Question : who can tell me what file change on whmcs attached 1 image of setup on www.shopperapproved.com 0 Quote Link to comment Share on other sites More sharing options...
ddosprotection Posted May 12, 2014 Author Share Posted May 12, 2014 I want add script to my Order Confirmation page WHMCS i modify file complete.tpl and add my script popup of www.shopperapproved.com /home/xxxxxx/public_html/clients/templates/orderforms/cart/complete.tpl but nothiing not work script on file completed.tpl attached image of setup shopperapproved.com 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 12, 2014 Share Posted May 12, 2014 have you tried putting {literal} before the start of the script and {/literal} after it ? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted May 12, 2014 Share Posted May 12, 2014 have you tried putting {literal} before the start of the script and {/literal} after it ? you may try to place your integration code this way: {literal} <script type="text/javascript"> var sa_values = { 'site':11071 }; function saLoadScript(src) { var js = window.document.createElement('script'); js.src = src; js.type = 'text/javascript'; document.getElementsByTagName("head")[0].appendChild(js); } var d = new Date(); if (d.getTime() - 172800000 > 1399671955000) saLoadScript('//www.shopperapproved.com/thankyou/rate/11071.js'); else saLoadScript('//direct.shopperapproved.com/thankyou/rate/11071.js?d=' + d.getTime()); </script> {/literal} 0 Quote Link to comment Share on other sites More sharing options...
ddosprotection Posted May 22, 2014 Author Share Posted May 22, 2014 Thank you very much, i solved this issue you may try to place your integration code this way: {literal} <script type="text/javascript"> var sa_values = { 'site':11071 }; function saLoadScript(src) { var js = window.document.createElement('script'); js.src = src; js.type = 'text/javascript'; document.getElementsByTagName("head")[0].appendChild(js); } var d = new Date(); if (d.getTime() - 172800000 > 1399671955000) saLoadScript('//www.shopperapproved.com/thankyou/rate/11071.js'); else saLoadScript('//direct.shopperapproved.com/thankyou/rate/11071.js?d=' + d.getTime()); </script> {/literal} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.