+4
Answered

xtc-modified or xt commerce shops

Angeliano 7 years ago in Integration • updated by Vladimir Mullagaliyev (co-founder) 5 years ago 3
it's difficult to implement into xtc-modified or xt commerce shops. Installation instructions are missing. A lot of users have the same problem. I tried to insert the code into the index.html but without any success!

Any suggestions?

Answers

Answer
Answered
For xtcommerce and xtc modified shops, please place the userecho code in
"/shop/templates/*your template*/javascript/general.js.php instead of
index.html.
+1
PINNED
For xtcommerce and xtc modified shops, please place the userecho code in "/shop/templates/*your template*/javascript/general.js.php instead of index.html.

Code example:

<script type='text/javascript'>

var _ues = {
host:'*yourshop*.userecho.com',
forum:'****',
lang:'de',
tab_alignment:'left',
tab_text_color:'black',
tab_bg_color:'#EDEDED',
tab_hover_color:'#FFFFFF'
};

(function() {
    var _ue = document.createElement('script'); _ue.type = 'text/javascript'; _ue.async = true;
    _ue.src = ('https:' == document.location.protocol ? 'https://s3.amazonaws.com/' : 'http://') + 'cdn.userecho.com/js/widget-1.4.gz.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(_ue, s);
  })();

</script>

Works fine!

Best regards
Frank
Under review
You talk about UserEcho widget intergation?
With xtc-modified based shop?
+1
PINNED
For xtcommerce and xtc modified shops, please place the userecho code in "/shop/templates/*your template*/javascript/general.js.php instead of index.html.

Code example:

<script type='text/javascript'>

var _ues = {
host:'*yourshop*.userecho.com',
forum:'****',
lang:'de',
tab_alignment:'left',
tab_text_color:'black',
tab_bg_color:'#EDEDED',
tab_hover_color:'#FFFFFF'
};

(function() {
    var _ue = document.createElement('script'); _ue.type = 'text/javascript'; _ue.async = true;
    _ue.src = ('https:' == document.location.protocol ? 'https://s3.amazonaws.com/' : 'http://') + 'cdn.userecho.com/js/widget-1.4.gz.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(_ue, s);
  })();

</script>

Works fine!

Best regards
Frank
Thanks for answer and example.
We stick your comment to official answer.
Thanks a lot! It works great!
www.angeliano.com
Answer
Answered
For xtcommerce and xtc modified shops, please place the userecho code in
"/shop/templates/*your template*/javascript/general.js.php instead of
index.html.