Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Download feature


kevin527

Recommended Posts

Posted

I seem to be having some issues with the downloads feature. I have it working ie: test users can purchase a zip file for download however I seem to have permission problems. Firstly, as I understand it, the file to be downloaded gets placed in the downloads folder, and should disappear after the product is created, this doesn't happen. Secondly, and what's really bothering me is that the downloads folder is available from the web so anyone could download fron that directory without having to pay for goods. I know I could put a dummy index.php in that directory but it still would not stop anyone downloading if they know the filename they're looking for. I'm sure I've missed something obvious so if anyone can help i'd be most grateful

Posted
I seem to be having some issues with the downloads feature. I have it working ie: test users can purchase a zip file for download however I seem to have permission problems. Firstly, as I understand it, the file to be downloaded gets placed in the downloads folder, and should disappear after the product is created, this doesn't happen. Secondly, and what's really bothering me is that the downloads folder is available from the web so anyone could download fron that directory without having to pay for goods. I know I could put a dummy index.php in that directory but it still would not stop anyone downloading if they know the filename they're looking for. I'm sure I've missed something obvious so if anyone can help i'd be most grateful

Hate to appear pushy but this is the only thing stopping me going live!

Posted

please check with your server provider that .htaccess is accepted. A .htaccess should be existed in the default download folder. If no, you can use the following one.

 

AuthType Basic

AuthName "No access"

AuthUserFile .htnopasswd

AuthGroupFile /dev/null

Require valid-user

Posted
please check with your server provider that .htaccess is accepted. A .htaccess should be existed in the default download folder. If no, you can use the following one.

 

AuthType Basic

AuthName "No access"

AuthUserFile .htnopasswd

AuthGroupFile /dev/null

Require valid-user

Thank you so much. That's exactly what I needed. I'm really pleased to have this resolved.

Posted

I have the .htaccess from my server...however, I guess I jsut do not understand. The whole download digital products thing is NOT working for me. Layman's terms...LOL Do I take the .htaccess file and copy it into the downloads folder where my downloadable product is? Also, how do I get the redirect for each product to work? After purchasing the product, it just sits there at paypal...if they click to go back to my site, it just goes back to the shopping cart and sits there. There is a confirmation email sent of the purchase, but NO download link included in the email or a popup for them to download.

 

Any help out there for me?

 

Thanks guys, I appreciate ya.

 

Michelle

Posted
I have the .htaccess from my server...however, I guess I jsut do not understand. The whole download digital products thing is NOT working for me. Layman's terms...LOL Do I take the .htaccess file and copy it into the downloads folder where my downloadable product is? Also, how do I get the redirect for each product to work? After purchasing the product, it just sits there at paypal...if they click to go back to my site, it just goes back to the shopping cart and sits there. There is a confirmation email sent of the purchase, but NO download link included in the email or a popup for them to download.

 

Any help out there for me?

 

Thanks guys, I appreciate ya.

 

Michelle

There is a .htaccess file in the downloads folder. The easiest way to get this in place is to install webmin on your server if you are new to Linux. Once installed, go to https://yourserver:10000, log in, go to servers -> apache -> then your virtual server. Create a per directory options entry. Then click in that entry you just created. You'll see a document options icon, click it. Then look at the section that says, optionsfile can override. Change that from default to selected and make sure that the five check boxes are ticked. At the bottom of the page, save, at the top, apply changes, stop, then restart apache.

 

Remember that the permissions on the download and pub directory must be correct.

 

As far as paypal goes, remember to fill in the autoreturn url and the ipn url in the sandbox site as well as your real paypay account.

 

In the paypal module, set the last status state to delivered. customers should see the link at the bottom of your site upon their return. If not try clicking "my account in OSC, is it there? if not, you didn't set the downloads up properly in the first place.

 

You might find this of use:

 

http://info.template-help.com/files/OsComm...e_downloads.swf

Posted
There is a .htaccess file in the downloads folder. The easiest way to get this in place is to install webmin on your server if you are new to Linux. Once installed, go to https://yourserver:10000, log in, go to servers -> apache -> then your virtual server. Create a per directory options entry. Then click in that entry you just created. You'll see a document options icon, click it. Then look at the section that says, optionsfile can override. Change that from default to selected and make sure that the five check boxes are ticked. At the bottom of the page, save, at the top, apply changes, stop, then restart apache.

 

Remember that the permissions on the download and pub directory must be correct.

 

As far as paypal goes, remember to fill in the autoreturn url and the ipn url in the sandbox site as well as your real paypay account.

 

In the paypal module, set the last status state to delivered. customers should see the link at the bottom of your site upon their return. If not try clicking "my account in OSC, is it there? if not, you didn't set the downloads up properly in the first place.

 

You might find this of use:

 

http://info.template-help.com/files/OsComm...e_downloads.swf

 

 

Thanks for trying to help...working on some of the stuff now. I so appreciate it!

  • 3 weeks later...

Archived

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

×
×
  • Create New...