Help - Search - Members - Calendar
Full Version: Digital downloads question
CubeCart Forums > CubeCart Version 3 > Installation & Upgrade Help (Version 3)
jpmad4it
Hello all,

I have read through the various tutorials and searched the threads but I have a still have a simple question regarding digital downloads.

I am new to Cubecart so bare with me blink.gif

Ok, I want to add a secure path for my downloads, but I am unsure whether it is going to be publically accessible. My path is as follows (changed a bit for security):

/server_name/home_pages/14/user_name/htdocs/web_site_folder_name (e.g. JohnsMedia)

Now if I create another folder named downloads within the htdocs I think that means that it will still be accessible to the public.......is that correct??? Or is that actually outside the public access?

In my FTP explorer panel I have www.mysitename.com. Now within that folder there are many sub directories that store information for separate web pages e.g. johnsmedia, Now i added a folder named downloads and added a test index.html file into that folder. But if I go to www.mysitename.com/downloads/test.html the web browser cannot find that page - so is this saying that its outside of the public access?? I have checked thoroughly that the URL is correct so it can't be a mis-spelling.

I noticed that inside my admin for my webpage I can make public directories secure by adding a username and password to them - would that be easier? I cant see why I cannot make use of this tool?

Any helo would be great.

Regards,
Jonathan wacko.gif

EDIT: I just set up a test/dummy business account using PayPal API. I set the product price to 1pence. The money was transferred successfully to the business account, but I got the message 'Sorry your purchase failed' (well it was similar to that I cant remember lol). I guess this is because the Server Root Path i applied to the product was incorrect. Is that the most likely answer??

EDIT2: I have been playing around with the server root path and I managed to get a successful transaction completed......BUT the link in the confirmation email gave errors of the following nature:

Warning: filesize() [function.filesize]: Stat failed for /htdocs/downloads/1.mp3 (errno=2 - No such file or directory) in /server_name/home_pages/14/user_name/htdocs/web_site_folder_name/download.php on line 64

Warning: Cannot modify header information - headers already sent by (output started at /server_name/home_pages/14/user_name/htdocs/web_site_folder_name/download.php

Any ideas?? :-(

PS is it safe to post my proper server root path?
Sir William
Jonathan, you're on the right path (no pun intended), but aren't quite there yet.

Web site path:
/server_name/home_pages/14/user_name/htdocs/

World-accessible:
/server_name/home_pages/14/user_name/htdocs/downloads/

NOT world-accessible:
/server_name/home_pages/14/user_name/downloads/

When you specify a digital download directory, you need to specify the FULL PATH to the file. So if you setup the non-accessible directory and put a file in it, the path to that file would be:

/server_name/home_pages/14/user_name/downloads/file.zip

That should help.

And while it's not specifically bad to post your actual hosting path, obscuring it is better as it eliminates potential issues.

w00t.gif
jpmad4it
QUOTE(Sir William @ Jan 24 2007, 02:02 AM) *
Jonathan, you're on the right path (no pun intended), but aren't quite there yet.

Web site path:
/server_name/home_pages/14/user_name/htdocs/

World-accessible:
/server_name/home_pages/14/user_name/htdocs/downloads/

NOT world-accessible:
/server_name/home_pages/14/user_name/downloads/

When you specify a digital download directory, you need to specify the FULL PATH to the file. So if you setup the non-accessible directory and put a file in it, the path to that file would be:

/server_name/home_pages/14/user_name/downloads/file.zip

That should help.

And while it's not specifically bad to post your actual hosting path, obscuring it is better as it eliminates potential issues.

w00t.gif


Hey there I managed to sort it out w00t.gif

I can now do digital downloads!!! I now need to figure out how to do multiple ones wacko.gif

Is that possible?
subten
QUOTE(jpmad4it @ Jan 24 2007, 09:44 AM) *
I can now do digital downloads!!! I now need to figure out how to do multiple ones wacko.gif
Is that possible?

What do you mean by multiple downloads? Do you mean more than 1 file link per product?
jpmad4it
QUOTE(subten @ Jan 24 2007, 09:56 AM) *
QUOTE(jpmad4it @ Jan 24 2007, 09:44 AM) *

I can now do digital downloads!!! I now need to figure out how to do multiple ones wacko.gif
Is that possible?

What do you mean by multiple downloads? Do you mean more than 1 file link per product?


Nevermind - i tested with more than 1 digital download - you get mutliple links in the email tongue.gif

Just one more question - where do I find the script that says :

'Thank you, your order was successful! Please visit again soon.' - - - - straight after the purchase when you are redirected back to the cart from the payment module.

I want to add something about the link being in the email for digital downloads etc.

regards, Jp

EDIT: Am I correct in saying that the code is in the following directory:

language/en/lang.inc.php ?????

EDIT2: I fixed it - it was in the lang.inc.php file. I am giving myself a medal for my hard work - plus I am a noob to CC --- well done me :-)
K-RAD
Here's the link to the tutorial:

http://www.cubecart.org/forums/index.php?s...erver+root+path
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.