That would require a lot of thought on the customer's part ...
You are better off setting up 3 Products than to try to setup 1 Product with 9 peices and parts to try to match up ...
Or make 1 Zip for each combination rather than 3 Zips ...
Printable View
That would require a lot of thought on the customer's part ...
You are better off setting up 3 Products than to try to setup 1 Product with 9 peices and parts to try to match up ...
Or make 1 Zip for each combination rather than 3 Zips ...
https://www.zen-cart.com/tutorials/index.php?article=71
How to add downloads/multiple downloads..
details in tutorials/FAQ url above
Thank you for the quick responses., I wanted to offer a club
The first choice would be the entire club with 6 downloads and the second choice would be a lesser value with 3 downloads and the 3rd choice would be another lesser value with 3 downloads. I wanted to know if I could make the three choices, but the options would have the radio buttons selected for the amount downloads, depending upon the selection.
Thank you for all of your suggestions and help.
you guys that know how to do this must be freakin geniuses.. i've worked on this for hours and still can't figure out how to create download.. teh only think i've gotten so far is to move my downloads into the 'download' folder.. I'm a programmer by trade - that's why this is baffling.. there MSUT be simple instructions somewhere??
Did you peek in the Tutorials/FAQs? There are quite a few things about Attributes and Download ... plus there is the Wiki and a search of the forums ...
It definitely isn't user intuitive, and took me a while too.:frusty:
Start by creating an Option Name by clicking on "option names" under "Categories/Products". Option name, for example, can be called "ebook".
Then create an option value also under "categories/products" menu. you do this by selecting the option name "ebook" and then writing in something more specific (say, "Our Ebook" or whatever the title is...or whatever you choose it to be).
Then go to the attributes controller. Select your product near the top and hit display. Scroll down. Select the option name in one of the scroll boxes, and the option value in the other. At the very bottom, type in the exact file name (not the path, unless you created a new folder inside of the downloads folder)....for example ourebook.pdf Now click insert.
IF you did it correctly, there should be a little green dot next to the file name. If you did it incorrectly, there will be a red dot.
Clear as mud?
Good Luck,
Kimberly
www.joyfulmomma.org
thank you Kimberly - it worked.. and you explained it so well.. i guess most of the others in here have been using Zen for a long time and it's hard to explain things in simple terms for them..:clap:
Good afternoon all, I've been through the thread, the hints, the internet, etc and my head now hurts, so I'd really appreciate some help to get me heading in the right direction.
I've managed to set up the downloadable attributes, tested a transaction, made payment, and the customer now gets a download button in 'my account'.
When I click on the download button, I get a new browser page (http://localhost/zencart/index.php?m...&order=16&id=3) and the message "Internet explorer cannot display this page..."
The download file in question is an image (.jpg) in the download folder (and only the filename is specified in downloadable products filename).
Attribute settings are: enable downloads: true, redirect:false, streaming:false
Config file settings are:
define('DIR_FS_CATALOG', 'C:/Inetpub/wwwroot/zencart/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
It seems like a filenaming problem but I can't find anything obvious.
Running the latest version of zencart, php, and mysql - and my development environment is windows,
Any new direction to head in much appreciated.
Regards,
Phil
Did it all again from scratch and it worked. I guess I can't speell after all! :smile:
Well I'm having same problem as Phil up there and I've been trying to fix this all evening :(
Point is.. it was working fine yesterday and I'm not sure what happened.
So checkout works fine but when i click on download I get a page not found error.
It was working fine yesterday and my test product is not marked as a virtual product
and shipping is set to "No, Normal Shipping Rules".
Attributes are these:
option name = download
option value = zip
download file = nathy_halloweenlabels.zip
Its in download file of course and its got a green circle under Downloads Manager.
I have a clean install of Zen Cart 1.3.8a
The link for my product is http://www.nathy.net/shop/index.php?...roducts_id=185
You have Redirect On or Off?
You have set permissions on /pub to 777?
You are on a windows or unix server?
Hello Ajeh,
You have Redirect On or Off?
ON
You have set permissions on /pub to 777?
Yes
You are on a windows or unix server?
My web host runs UNIX-based operating systems, such as Debian Linux 4.0 on Apache web servers.
I dont know if this matters but I did try to move my download folder to make it more secure like they say in the tutorial and change the path into both configure.php files but it wouldnt work at all so I just put the download folder back where it was and change the path back into both configure.php files as well.
Thanks for the help.
Nathy
What happens if you make a test product with a small test zip file ...
Do small files work?
I want to offer free downloads in my scrapbook shop but when we mark them free we get errors any ideas?
I don't know how to handle this can someone please help? Thanks SDuffer
Forbidden
You don't have permission to access /sweetscr_store/pub/.ijfbdvhqehzmgjh/hh_designs_Artic.zip/ on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Hello Ajeh,
Well I changed the download by setting Download by Redirect to false and Download by streaming to false and yet it wont work.
I tried to download the zip file by giving the right path into my browser and it keep asking me for login so I guess that is good.
:frusty:
Have you checked with your hosting provider to see if they have changed something or need to change something on the server to allow for symbolic links or downloads etc.
It seems odd that it worked the other day and doesn't today ...
I seem to recall a requirement to use the 'absolute path' for the redirect, instead of the usual URL / Domain Name path.
For example:
Use: /home/user_id/public_html/verify/absolute_path.php
Not: http://www.my_domain.com/verify/absolute_path.php
I sent the question to my hosting provider. Hopefully will have the answer tonight.
Thanks alot for trying to help me.
Also I tried WHAnderson's suggestion and it wasnt working either.
Should I just delete the whole zencart on my site and restart from beginning? Since it was working this weekend maybe I'm the one that changed something without knowing it :S
I dont mind redoing it all if I have to cause it really stopped working after I tried to move the download folder.
Nathy
Why not try a test install in another directory with another database and load the demo products and see if that works without any changes ...
Ok I installed zencart in another directory and installed the demo and then tested a download without changing anything and I got the same "page can not be found". Sigh..
The link for the demo is http://www.nathy.net/catalog/
I'm still waiting on my hosting provider for the answer to the question I send them this morning. I will see what they say and then I will let you know.
Must admit I'm really getting discouraged here :(
Nathy
Hello Ajeh,
I went into my new test zencart admin and changed Download by Redirect to false and Download by streaming to true. Now I went back to the demo store and tried to download an order and it worked. :)
But I'm still waiting on my hosting provider to answer me as to why redirect is not working. So hope they can fix that.
Nathy
Hello Ajeh,
I went into my old zencart admin and changed Download by Redirect to false and Download by streaming to true. Now I went back to my store and tried to download an order and it didnt worked once again. So I guess I really did mess things up in that one.
Now what would be the next step to be able to fix that? Delete this zencart and use the test zencart instead?
Thanks for your help.
Nathy
What add-ons are you using on your shop?
Could you post, from the server, without your username and password the files:
/includes/configure.php
/admin/includes/configure.php
Hello Ajeh,
Sorry for delay but with Halloween I've been kinda busy at home :)
What are add-ons? I only used what is in zencart, well as far as I know anyway.
This is includes/configure.php:
This is /admin/includes/configure.php:Quote:
<?php
/**
* @package Configuration Settings circa 1.3.8
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
*/
/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'http://www.nathy.net');
define('HTTPS_SERVER', 'https://www.nathy.net');
// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'false');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/shop/');
define('DIR_WS_HTTPS_CATALOG', '/shop/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
define('DIR_WS_PHPBB', '/');
// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/home/users/web/b788/pow.natsto/htdocs/shop/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'natsto.powwebmysql.com');
define('DB_SERVER_USERNAME', 'xxx');
define('DB_SERVER_PASSWORD', 'xxx');
define('DB_DATABASE', 'nathystore');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');
// for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage
// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/users/web/b788/pow.natsto/htdocs/shop/cache');
// EOF
Hope this helps you. Thanks!Quote:
<?php
/**
* @package Configuration Settings circa 1.3.8
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
*/
/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
// Define the webserver and path parameters
// Main webserver: eg-http://www.your_domain.com -
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
/*
* URLs for your site will be built via:
* HTTP_SERVER plus DIR_WS_ADMIN or
* HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
* HTTP_SERVER plus DIR_WS_CATALOG or
* HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
* ...depending on your system configuration settings
*
* If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
*/
define('HTTP_SERVER', 'http://www.nathy.net');
define('HTTPS_SERVER', 'https://www.nathy.net');
define('HTTP_CATALOG_SERVER', 'http://www.nathy.net');
define('HTTPS_CATALOG_SERVER', 'https://www.nathy.net');
// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'false');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/shop/samcat/');
define('DIR_WS_CATALOG', '/shop/');
define('DIR_WS_HTTPS_ADMIN', '/shop/samcat/');
define('DIR_WS_HTTPS_CATALOG', '/shop/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');
// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_ADMIN', '/home/users/web/b788/pow.natsto/htdocs/shop/samcat/');
define('DIR_FS_CATALOG', '/home/users/web/b788/pow.natsto/htdocs/shop/');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'natsto.powwebmysql.com');
define('DB_SERVER_USERNAME', 'xxx');
define('DB_SERVER_PASSWORD', 'xxx');
define('DB_DATABASE', 'nathystore');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');
// for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage
// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/users/web/b788/pow.natsto/htdocs/shop/cache');
// EOF
Nathy
On the site that works ... what happens if you make a new product and add a zip that doesn't work on your broken site?
Does that work on the site that is currently working?
Hello Ajeh,
Yes it does work. I added Halloween Labels as a free item under Test10% with same option name Download - Dropdown and same option value Zip File I used in the other site and voila.
Think I will just flush the first store all together and work on the second. What you think?
Thanks alot for all your help.
Nathy
My hosting provider asked me to set my download to Redirect and give them everything so they can check it out. So my test store is back to Redirect for now. I will leave it like that until they answer me.
I will keep you inform Ajeh and thanks again.
Either that or try checking to see if there is a code issue by using something like Beyond Compare from scootersoftware.com to compare the code in the two shops to see where there might be differences ...
Ok here's what my hosting provider told me :
The link gets re-directed to http://www.nathy.net/catalog/pub/.rc...weenlabels.zip when the steps you gave are followed from http://www.nathy.net/catalog/pub . You have to configure the digital download correctly. For more help, please contact ZenCart support.
Yeah like I can guess the exact path or can I? :wacko:
Think I'm just gonna stick with download by streaming since its working.
Thanks for all your help Ajeh. I will just restart my store from scratch.
Nathy
Tell your hosting site to make sure you have the ability to use symbolic links from the .htaccess file in the /pub directory:
Code:#prevent directory browsing -- for security
IndexIgnore */*
Options +FollowSymLinks -Indexes
Thanks Ajeh,
I told them exactly that. Thanks for all your help!!! :)
Nathy
Well seems my download aint working right for some people.
One of my friend did a test download and here's what she told me :
I tested these 3 same files and I didnt have any problems at all so I am not sure if its my download again or if its her internet.Quote:
Nathy,
I have tried a couple of times to download these three files but they only
download part of the files and then closes on me. ~sigh~ I don't know what
is going on. It happens on all three files!
Would someome mind trying to download the same files and see if it works for you? Everything is free for now in my store. The 3 files are the ones under Templates : Flower Templates, Rond Tag Templates and Flower Seamless Patterns.
Link is http://www.nathy.net/shop/
I am seriously thinking about changing hosting provider, cant say they are very helpful :cry:
Thank you so much.
Nathy
Hello Ajeh,
Well they did just that and the code is now into .htaccess in the pub directory but yet download by redirect wont work.
Now when I got into my control panel for my web site in the .htaccess editor there is a place for URL Redirect. It is actually empty but I am wondering if that would work.
Quote:
URL Redirect
Add new URL Redirect
Redirect this URL: http://www.nathy.net/shop/download/
To this URL: http://www.nathy.net/shop/pub/
I really dont know what to do anymore. Seems download by streaming working fine for me but as I posted earlier, it wasnt working for my friend who tested the download for me.
About to give up :(
Nathy
Don't make changes in the Control Panel ...
If you cannot use the .htaccess to manage this, then either your hosting provider needs to configure something properly for you to utilize symbolic links or you are limited by their settings ...
I am glad that you have a solution that can work for you ...
How large are your download files?
What happens if you setup a Test Product with a tiny zip file when the Redirect is turned ON?
Well yes download by streaming works for me on my computer but as I said in another post its not working for my friend who tried it. Would you mind testing to download something on my site please? Link is http://www.nathy.net/shop and everything is free.
My files sizes are from 10 kb to 30 mb, its scrap stuff so some files are big. And yes I did add a small zip file to test the redirect and I still get the cant be found page so its clear redirect is not working.
Right now I'm looking at the list of certified hosts you have to find me another hosting provider. I have to renew my site by january anyway.
Nathy
I created an account and did a checkout with a Download that was 2+meg and had no problem ...
Are there any particular products_id that are having issues?
I just did, at 1:35 pm EST, a test download and had no problems with the downloads.
However, the file sizes are over 1 meg. That may cause some problems for people who are using Dial-Up and some low-end broadband connections. They might need to install a Download Manager to allow them to continue the downloads if they get cut-off.
Thank you thank you so much for testing for me!!!
Yes my friend tried to download 3 files that are under Templates : Flower Templates, Rond Tag Templates and Flower Seamless Patterns. But WHAnderson downloaded the same ones and had no problems so guess its just my friend.
Phew... this is such a relief lol ok I will try not to make my files so big but with some scrapkits being over 20 MB i cant possible created 10 downloads as it would be never ending for me :S
Thanks alot to you 2 and I will keep going with my site as it is right now.
Nathy
Hey there..
Ok I've gone through the whole thread ..lots of reading lol
I've gotten this far..
I've set it up as Download with the dropdown button
value is zip file
Now, when I go to my catalog and select the product, I click A and go to the attribute controller.
I highlight download, then zip file then at the bottom I add my zip file .. which is called snowprincess.rar
Now the thing is, this file is under store/joanne (as we have more than one designer) so do I need to do anything different?
Is rar files accepted?
Because when I check ..I dont have a green A.. it says Downloads: 1 files
Invalid: snowprincess.rar
Hi,
This is your problem...you have to have your file in the download folder. Now if you want to separate them by names, you can put the folder "Joanne" into the download folder. in the name of the file you would write:
joanne/snowprincess.rar
but it is only looking in the download folder for the file.
Clear as mud? :shocking:
Blessings,
Kimberly
Hey thanks for answering..
I did manage to figure out the prob after a few hrs :blink:
Gotta say that this is prob the most confusing part of the cart ... glad I got it sorted :clap:
Hi Ajeh-
Thanks for the fantastic review of the process!
I've checked and have done all the steps correctly but the download option isn't showing up on the confirmation page or in my account in previous orders. (The file permissions are correct on my server and the files are there.)
I'm pulling my hair out... Any ideas? Anyone else experience this?
http://vintagekissphotos.com/shop/in...products_id=46
1 the link is bad ... have you a Download product and which attribute(s) have the download file on them?
2 the Products with Attributes that I did look at have 2 radio buttons with no default button so customers just click Add to Cart ...
It is a good idea with Radio buttons or Dropdowns to add an extra Option Value that is something like:
Pick a color
Pick a size
what do you want?
What media?
etc. etc. to sound good for your site ...
Set to Default YES Display Only YES Sort Order 0 and now the customer must make valid selections ...
Hi,
I've posted this question before (but in different section - maybe that's why i got no reply after 1 week).
Here's my problem :
1. i've set my payment ption using direct bank (module) and paypal
2. It's works fine for normal item - when checked out, the payment option will show Direct Bank & Paypal to be selected.
3. But for downloadable item, my store will automatically select Paypal for payment method (no payment option page - skipped).
Can anyone here tell me how to solve this?
Am I missing something?
Thanks.
Regards.
I have been scanning thru this thread and have set pub to 777, redirect is on, files are stored in download or folders in dowwnload, I get the green light for the files, yet when I click on the download button after it has been paid for I get the following error:
The server encountered an internal error or misconfiguration and was unable to complete your request. Your administrator may not have enabled CGI access for this directory
CGI & PHP scripting are both on.
Zen Cart does not need CGI support unless your server requires CGI to run PHP.
Your server probably has some sort of mod_security or maybe an .htaccess rule that's blocking the file delivery. Check your server's apache errorlog for more information on the exact cause of the "internal server error", or contact your hosting company for assistance.
I've been trying for 2 days to change my download folder to level above public_html.
Yes, I have read the tutorial/faq and have searched this thread. I still can't find what I need to know...or I'm to blind and frustrated to see it.
First, if I go by this tutorial:
https://www.zen-cart.com/tutorials/i...hp?article=280,
it will not work because this line:
define('DIR_FS_CATALOG', '/home/myname/public_html/store/');
says the store folder is the top folder in the structure.
Well...I'm reloacting the download folder higher in the folder chain, so this will not work.
When I change the download line to read:
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/home/myname/mystore/mydownloads/');
I receive an error on my store front that says the download folder can't be found at:
/home/myname/public_html/mystore//home/myname/mystore/mydownloadfolder/
This leads me to beleive I need to change my FS CATALOG to a higher level.
Can I change my DIR_FS_CATALOG to /home/myname/ then add this:
define('DIR_FS_DOWNLOAD',
DIR_FS_CATALOG . 'public_html/mystore/',
then prefix all of my dependent folders like this:
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'mystore/folder1/folder2/mydownloads/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'public_html/mystore/pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'public_html/mystore/uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'public_html/mystore/email/');
?:dontgetit
I'm sure I could download a good copy of both configure files and just try what I've explained. But I need to know if I'm headed in the right direction or if I'm going to corrupt something by doing this.
I'm with hostmonster...folder settings were 755 and redirect was turned on.
I would appreciate any help.
Mike
I'm with hostmonster...public_html folder was set to 755, home/myname/mystore/file1/file2/mydownloads were all set to 755, and redirect was turned on in admin. 755 was used because the store worked fine with these settings when the download folder was located in the store folder.
Well, I tried changing the config files anyway....didn't work.
The Zencart installation page showed up when I tried to access my cart.
Restored my config files and now have the download folder in my store again. It will work for now but I would really like to protect music files from public_html.
I'm stuck for now...until I get some feedback.
Apparently, the database did not like what I did...my page layout settings are back to the original layout.
Should I restore everything from backups created yesterday?
Nevermind, that was probably done when I set up my new template...
Good grief, you're making this WAY harder than it needs to be.
If your store is in /home/USER/public_html/store
then your downloads are currently in /home/USER/public_html/store/download
and you want to move the "download" folder up into the same place where public_html is located ...
so that means you want the download dir to be /home/USER/download
The grief is in the tutorial directions...and if I'm not mistaken, that is the folder location I tried to create and link to.
QUOTE FROM MY POST:
When I change the download line to read:
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/home/myname/mystore/mydownloads/');
I receive an error on my store front that says the download folder can't be found at:
/home/myname/public_html/mystore//home/myname/mystore/mydownloadfolder/
Here's a copy of the directions from the tutorial...
Use your FTP program to move your "download" folder outside your webroot. Perhaps drag-and-drop it to a level "above" your public_html folder. The method you choose for moving or creating this folder will depend on your hosting account and the tools available to you for moving folders.
Usually the "download" folder is located inside your store area, for example:
- /home/my_user_name/public_html/mystore/download
You want to move it "above" your public_html folder, something like this:
- /home/my_user_name/download
If I follow your directions, my download folder will still by in the public_html folder...correct me if I'm wrong.
Thanks.
...it's tired and I'm late....I'll see if I can make more sense tomarrow....
I appreciate your help.
There wasn't a username folder in the home directory...I thought that was an understood folder and one didn't need to physically reside on the server. :oops:
In the admin / catalog / downloads area, It took 5 recursives,
../../../../../username/download/personal folder
to get the link to work. I had only recursed 4 times when trying previously.:oops:
Appreciate your help.
:frusty:Okay, now I'm really confused. :wacko:
My download files are linking (green dot) in the admin functions.
But I'm getting this error when I open up my shopping cart:
Warning: The downloadable products directory does not exist:
/home/jestcoun/public_html/store//home/jestcoun/download/. Downloadable products will not work until this directory is valid.
I'm right back to where I started from...
Original post:
First, if I go by this tutorial:
https://www.zen-cart.com/tutorials/i...hp?article=280,
it will not work because this line:
define('DIR_FS_CATALOG', '/home/myname/public_html/store/');
says the store folder is the top folder in the structure.
Well...I'm reloacting the download folder higher in the folder chain, so this will not work.
When I change the download line to read:
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/home/username/download/');
I receive an error on my store front that says the download folder can't be found at:
/home/jestcoun/public_html/store//home/jestcoun/download/
The double file structure and double slashes are not a typo...
This leads me to beleive I need to change my FS CATALOG to a higher level.
End of Original Post.
Do I need to do a fresh install of zencart without going through Fantastico or Simplescripts?
I really believe the config file WS and FS structures are limiting me from accessing the downloads...correct me if I'm wrong.
Please help.
I'll just stick to the original setup...this just is not working for me.
I'll keep an eye on the thread and maybe something will click somewhere down the line.
See the double slashes:
Notice that they have duplicated the home path as part of that error?Quote:
/home/jestcoun/public_html/store//home/jestcoun/download/. Downloadable products will not work until this directory is valid.
That means you most likely have something wrong in your configure.php file(s) ...
Hello,
I, too, have read through this entire thread - time travel :) - tried all the various options, and still haven't quite got there.
I would appreciate a wise eye...
I set-up the Option Name & Option Value as "Free Download" and "Download PDF". The product is NOT virtual, and has "Normal Shipping Rules". The zip file has the green "valid" dot.
Now, maybe I'm missing something but I don't see any place where the file can be downloaded. Not anywhere through the order process, nor the received email.
This is a free product, so perhaps that has some effects.
Any ideas? Help would be much appreciated.
With thanks
John
Ah, I just noticed that the ORDER STATUS is "Pending". How is tha confirmed on a FREE DOWNLOAD?
Ah ah. :) Now I get it. Once the order is processed, you go into Orders and select "Delivered" and when the customer follows their link to their order - there is now a DOWNLOAD button and completion.
Phew! It was worth it. Thank you!
With kind regards
John
Thank you.
John
Note: if the Order is Free and you do not need to "check it" you could set up the Free Payment freecharger Payment Module to Processing (orders_status 2) or Delivered (orders_status 3) and the Download(s) would be available immediately ...
Just the part where I mentioned setting the Order Status to either:
Processing (orders_status 2)
Delivered (orders_status 3)
would make for automatically available for Download ... :smile:
Pending (orders_status 1) means you have to approve the Order and change its status (orders_status) to be >= 2 and <= 4 ... before any Downloads can be accessed ...
Thanks for the response!
I think that's the point I was trying to get across in the original post?
Below is a copy of the way the config file was set up on Host Monster with Simple Scripts.
I'll highlight in red what changes I did.
Maybe you can tell me what is wrong...or not.
I realize now that ZC took special precautions for downloads by adding the /pub folder where a temporary pointer file points to the actual download folder.
However, I was just trying to follow the suggested security steps from the FAQ area. The FAQ said relocating the download folder outside of the public_html folder was the best way to go.....
<?php
/**
* @package Configuration Settings circa 1.3.8
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
*/
/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'http://www.mysite.com');
define('HTTPS_SERVER', 'http://www.mysite.com');
// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'false');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/myshop/');
define('DIR_WS_HTTPS_CATALOG', '/myshop/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
define('DIR_WS_PHPBB', '');
// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
The following line is what I suspect is causing all of my problems but I've tried changing it every way I can think of so ZC can get past it and recognize the download folder outside of the public dirictory.
define('DIR_FS_CATALOG', '/home/myusername/public_html/myshop/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/home/myusername/mydownloads/');
Tried with and without beginning and trailing slashes, ../, ../../, ../../../, and ../../../../mydownloads/ but I could never get the shopping cart to go back past /home/myusername/public_html/myshop/:
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'myusername_db1');
define('DB_SERVER_PASSWORD', 'xxxxxxxxxxxx');
define('DB_DATABASE', 'myusername_db1');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');
// for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage
// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/myusername/public_html/myshop/cache');
// EOF
Glad that this worked for you thanks for the update! :smile:
I have read through virtually all the relevant posts, but cannot find anything to help me, and the question is probably very simple.
I have a downloadable product (Cross stitch pattern in PDF), and when I use the test pdf_sample.zip, everything works 100%, BUT
when I use my own file the dot next to the filename in the attributes stays red.
My filename after zipping reads Flower.pdf.zip.
I zipped the file AFTER it was moved into the /download file. Does this have anything to do with it? Should I perhaps zip it before I upload to the server? (I zipped them as a group).
Where am I going wrong?
Thanks.
My apologies...my filename reads
Flower_Anchor.pdf.zip
Sorry, another PS:
With the dot red next to the filename, it also does not give the customer a download button.
For giggles and grins ... could you name your file with a normal method where there is a filename and an extention separated by a period?
Bad Filename:
Flower_Anchor.pdf.zip
Good Filename:
Flower_Anchor_pdf.zip
Flower_Anchor_PDF.zip
Flower_Anchor.zip
Does it work now?
Ok, sorry, I can see the mistake there.
I tried it now with a completely new item:
The_Arts_Poetry_Anchor.zip
This time I changed the name of the file to "no spaces, etc" BEFORE I zipped it, then zipped the single file, and uploaded the single file.
It still does not work?
Thanks
After you load the new file with the new filename did you also go back and update your attribute with the new filename?
Yes, I did...
I now tried the sample pdf again..it works, and then did another new product, following EXACTLY the same procedure...result? Red dot next to filename.
When you enter the filename in the Attribute, are you just adding:
The_Arts_Poetry_Anchor.zip
And you are uploading it to:
/download
And /pub is set to 777 ...
Also, what happens if you Zip the file and then load it to the server?
Yes to all the questions...pub was fine for the pdf_sample, and I did try to zip the file before uploading, uploaded to /download (where pdf_sample also is).
Just don't know what else to try.....
I don;t know if this will help, but here are screenshots of the Zencart attributes page, and the download file at my
How large is this file?
The_Arts_Poetry_Anchor.zip
Quite large...344 kB....most of my files are roughly that size, the smallest is 180kB.
Actually that is pretty small compared to many sites that make files that are several megs ...
Try making a New Product and then add the Attribute to that New Product with the file ...
Does anything change?
Something is not right here and really doesn't make a lot of sense that the file is not being recognized ...
NOTE: I am assuming that when you loaded the file, via FTP to the /download directory that you first deleted any existing files of the same name from the server ...
The original files were zipped as a category, e.g. Art Nouveau, Birds, Butterflies, etc.
I subsequently tried zipping the individual files, and uploading them individually. This was done with The Arts - Poetry.
The result has been the same.
I am so sorry...see where my mistake was now. I put the files into the / public_html/ download file, and not the /public_html/home/username/public_html/download.
I apologise most profusely for wasting your time...working perfectly now.
Thanks very much.
Thanks for the update that you have this working now ... :smile:
Does this thread apply to video on demand? I would like to setup zen cart so after a purchased is approved, visitors can watch an FLV or WMV file embedded in a page.
Do all files in the download folder need to be zipped? If so how do streaming videos play without first downloading and unzipping?
Hi, I'm a newbie here this is my second zen cart website. I love zen cart so I am hoping if is it possible to set up order options either to ship or to download the goods right away so in that case if the download option is selected the shipment fee should go away and if the user chooses to ship then the charges would come up,....
Think my head will blow with confusion. :blink: I hope you can help me with this matter.
Thanks
Fayte
Downloads, when setup correctly, do not have shipping and you will not see the checkout_shipping page on an order with just downloads ...
You can configure the Payment Modules to set the Orders Status so that Downloads are immediately available after the order is complete, such as a credit card/PayPal or that you have to update the Order Status first, such as Check/Money Order ...
Your Product has two options:
1 Download it
2 Get it in the snail mail
The product is never both the download and get it in snail mail at the same time ... is this correct?
Oh I finally Figured out my site. I was able to set product options either to download or to ship the goods... Amazing! :bigups: Just have to configure the download and the shipment options properly.
My question is, if I will set my payment into production mode, can download be automatic? or should I manually update the buyers status all the time??? I hope anybody would care to answer my question,... Thanks...
It is up to you on whether the Download is immediately available or not ...
Usually, for PayPal or Credit Cards using the Processing is good so Downloads are available right away ...
For Check/Money Order, using Pending is good so you can confirm that you have the money when the check comes ...
Oh I see... so that is why I am manually updating the status because I have set the payment in Check or Money Order. But If I will use my actual merchant, where will I set the status those status, to automatically download the goods? :smile:
You set the Orders Status on each of the Payment Modules ... :smile:
Attribute Option and Option Value Do NOT Match - Attribute was not added - : TEXT
Post #17...same problem on mine but unlike post 17, mine is working and has been working, it's just an annoyance I would like make disappear.
I have checked every page I can think of and I don't see where I have text enabled at all.
I was just adding a 5th radio button this morning and checked it again (some of our scrap kits get rather large) and all I have are radio buttons and all are the default.
Any clues as to where to go to make it go away and not annoy me any longer?
If I can't, can you tell me how to use it...I could use it to download the designer's terms of use with their files.
Liz
Attributes for Downloads are configured with the Option Name being a dropdown or radio button etc.
The are then added to the Product with their Option Values and file name ...
Your error is suggesting that rather than selecting an Option Value made for the Option Name for the download that you are selecting TEXT [RESERVED FOR TEXT/FILES ONLY] and that is for TEXT or Upload files ...
That's what I thought too when I first read thru this thread but I've looked and looked and can't find what is wrong. Mine work and I am attaching screen shots to show what I have. Maybe you can see what I'm not.
The first two are the attribute controller screens. The last two are an example of one of my zip files with the error message.
Liz