AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: empmdk on January 22, 2017, 11:25:49 PM

Title: Embedding Not Working
Post 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.
Title: Re: Embedding Not Working
Post by: Basara on January 23, 2017, 12:39:46 AM
Hi.

Any errors in the browser console (install firebug if you use firefox)?
Title: Re: Embedding Not Working
Post by: empmdk on January 23, 2017, 01:08:45 AM
Nothing for the site or html file it is being embedded into. Only a warning on the page where you grab the embed code.
Quote
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
Title: Re: Embedding Not Working
Post by: Basara on January 23, 2017, 01:13:34 AM
Can you post url to page where you insert embed?
Check also that your store url setting is correct (Admin > System > Settings > Details)
Title: Re: Embedding Not Working
Post by: empmdk on January 23, 2017, 11:59:19 AM
Sent you a PM with the URL.
Title: Re: Embedding Not Working
Post by: Basara on January 24, 2017, 12:38:23 AM
Hi.

The link you send me is not working  :o
Title: Re: Embedding Not Working
Post by: empmdk on January 24, 2017, 08:22:03 AM
It should work for you now.
Title: Re: Embedding Not Working
Post by: empmdk on January 27, 2017, 09:06:40 AM
Any ideas?
Title: Re: Embedding Not Working
Post by: brandoncorlett on September 05, 2017, 02:05:53 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.

I'm having the same problem. Did you ever find a solution?
Title: Re: Embedding Not Working
Post by: Basara on September 06, 2017, 03:12:34 AM
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?
Title: Re: Embedding Not Working
Post by: gevera on April 06, 2018, 06:59:12 PM
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.
Title: Re: Embedding Not Working
Post by: abantecart on April 09, 2018, 06:55:14 AM
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?
Title: Re: Embedding Not Working
Post by: gevera on April 09, 2018, 10:19:51 PM
(http://)

Since I cant attach links, I am attaching a screenshot
Title: Re: Embedding Not Working
Post by: Basara on April 10, 2018, 03:35:02 AM
Hi.

When you access html page with embed code what is the page protocol http or https?
Your browser may block https embed javascript
Title: Re: Embedding Not Working
Post by: abantecart on April 10, 2018, 06:52:12 AM
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.
Title: Re: Embedding Not Working
Post by: gevera on April 10, 2018, 12:16:15 PM
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
Title: Re: Embedding Not Working
Post by: abantecart on April 11, 2018, 08:49:42 PM
Please attach HTML page you use with embed.