AbanteCart Community
Shopping Cart Operations => Support => General Support => Topic started by: empmdk on January 22, 2017, 11:25:49 PM
-
I have enabled the API feature and added a product. After clicking the Embed Code button, the embed menu pops up and the preview is completely blank. If I try to embed the code into a website, it will not show anything. I have tried embedding into a basic .html file and still comes up blank. I'm not seeing any errors.
-
Hi.
Any errors in the browser console (install firebug if you use firefox)?
-
Nothing for the site or html file it is being embedded into. Only a warning on the page where you grab the embed code.
jquery.min.js:4 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.
send @ jquery.min.js:4
-
Can you post url to page where you insert embed?
Check also that your store url setting is correct (Admin > System > Settings > Details)
-
Sent you a PM with the URL.
-
Hi.
The link you send me is not working :o
-
It should work for you now.
-
Any ideas?
-
I have enabled the API feature and added a product. After clicking the Embed Code button, the embed menu pops up and the preview is completely blank. If I try to embed the code into a website, it will not show anything. I have tried embedding into a basic .html file and still comes up blank. I'm not seeing any errors.
I'm having the same problem. Did you ever find a solution?
-
Hello.
Do you have SSL enabled in your store? if yes it is configured correctly?
Also open browser console (in Chrome and FireFox) - then reload page and open embed modal again. Any errors/warnings there?
-
Enable Storefront Embed is set to ON
This error I get in Chrome Developer Console
GET file://back.yaskan.com/index.php?rt=r/embed/js net::ERR_FILE_NOT_FOUND
Apparently, the embed.js file is not seen or accessible.
-
I can see your file https://back.yaskan.com/index.php?rt=r/embed/js
Can you please share the embed code that you use?
-
(http://)
Since I cant attach links, I am attaching a screenshot
-
Hi.
When you access html page with embed code what is the page protocol http or https?
Your browser may block https embed javascript
-
Basara, has a good point.
Gevera, image does not help. You can post links after you have established profile in the forum with good posts.
-
My back page is https. The page with the embeded code is a local html just for testing. I have tried Firefox and Chrome with and without extensions. So far no luck
Also devtools tell me the error is here
/******** Script loader function ********/
function script_loader( url ) {
var script_tag = document.createElement('script');
script_tag.setAttribute("type","text/javascript");
script_tag.setAttribute("src",url);
// Try to find the head, otherwise default to the documentElement
(document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_tag);
return script_tag;
}
jquery hasn't been loaded. File not found. Error on the line 72 of the embed.js
-
Please attach HTML page you use with embed.