WebSite X5Help Center

 
Joris R.
Joris R.
User

Iframe in product page "The requested url was not found on this server."  en

Autor: Joris R.
Besucht 225, Followers 1, Geteilt 0  

I want to place iframes with external AR in the product pages.

So this is not about the Photo Sphere Viewer, but real 3D.

An external hyperlink works, but I want the AR to appear immediately on the product page without clicking.

The code i use is:

<iframe src="https://ar.dovrefire.com/item/100cbs-b" frameborder="0" style="width: 400px; height: 500px;"></iframe>

Here is a sample url on my page: https://www.hekkensmederij.be/product/?saga-101

The I frame reports:

"Not Found"

"The requested URL was not found on this server."

When opening the hyperlink on this photo under the iframe code it works fine,

but i want the AR-content to be displayed immediatly in the frame.

How can I do this?

Gepostet am
10 ANTWORTEN - 3 NüTZLICH - 1 KORREKT
Incomedia
Eric C.
Incomedia

Hello Joris,
at times iframes containing elements from external websites are blocked by some restriction of the original website.
Have you checked if they mention such restrictions, or perhaps there are specific embed codes to use?

Eric

Mehr lesen
Gepostet am von Eric C.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... if the details section receives the code, ... or in another section [</>], ... try with this EXTRA code of mine, and notify me:

<script>
iframeK = '<iframe src="https://ar.dovrefire.com/item/100cbs-b" frameborder="0" height = "200"style="width: 100%; heidht: auto" ></iframe>';
$('.container-details').html(iframeK)
</script>

.

ciao

.

Mehr lesen
Gepostet am von  ‪ KolAsim ‪ ‪
Joris R.
Joris R.
User
Autor

Thank you both for the fast response.

KolAsim, I tried your script, now that place stays empty, no 3D image.

The productpages have no details section. I insert the code with the button [</>]

@Eric, The owner of the files encourages using the 3D images on their site via iframes. They also provide a full screen link and a direct link.


iFrame link:
https://ar.dovrefire.com/item/100cbs-b
Full screen link:
https://ar.dovrefire.com/item/100cbs-b?fullscreen
Direct link:
https://ar.dovrefire.com/direct/100cbs-b

Mehr lesen
Gepostet am von Joris R.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... you changed the structure from before, and therefore it can't work...
... what's more, the code that appears on the page is not the one I provided before; ..maybe you got some modality wrong or the section you used isn't suitable....
... this is what you see on the page, completely altered(!):

<script></span></div><div><span class="fs10lh1-5"><br></span></div><div><span class="fs10lh1-5 cf1">iframeK = '<iframe src="https://ar.dovrefire.com/item/100cbs-b" frameborder="0" height = "200"style="width: 100%; heidht: auto" ></iframe>';</span></div><div><span class="fs10lh1-5"><br></span></div><div><span class="fs10lh1-5 cf1">$('.container-details').html(iframeK)</span></div><div><span class="fs10lh1-5"><br></span></div><div><span class="fs10lh1-5 cf1"></script>

.

Mehr lesen
Gepostet am von  ‪ KolAsim ‪ ‪
Joris R.
Joris R.
User
Autor

In the program i did this for tab 1:

and for the 2nd tab this:

The product page is somehow changed with the scripts for displaying prices VAT included, or remove prices. But when I use the script on an not altered page of an older website, it also does not work.

Here is a sample of a product page generated with X5 2021.3.11 without VAT modification scripts.

https://www.raats.be/product/?100cbs

Also no 3D image visible on that product page.

When I insert the HTML code in an other page it works as it should, without clicking.

Here the 3d image shows up as wanted.

https://www.hekkensmederij.be/index.html

The product page seems not to display Iframes?

Mehr lesen
Gepostet am von Joris R.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

...maybe the code used in the text object [</>] shouldn't have carriage returns...
... give it one last try...
...here it is in single string for that current card...
...first paste into notepad and make sure there are no newlines in the code, and then paste it into the tab:

<script> iframeK = '<iframe src="https://ar.dovrefire.com/item/100cbs-b" frameborder="0" height = "200"style="width: 100%; heidht: auto" ></iframe>';$('div[data-index="0"]').html(iframeK) </script>

.

Mehr lesen
Gepostet am von  ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... let me know, ... and if it doesn't work we will switch with my other code to the alternative method in Expert/HEAD...

.

Mehr lesen
Gepostet am von  ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

...I saw that the normal IFRAME works now...
...so I think it depended on the carriage returns you used...

.

Mehr lesen
Gepostet am von  ‪ KolAsim ‪ ‪
Joris R.
Joris R.
User
Autor

It works now :-) Thank you KolAsim!! There was a cariage return in it.

When I use your script code above, the 3D image apears multiple times in the footer of the page.

So I also tried the simple code also and it works!

Even when opening that product page with a smartphone the button "place in your interior apears"

Mehr lesen
Gepostet am von Joris R.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

.. ... OK... ... wink...

Mehr lesen
Gepostet am von  ‪ KolAsim ‪ ‪