How To Add This Code To Cs-Cart

Live Help Messeger



i tryed to add to the Block HTML but then the Font pae il not Show

Anyone have this installed





The following lines should be added on each page after your tag and just before your tag (this should be added once per page and you need to replace the highlighted www.example.com domain with your own domain):



< !-- stardevelop.com Live Help International Copyright - All Rights Reserved //–>

< !-- BEGIN stardevelop.com Live Help Messenger Code - Copyright - NOT PERMITTED TO MODIFY COPYRIGHT LINE / LINK //–>

< script type=“text/JavaScript” src=“/livehelp/scripts/jquery-latest.js”>

< script type=“text/javascript”>

< !–

var LiveHelpSettings = {};

LiveHelpSettings.server = ‘www.cdmedia.nl’;

LiveHelpSettings.embedded = true;

(function(d, $, undefined) {

$(window).ready(function() {

// JavaScript

var LiveHelp = d.createElement(‘script’); LiveHelp.type = ‘text/javascript’; LiveHelp.async = true;

LiveHelp.src = (‘https:’ == d.location.protocol ? ‘https://’ : ‘http://’) + LiveHelpSettings.server + ‘/livehelp/scripts/jquery.livehelp.js’;

var s = d.getElementsByTagName(‘script’)[0];

s.parentNode.insertBefore(LiveHelp, s);

});

})(document, jQuery);



< /script>

< !-- END stardevelop.com Live Help Messenger Code - Copyright - NOT PERMITTED TO MODIFY COPYRIGHT LINE / LINK //–>

@unlocksupport,



Hi. Please try to use HTML block with Smarty support, switch to “code” mode and insert the code in the following format:



{literal}
YOUR CODE HERE
{/literal}




Hope it will help.

Hello i tryed it but not working get ony the [color=“#666600”]{[/color][color=“#000000”]literal[/color][color=“#666600”]} shown on bottom[/color]



Have added it ke this



[color=“#666600”]{[/color][color=“#000000”]literal[/color][color=“#666600”]}[/color]< !-- stardevelop.com Live Help International Copyright - All Rights Reserved //–>

< !-- BEGIN stardevelop.com Live Help Messenger Code - Copyright - NOT PERMITTED TO MODIFY COPYRIGHT LINE / LINK //–>

< script type=“text/JavaScript” src=“/livehelp/scripts/jquery-latest.js”>

< script type=“text/javascript”>

< !–

var LiveHelpSettings = {};

LiveHelpSettings.server = 'www.cdmedia.nl';

LiveHelpSettings.embedded = true;

(function(d, $, undefined) {

$(window).ready(function() {

// JavaScript

var LiveHelp = d.createElement('script'); LiveHelp.type = 'text/javascript'; LiveHelp.async = true;

LiveHelp.src = ('https:' == d.location.protocol ? 'https://' : 'http://') + LiveHelpSettings.server + '/livehelp/scripts/jquery.livehelp.js';

var s = d.getElementsByTagName('script')[0];

s.parentNode.insertBefore(LiveHelp, s);

});

})(document, jQuery);



< /script>

< !-- END stardevelop.com Live Help Messenger Code - Copyright - NOT PERMITTED TO MODIFY COPYRIGHT LINE / LINK //–>[color=“#666600”]{/[/color][color=“#000000”]literal[/color][color=“#666600”]}[/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif]@unlocksupport,[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]Please confirm that you did not forget to switch to the “code” mode? Thanks.[/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif]@unlocksupport,[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]I found the reason - additional spaces. Please use the following code:[/font][/color]


```php

{literal}





{/literal}

```



Thanks.

hi i tryed is with your code same



you can see on top of my site what happens www.cdmedia.nl

[color=#282828][font=arial, verdana, tahoma, sans-serif]@unlocksupport,[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]Oh. I thought that you use version 4.0.x. Your current version does not support HTML blocks with Smarty support. But if you check the source code, you will see that the script is on the place now. So just remove the {literal} tags. Please also note that this code gets javascript file through the following URL: [/font][/color]http://www.cdmedia.nl/livehelp/scripts/jquery-latest.js



[color=#282828][font=arial, verdana, tahoma, sans-serif]Please make sure that this file exists on your server. [/font][/color]

ok thx i check it on my other site also where this is all installed correct but this code also not work

if add this code nothing happens and the storfront wil not work like it have to



is there no way to put code in source somewhere and test maby blocks is blocking it

[color=#282828][font=arial, verdana, tahoma, sans-serif]@unlocksupport,[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]Could you please do the follwoing[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]1. Go to the root directory of your CS-Cart installation[/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif]2. Create the “[/font][/color]livehelp/scripts[color=#282828][font=arial, verdana, tahoma, sans-serif]” directory.[/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif]3. Copy the “[/font][/color]jquery-latest.js[color=#282828][font=arial, verdana, tahoma, sans-serif]” file from your other website.[/font][/color]

[font=“arial, verdana, tahoma, sans-serif”][color=“#282828”]4. Activate the HTML block with the code[/color][/font]



[color=#282828][font=arial, verdana, tahoma, sans-serif]Let me know when you are done and I will check that.[/font][/color]

Hi,

You can use hooks like scripts or meta, i suggest meta



#for v3.x PRO skins/[SKIN_NAME]/customer/addons/my_changes/hooks/index/[color=#ff0000]meta.post.tpl[/color]

#for v3.x PRO skins/[SKIN_NAME]/customer/addons/my_changes/hooks/index/[color=#ff0000]scripts.post.tpl[/color]



#for v3.x ULT stores/[STORE_ID]/skins/[SKIN_NAME]/customer/addons/my_changes/hooks/index/[color=#ff0000]meta.post.tpl[/color]

#for v3.x ULT stores/[STORE_ID]/skins/[SKIN_NAME]/customer/addons/my_changes/hooks/index/[color=#ff0000]scripts.post.tpl[/color]



#for v4.x design/themes/[SKIN_NAME]/templates/addons/my_changes/hooks/index/[color=#ff0000]meta.post.tpl[/color]

#for v4.x design/themes/[SKIN_NAME]/templates/addons/my_changes/hooks/index/[color=#ff0000]scripts.post.tpl[/color]



{literal}
< !-- stardevelop.com Live Help International Copyright - All Rights Reserved //-->
...
< !-- END stardevelop.com Live Help Messenger Code - Copyright - NOT PERMITTED TO MODIFY COPYRIGHT LINE / LINK //-->
{/literal}




I hope that helps,





Valentin

[color=#808080][size=2]part of hungryweb.net[/size][/color]

Vali is right. But in any way the “jquery-latest.js” file should be located in the appropriate directory.

hi vali so i must add only that code you enterd of the compleet code

hi ecomlabs

i wil test it on my other site if it works script there is istalled 100% Correct

sow now are you using almost 500kb of JavaScript code, my opinion is to search a solution and use the jQuery version that comes with cs-cart, in this way you prevent loading another version of jQuery that you are using for the Live Help





Valentin

[color=#808080][size=2]part of hungryweb.net[/size][/color]

any idee how to do this



i think first see it to get working

Hi Vali im checking for the My_chances dir i dont have it



this don have o the server customer/addons/my_changes/hooks/index/[color=#FF0000]meta.post.tpl[/color]

@vali,



Do you think that js file should contain only default jQuery lib and no LiveHelp scripts?

@unlocksupport,



If Vali is right, you can exclude the following line from the code:


```php


```



In this case, the default jQuery which comes with CS-Cart will be used. But please note that the it will still try to find the following script:



http://www.cdmedia.nl/livehelp/scripts/jquery.livehelp.js




Please copy it from your other website.

[quote name=‘unlocksupport’ timestamp=‘1395140405’ post=‘179501’]

Hi Vali im checking for the My_chances dir i dont have it



this don have o the server customer/addons/my_changes/hooks/index/[color=#FF0000]meta.post.tpl[/color]

[/quote]



You need to create the full category path and add the file meta.post.tpl ;)



But you should use scripts hook because will need to use jquery library from cs-cart and this is added within scripts and you will need to post to scripts after jquery is loaded

[quote name=‘eComLabs’ timestamp=‘1395141861’ post=‘179506’]

@vali,



Do you think that js file should contain only default jQuery lib and no LiveHelp scripts?

[/quote]



is no need for jquery because is already present, sow the corect code should be```php


{literal}





{/literal}

and hooked to scripts <img src="upload://ssa1U17ndImgNZSdwFNmOF2yUgM.png" class="bbc_emoticon" alt=";)">