JavaScript Execution Issue in Shopify

JavaScript Execution Issue in Shopify

EMANUELEB
Shopify Partner
2 0 0

Hello there,

 

I’m experiencing an issue with the execution of a JavaScript script that is essential for the proper functioning of a booking system integrated into my Shopify store.

I have embedded an iframe along with the corresponding JavaScript script on a page of my store to display the booking system. The script is supposed to handle key functions such as:

  • Retrieving GET variables
  • Automatically resizing the iframe based on its content length
  • Other minor supporting functionalities

However, despite no errors appearing in the console, the script does not seem to be executing correctly. After consulting the technical support team of the booking system, I was informed that this issue does not occur on other installations of the same system. This suggests that something within my Shopify theme or its settings might be blocking the script from running.

 

Could you please investigate if there are any restrictions or configurations in the theme that could be preventing the JavaScript from executing? Any guidance on how to resolve this issue would be greatly appreciated.

Looking forward to your insights.

Replies 2 (2)

tim
Shopify Partner
4350 503 1591

You've forgotten to include the link to the page in question.

It's hard to help without it.

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
EMANUELEB
Shopify Partner
2 0 0

I mean... you're right! 😄
These are the pages where i installed js and Iframe:

https://cavaga.it/pages/prenotazione-soggiorno (this one more or less is working)
https://cavaga.it/pages/prenota-esperienza-podere-cavaga/?ecomid=3502 (same for this one)

https://cavaga.it/pages/prenotazione-soggiorno?dd=19&mm=04&yy=2025&nights_1=2&prodid=9 or https://cavaga.it/pages/prenotazione-soggiorno?dd=19&mm=04&yy=2025&nights_1=2&prodid=7 (sometimes these ones work, sometimes they don't.. the mobile version is dead, nothing works).