Hi im trying since some days to add 23 Spreadshirt Shops to my Wix Website.
If I use the iframe in the editor. Add HTML/JS its not working for us. We have all time display errors with this solution. Spreadshirt said us apple don’t like iframe in iframe.
So we found a new solution. The JS from Spreadshirt works perfect if we add it in Wix (German) “Erweiterte Einstellung/Analysewerkzeug” We add the JavaScript at the Body - End just for one site. So we don’t have display errors and all works fine.
BUT WE STIL HAVE ONE BIG BUG!
Can someone help me! The problem now its that the Shop load all time on all pages and not just the selected one. I also did a video. So you can see the problem. The link ist down below.
You also can see the mistake at your self. Please go to www.querencia.tv/fashion-online-shop and chance 1-2 times the Country. If you scroll down you will see 2-3 Shops. Also if you go to HOME. You will see down below the shops. If you just go to www.querencia.tv you don’t have the shops. This is how it have to look. I just want that the Shop for the Country is display on the URL for this Country Shop.
Thanks a lot to the community for your Help.
Link to Video (Google Drive): https://drive.google.com/file/d/1aQZsudti9AsAwEDps7HNq6mQnfRkRgEc/view?usp=sharing
Hi to the community and admins. I still need help for this issue. Please help us. Thank you for all inputs.
A lot of html code that comes from a third party other than Wix can’t just be placed into a htrml iframe on a page like this - https://support.wix.com/en/article/adding-html-code
Wix doesn’t support any third party html code that it hasn’t tried and tested on it’s own site etc, so any issues with using third party code should really go back to the company that you obtained it from to begin with.
https://support.wix.com/en/article/guidelines-and-limitations-of-the-html-code-and-embed-a-site-elements
Anyways, many times you will actually be given two chunks of code to put into the website itself and this should be told and shown to you by the third party in their own support pages and examples etc.
Now the first piece of code should be entered into a custom tool in the Tracking and Analytics section and making sure that you choose to place it in the correct section, most of the time will be head. Also choosing where to run this code, whether you want it to run on one page or all pages etc. Then the second chunk of code can then be placed in the html iframe on your page.
See here for a tutorial about it.
https://support.wix.com/en/article/embedding-custom-code-to-your-site
You can also setup your html so that you can pass data from the page to the html or from the html to your page by using code, as shown here in Wix API reference.
https://www.wix.com/corvid/reference/$w.HtmlComponent.html
Finally, if you are trying to do this through Wix Stores, then as that is technically a Wix app and as you are trying to add html code that didn’t come from Wix, you are better suited going through Wix Support for more help with this issue.
https://support.wix.com/en/wix-stores/setting-up-your-store
https://support.wix.com/en/about-wix/contacting-wix-support
@givemeawhisky Thank you so much for your answer.
"A lot of html code that comes from a third party other than Wix can’t just be placed into a htrml iframe on a page like this - https://support.wix.com/en/article/adding-html-code "
With an iframe this js don’t work. This js is perfect and have no mistake. But it based also on iframe. So and an iframe in an iframe its not good for many browsers. For example with the official why of wix. We lost all customers coming with an iPhone. So this is not a solution. There to many people outside with an iPhone so we can’t lose this customers.
"Wix doesn’t support any third party html code that it hasn’t tried and tested on it’s own site etc, so any issues with using third party code should really go back to the company that you obtained it from to begin with.
https://support.wix.com/en/article/guidelines-and-limitations-of-the-html-code-and-embed-a-site-elements "
Sadly I see that many people wish that the can use also 3party-App or JS or something. Like with Wordpress.
"See here for a tutorial about it.
https://support.wix.com/en/article/embedding-custom-code-to-your-site "
Thank you, yes I found this. This is the only why how I can add an JS on the page without an iframe. But how you say I can set up if it show just in 1 page or all page. I selected just 1 page but in the end after visiting this one page this script is showing on all pages.
HOW I CAN CODE IT THAT THIS JS (WITH AN ONLINE SHOP-THAT WORKS PERFECT) ITS SHOWING JUST ON THE SIDE THAT I SELECTED IN https://support.wix.com/en/article/embedding-custom-code-to-your-site WE DONT WANT THAT THE SHOP IS LOADING OF ALL PAGES AFTER SELECTING AN OTHER PAGE.
IM NEW IN CODING SO https://www.wix.com/corvid/reference/$w.HtmlComponent.html#collapsed THIS HELPS ME JUST A LITLE BIT. IS THERE A CODE WHERE I CAN SAY IN CORVID OR IN A OTHER TOOL HOW TO LOAD THIS JS. WHATS THE SELECTOR FOR END-BODY HTML IN THE ANALYTICS TOOLS. AND WHAT THE CODE TO SAY LOAD THIS END-BODY HTML CODE JUST 1 TIME AND NOT ON ALL PAGES AFTER LAODING THE PAGE WITH THE JS.
I hope I could explain it better and I hope someone can help me with the right code and where to place it. Thank a lot.