cancel
Showing results for 
Search instead for 
Did you mean: 

Link to external site for downloadable product not working

Link to external site for downloadable product not working

I've created a downloadable product and set the url to another site where my product is hosted (a webcast).

 

When I purchase the product and click on the link in My Cart > My Downloadable Products I'm taken to a new page where the webcast tries to load...but fails.

 

When I look at the page source using DevTools (using Chrome) it seems that not all the scripts on the destination page are loading.  All the scripts before the first <meta> tag are missing.

 

It works fine if I create a simple page and put the webcast url within an iframe and link to that.

 

Has anyone experienced this before?  Is there something going on with the way Magento protects the destination url?

7 REPLIES 7

Re: Link to external site for downloadable product not working

Have you checked if the page you'll loading is in https or http? Also which kind of url you're trying to load, give us a dummy examples, we need more information to help you out.

Re: Link to external site for downloadable product not working

The page I'm linking to is http.

 

I’m running Magento 1.9.1.1 in a Bitnami stack on a Win 7 laptop while I get to know it.

 

When I load the webcast page directly I get this:

https://dl.dropboxusercontent.com/u/5298207/webcast.PNG

 

and when I open from the Cart I get this:

https://dl.dropboxusercontent.com/u/5298207/MagentoLink.PNG

 

Thanks

 

Re: Link to external site for downloadable product not working

It may look something about permission on your files in dropbox maybe, so when you try to open them from outside dropbox it protects them. 

 

Let me know if this helps

Re: Link to external site for downloadable product not working

Thanks dersuchende,

 

The above links are screen shots of the DevTools window showing the difference between loading the webcast url directly and via Magento.

 

The webcast are not hosted in my Dropbox.

Re: Link to external site for downloadable product not working

Right, this now finally makes sense, I was unable to see your images last time (they were throwing me 500 error lol) that's way I wrongly thought about permissions.

 

Anyway it looks like that you're loading your webcast in magento but it takes ages to load (or simply wait forever trying to load the video). It might be beneficial if you share your js script with which you try to incorporate your video (use a dummy url) I might be able to sneak out the issue.

 

sorry for not being very helpful, but it seems really related with the service you're trying to load.

 

Btw is there any tutorial that gigtv provides you to embedd videos in your website?

 

 

Re: Link to external site for downloadable product not working

Thanks for helping

 

The webcast page fails completely when I link to it from Magento.  It gets to that loading... stage and goes no further.

 

So this tells me that the url is correct but failing to load for some reason.  Normally when linking to a webcast it is enough to follow the url and the webcast server takes care of the rest as you would expect with any other webpage.  

 

I would normally embed a webcast on a page within an iframe [as recomended by the hosting platform] but beyond manually creating a seperate page for each webcast and linking to that I'm not sure how to achive this with Magento.

 

I'm not using any js to load or direct Megento to the webcasting host just the url to the webcast in the downloadable product.

 

I've created a html page with a test webcast embedded so you can see a sample at Http://www.onevision.com.au/test.html

 

Re: Link to external site for downloadable product not working

Right, makes perfectly sense, a possible solution, wether you haven't checked it yet, would be to create an attribute for the product entity via magento admin area, which you can use to write the iframe id and within the view for the downloable product purchased you can make it display somehow linkin it in the .phtml. What about it? (as soon as you can link it to a product entity you should be able to call it easily).

 

 

Another solution (a more definitely clean one) would be to create a module, which creates a table with productid and iframe ids in the rows and then you call the collection linked to the purchased product linked within the ids.

 

Let me know if it helps you out.