Forums / Setting Up Categories, Products, Attributes / How to set up downloadable products?

How to set up downloadable products?

Locked

Views: 70,822

Results 161 to 180 of 222
This thread is locked. New replies are disabled.
11 Dec 2008, 11:17 PM
#161
lifechangeshop avatar

lifechangeshop

New Zenner

Join Date:
Dec 2008
Posts:
4
Plugin Contributions:
0

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

11 Dec 2008, 11:41 PM
#162
lifechangeshop avatar

lifechangeshop

New Zenner

Join Date:
Dec 2008
Posts:
4
Plugin Contributions:
0

Re: How to set up downloadable products?

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

12 Dec 2008, 5:24 AM
#163
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 Dec 2008, 10:37 AM
#164
lifechangeshop avatar

lifechangeshop

New Zenner

Join Date:
Dec 2008
Posts:
4
Plugin Contributions:
0

Re: How to set up downloadable products?

Hi Linda,

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

12 Dec 2008, 3:18 PM
#165
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Dec 2008, 5:45 AM
#166
jestcoun avatar

jestcoun

New Zenner

Join Date:
Oct 2007
Posts:
33
Plugin Contributions:
0

Re: How to set up downloadable products?

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
13 Dec 2008, 12:29 PM
#167
lifechangeshop avatar

lifechangeshop

New Zenner

Join Date:
Dec 2008
Posts:
4
Plugin Contributions:
0

Re: How to set up downloadable products?

Hi Linda,

:oops:

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

13 Dec 2008, 4:26 PM
#168
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to set up downloadable products?

Glad that this worked for you thanks for the update! :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Dec 2008, 3:00 PM
#169
nunukis avatar

nunukis

New Zenner

Join Date:
Oct 2008
Location:
Netherlands
Posts:
27
Plugin Contributions:
0

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.

Karin

Listen to your convictions, even if to your reason they seem absurd

16 Dec 2008, 3:14 PM
#170
nunukis avatar

nunukis

New Zenner

Join Date:
Oct 2008
Location:
Netherlands
Posts:
27
Plugin Contributions:
0

Re: How to set up downloadable products?

My apologies...my filename reads

Flower_Anchor.pdf.zip

Karin

Listen to your convictions, even if to your reason they seem absurd

16 Dec 2008, 6:39 PM
#171
nunukis avatar

nunukis

New Zenner

Join Date:
Oct 2008
Location:
Netherlands
Posts:
27
Plugin Contributions:
0

Re: How to set up downloadable products?

Sorry, another PS:

With the dot red next to the filename, it also does not give the customer a download button.

Karin

Listen to your convictions, even if to your reason they seem absurd

16 Dec 2008, 8:53 PM
#172
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to set up downloadable products?

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?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Dec 2008, 9:22 PM
#173
nunukis avatar

nunukis

New Zenner

Join Date:
Oct 2008
Location:
Netherlands
Posts:
27
Plugin Contributions:
0

Re: How to set up downloadable products?

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

Karin

Listen to your convictions, even if to your reason they seem absurd

16 Dec 2008, 9:34 PM
#174
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to set up downloadable products?

After you load the new file with the new filename did you also go back and update your attribute with the new filename?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Dec 2008, 9:51 PM
#175
nunukis avatar

nunukis

New Zenner

Join Date:
Oct 2008
Location:
Netherlands
Posts:
27
Plugin Contributions:
0

Re: How to set up downloadable products?

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.

Karin

Listen to your convictions, even if to your reason they seem absurd

16 Dec 2008, 10:19 PM
#176
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to set up downloadable products?

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 ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Dec 2008, 10:20 PM
#177
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to set up downloadable products?

Also, what happens if you Zip the file and then load it to the server?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Dec 2008, 7:27 AM
#178
nunukis avatar

nunukis

New Zenner

Join Date:
Oct 2008
Location:
Netherlands
Posts:
27
Plugin Contributions:
0

Re: How to set up downloadable products?

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.....

Karin

Listen to your convictions, even if to your reason they seem absurd

17 Dec 2008, 12:28 PM
#179
nunukis avatar

nunukis

New Zenner

Join Date:
Oct 2008
Location:
Netherlands
Posts:
27
Plugin Contributions:
0

Re: How to set up downloadable products?

I don;t know if this will help, but here are screenshots of the Zencart attributes page, and the download file at my

Karin

Listen to your convictions, even if to your reason they seem absurd

17 Dec 2008, 5:08 PM
#180
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to set up downloadable products?

How large is this file?
The_Arts_Poetry_Anchor.zip

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!