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

How to set up downloadable products?

Locked

Views: 70,822

Results 141 to 160 of 222
This thread is locked. New replies are disabled.
10 Nov 2008, 6:46 PM
#141
nathybelle avatar

nathybelle

New Zenner

Join Date:
Oct 2008
Posts:
17
Plugin Contributions:
0

How to set up downloadable products?

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

14 Nov 2008, 3:48 PM
#142
juzjojo avatar

juzjojo

New Zenner

Join Date:
Nov 2008
Location:
Ontario, Canada
Posts:
72
Plugin Contributions:
0

Re: How to set up downloadable products?

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

14 Nov 2008, 7:30 PM
#143
kimberlyeddy avatar

kimberlyeddy

New Zenner

Join Date:
Sep 2006
Posts:
33
Plugin Contributions:
0

Re: How to set up downloadable products?

JuzJoJo:

Hey there..

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

Kimberly Eddy, Joyful Momma Publishing

14 Nov 2008, 8:11 PM
#144
juzjojo avatar

juzjojo

New Zenner

Join Date:
Nov 2008
Location:
Ontario, Canada
Posts:
72
Plugin Contributions:
0

Re: How to set up downloadable products?

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:

16 Nov 2008, 11:57 PM
#145
lucy_ru avatar

lucy_ru

New Zenner

Join Date:
Nov 2008
Posts:
1
Plugin Contributions:
0

Re: How to set up downloadable products?

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/index.php?main_page=product_info&cPath=12&products_id=46

Ajeh:

Creating a Product with a Download ...

To prepare to use Downloads ... you must first build some Option Names and Option Values that will be used to make the Attributes for the Download ...

In the Option Name Manager ... create an Option Name such as either:
Version
Download

Make the Option Type a Radiobutton or Dropdown

Next, go to the Option Values Manager ...

You need to build for the Option Name the Option Values, such as:
Zip file
English Zip file

To do this, you would pick the Option Name that you created such as Download and then enter: Zip file

for the Option Value ...

Now, create your Product ... when done, click the A for Attributes or go to the Attributes Controller and locate your Product ...

Select the Option Name: Download

Select the Option Value: Zip file

Enter the filename - this should be a Zip file without spaces or special characters or extra periods in the name such as: myfilename.zip

Enter the number of days for the person to be allowed to download the file

Enter the number of times that they can try to make the download

If this is the only download choice, mark it as the default

When saved, you should see a green dot next to the filename if you have loaded the file to the /download directory

Set /pub to chmod 777

On a unix server, in the Configuration ... Attribute Settings ... you should turn ON the Redirect

If for some reason on your unix server you cannot download small or large files, then speak to your host and find out why you are not able to use the symbolic link set in the .htaccess file ...

If you can download small files but not large files, ask your host why you cannot download large files and have them fix your site so that you can ...

NOTE: On a windows server, in the Configuration ... Attribute Settings ... you should turn OFF the Redirect

17 Nov 2008, 4:11 PM
#146
ajeh avatar

ajeh

Oba-san

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

Re: How to set up downloadable products?

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

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!

20 Nov 2008, 4:17 AM
#147
sumri avatar

sumri

New Zenner

Join Date:
Mar 2008
Posts:
46
Plugin Contributions:
0

Re: How to set up downloadable products?

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.

My Online Store
Sumri (The Founder)

4 Dec 2008, 7:17 PM
#148
lmsc10a avatar

lmsc10a

New Zenner

Join Date:
Dec 2008
Location:
Virginia
Posts:
2
Plugin Contributions:
0

Re: How to set up downloadable products?

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.

6 Dec 2008, 12:13 AM
#149
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: How to set up downloadable products?

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.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 Dec 2008, 10:06 PM
#150
jestcoun avatar

jestcoun

New Zenner

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

Re: How to set up downloadable products?

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/index.php?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

9 Dec 2008, 10:17 PM
#151
jestcoun avatar

jestcoun

New Zenner

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

Re: How to set up downloadable products?

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.

9 Dec 2008, 11:28 PM
#152
jestcoun avatar

jestcoun

New Zenner

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

Re: How to set up downloadable products?

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

10 Dec 2008, 4:12 AM
#153
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: How to set up downloadable products?

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

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 Dec 2008, 6:20 AM
#154
jestcoun avatar

jestcoun

New Zenner

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

Re: How to set up downloadable products?

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.

10 Dec 2008, 6:31 AM
#155
jestcoun avatar

jestcoun

New Zenner

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

Re: How to set up downloadable products?

...it's tired and I'm late....I'll see if I can make more sense tomarrow....

I appreciate your help.

10 Dec 2008, 7:26 PM
#156
jestcoun avatar

jestcoun

New Zenner

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

Re: How to set up downloadable products?

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.

10 Dec 2008, 8:03 PM
#157
jestcoun avatar

jestcoun

New Zenner

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

Re: How to set up downloadable products?

jestcoun:

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.

Actually, the username is understood.

After removing the physical folder and moving the download folder to the root, everything works fine.

10 Dec 2008, 8:49 PM
#158
jestcoun avatar

jestcoun

New Zenner

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

Re: How to set up downloadable products?

: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/index.php?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.

10 Dec 2008, 9:09 PM
#159
jestcoun avatar

jestcoun

New Zenner

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

Re: How to set up downloadable products?

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.

11 Dec 2008, 4:03 PM
#160
ajeh avatar

ajeh

Oba-san

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

Re: How to set up downloadable products?

See the double slashes:

/home/jestcoun/public_html/store//home/jestcoun/download/. Downloadable products will not work until this directory is valid.

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

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!