Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can you make an html document a download attribute


lenahan2001

Recommended Posts

Hello,

 

A very simple question. For osCommerce, I am trying to make it so that after a customer completes the checkout, they are given a download link for an html document.

 

I setup the program so that the html document appears after successful payment, but when I went to test the downloaded html document, I open the html file, and got wierd PHP errors in the file, even through the entire document is in very basic html code.

 

Can I set a product attribute for osCommerce as a downloadable html document or am I forced to zip the document and use the zip file and the download?

 

Hope I explained my problem correctly.

 

Regards,

Ryan

Link to comment
Share on other sites

If you want your customer to download the file it is better that file is in zip format, just two more lines of code. Html file might get displayed in the customers browser and he might not save it too

 

Does anybody know for a fact if osCommerce can support an html document as a download attribute?

 

 

The way I want it to work, is that the customer will get the option to download the html document that is only 4k in size after checkout. When they click on the download link they get the standard windows popup asking where to save the file. They then save it to their desktop, then they can open up the file at any time to view the document.

 

Right now when they open up the html document they get a PHP parse error??? There is no PHP in the code, so I think it is something that osCommerce is doing wrong.

 

Regards,

Ryan

Link to comment
Share on other sites

I also have a similar question, but don't want the html file to be a download to desktop. My products are instructional videos and the clients don't want them to be easily copied.

 

I have tried a redirect which has worked, but I had to put absolute links to my movie files, which I was hoping to avoid. How could I use the temporary directory of the download.php with a redirect to an html document where my movie couuld be embedded?

 

Hope that was clear.

 

Thanks.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...