Jump to content
Agnir

Can't add product to cart externally when user opens site for first time.

Recommended Posts

Solved this issue by loading the website in a iframe with display set to none, Would recommend to deffer iframe loading to last with the following script such that it does not interfere with whatever you are doing

var iframe = document.createElement('iframe');
iframe.style.display = "none";
iframe.src = your_iframe_source_url;
document.body.appendChild(iframe);
Edited by Agnir (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More