Jump to content

Integrate WHMCS with website


Recommended Posts

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

Link to comment
Share on other sites

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

 

shopperapproved.png

Link to comment
Share on other sites

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}

Link to comment
Share on other sites

  • 2 weeks later...

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}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated