Magento uses Require JS, hence it needs different script.
from your integration page you might find this:
<script>
document.addEventListener('DOMContentLoaded', function() {
var s,t; s = document.createElement('script'); s.type = 'text/javascript';
s.src = 'https://s3-ap-southeast-1.amazonaws.com/qiscus-sdk/public/qismo/qismo-v4.js'; s.async = true;
s.onload = s.onreadystatechange = function() { new Qismo("YOUR-APP-ID"); }
t = document.getElementsByTagName('script')[0]; t.parentNode.insertBefore(s, t);
});
</script>
For Require JS, change them to this one:
<script>
require(['https://s3-ap-southeast-1.amazonaws.com/qiscus-sdk/public/qismo/qismo-v4.js'], function(Qismo){
new Qismo("YOUR-APP-ID");
})
</script>
Please make sure to use the JS URL in your integration page for the latest JS. The codeblock above is just an example.
Comments
0 comments
Article is closed for comments.