Re: How to set up downloadable products
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
Re: How to set up downloadable products
Quote:
Originally Posted by
lifechangeshop
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
Re: How to set up downloadable products
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 ...
Re: How to set up downloadable products
Hi Linda,
Quote:
Originally Posted by
Ajeh
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 ...
I gave this a go and set "freecharger" to handle orders "Pending" - but when I ordered it again, the DOWNLOAD button was not available at "Pending" status.
Am I missing something?
Many thanks
John
Re: How to set up downloadable products
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 ...
Re: How to set up downloadable products
Quote:
Originally Posted by
Ajeh
See the double slashes:
Notice that they have duplicated the home path as part of that error?
That means you most likely have something wrong in your configure.php file(s) ...
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
Re: How to set up downloadable products
Hi Linda,
:oops:
Quote:
Originally Posted by
Ajeh
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 ...
Thank you! :laugh:
John
Re: How to set up downloadable products
Glad that this worked for you thanks for the update! :smile:
Re: How to set up downloadable products
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.
Re: How to set up downloadable products
My apologies...my filename reads
Flower_Anchor.pdf.zip