Post by allanespinoza » Tue Aug 22, 2017 5:11 pm

Hi,

Please i need any help. I need just add this code:

<!-- BEGIN PHP Live! HTML Code -->
<span style="color: #0000FF; text-decoration: underline; cursor: pointer;" id="phplive_btn_0000090000" onclick="phplive_launch_chat_0()"></span>
<script type="text/javascript">

(function() {
var phplive_e_0000090000 = document.createElement("script") ;
phplive_e_0000090000.type = "text/javascript" ;
phplive_e_0000090000.async = true ;
phplive_e_0000090000.src = "https://xxx.xxx/js/phplive_v2.js.php?v=0|1500091444|2|" ;
document.getElementById("phplive_btn_0000090000").appendChild( phplive_e_0000090000) ;
})() ;

</script>
<!-- END PHP Live! HTML Code -->

To the footer of my opencart. I have make a lot of test adding that code, but dont works. Can you help me please. I just need where i can add this code to show my livechat icon.

Newbie

Posts

Joined
Sun May 28, 2017 2:45 am

Post by MarketInSG » Tue Aug 22, 2017 11:20 pm

Just add it to footer.tpl of your theme. That should do the trick. If you have some modification scripts loaded, remember to hit the refresh cache button.


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by allanespinoza » Wed Aug 23, 2017 10:54 pm

Hi MarketInSG,

I have try that on the default theme of opencart and if i make any change only receive an 500 Error. Did you know how i can add that code on Opencart 3.0.2.0?

Thanks.

Newbie

Posts

Joined
Sun May 28, 2017 2:45 am

Post by MarketInSG » Sun Aug 27, 2017 11:01 pm

contact the extension developer for assistance as it seems like there's some errors in the script


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore
Who is online

Users browsing this forum: No registered users and 532 guests