Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Major Issues with downloadable products

Major Issues with downloadable products

Views: 1,181

Results 1 to 15 of 15
28 Feb 2013, 6:20 PM
#1
babygurl18720 avatar

babygurl18720

New Zenner

Join Date:
Mar 2012
Posts:
8
Plugin Contributions:
0

Major Issues with downloadable products

Ok this is really irritating me now lol I'm not much of a newb when it comes to this stuff, but I'm really stuck now and I have no idea WHY. When I first installed my Zencart for the 2nd time (didn't use it for over a year and just did a wipe and fresh install), I followed the directions for the template I used and basically I just remembered how to setup downloadable products as from before, plus I currently sell in 3 other stores as well. Well now, after installing, I obviously setup a test account and what not and tested items that both cost money and are free. They worked, just fine, and were downloadable too. Now all of sudden, my downloads don't work. Why??! :unsure: I wish I knew the answer to that. I didn't change any settings with downloads. I don't know what's going on. I have included a few screenshots.

The first image is to show what it looks like in my cart and I know its supposed to say something like "Download #1 - Download #1" underneath the title of the product. The rest are from the admin panel of my option name, option value, and attributes, showing that everything IS setup correctly (unless I'm really dense) and yet I still can't download anything. :shocking::huh:

Attachment 12027Attachment 12028Attachment 12029Attachment 12030

28 Feb 2013, 6:35 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Major Issues with downloadable products

What is the name of the file? The image is too tiny for me to read it ... :lookaroun

28 Feb 2013, 7:18 PM
#3
babygurl18720 avatar

babygurl18720

New Zenner

Join Date:
Mar 2012
Posts:
8
Plugin Contributions:
0

Re: Major Issues with downloadable products

Oh sorry hehe. The file name is PRD_tiamo.zip. A few other things I may have forgot to mention...I tried the disabling re-direct, checked all ftp permissions, etc.

The file is green and is correct. :D

28 Feb 2013, 7:32 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Major Issues with downloadable products

What do the .htaccess files read in the directories:
/pub
/download

what are the read/write settings for the directories:
/pub
/download

1 Mar 2013, 2:09 AM
#5
babygurl18720 avatar

babygurl18720

New Zenner

Join Date:
Mar 2012
Posts:
8
Plugin Contributions:
0

Re: Major Issues with downloadable products

RW settings are: (defaults)
pub - 777
download -755

As for the htaccess files, this one is for /pub

#
# @copyright Copyright 2003-2011 Zen Cart Development Team
# @license [URL]http://www.zen-cart.com/license/2_0.txt[/URL] GNU Public License V2.0
# @version $Id: .htaccess 18695 2011-05-04 05:24:19Z drbyte $
#

## the following line is needed to allow Download-By-Redirect to work
  Options +FollowSymLinks

#
# This is used with Apache WebServers
#
# The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
# It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
# Will also prevent people from seeing what is in the dir. and any sub-directories
#
# For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
# Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to add 'Options' to the AllowOverride list, if 'All' is not specified. 
# Example:
#<Directory "/usr/local/apache/htdocs">
#  AllowOverride Limit Options Indexes
#</Directory>
###############################

# deny *everything*
<FilesMatch ".*">
  Order Allow,Deny
  Deny from all
</FilesMatch>

# but now allow just *certain* necessary files:
<FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub)$">
  Order Allow,Deny
  Allow from all
</FilesMatch>

<IfModule mod_headers.c>
  <FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub)$">
    # tell all downloads to automatically be treated as "save as" instead of launching in an application directly
    # ALERT: ForceType requires Apache2 or later. If using older version of Apache, it will need mod_mime installed. Or just comment out the ForceType line below
    # (to disable, just comment the next 2 lines by adding a '#' at the beginning of each):
    ForceType application/octet-stream
    Header set Content-Disposition attachment
  </FilesMatch>
</IfModule>

IndexIgnore */*


## NOTE: If you want even greater security to prevent hackers from running scripts in this folder, uncomment the following line (if your hosting company will allow you to use OPTIONS):
# OPTIONS -Indexes -ExecCGI

And this is for /download

#
# @copyright Copyright 2003-2011 Zen Cart Development Team
# @license [URL]http://www.zen-cart.com/license/2_0.txt[/URL] GNU Public License V2.0
# @version $Id: .htaccess 18695 2011-05-04 05:24:19Z drbyte $
#

AuthType Basic
AuthName "No access"
AuthUserFile .htnopasswd
AuthGroupFile /dev/null
#Require valid-user


###############################
#
# This is used with Apache WebServers
#
# The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
# It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
# Will also prevent people from seeing what is in the dir. and any sub-directories
#
# For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
# Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to add 'Options' to the AllowOverride list, if 'All' is not specified. 
# Example:
#<Directory "/usr/local/apache/htdocs">
#  AllowOverride Limit Options Indexes
#</Directory>
###############################

# deny *everything*
<FilesMatch ".*">
  Order Allow,Deny
  Deny from all
</FilesMatch>

# but now allow just *certain* necessary files:
<FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub)$">
  Order Allow,Deny
  Allow from all
</FilesMatch>

<IfModule mod_headers.c>
  <FilesMatch ".*\.(zip|ZIP|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub)$">
    # tell all downloads to automatically be treated as "save as" instead of launching in an application directly
    # ALERT: ForceType requires Apache2 or later. If using older version of Apache, it will need mod_mime installed. Or just comment out the ForceType line below
    # (to disable, just comment the next 2 lines by adding a '#' at the beginning of each):
    ForceType application/octet-stream
    Header set Content-Disposition attachment
  </FilesMatch>
</IfModule>

IndexIgnore */*


## NOTE: If you want even greater security to prevent hackers from running scripts in this folder, uncomment the following line (if your hosting company will allow you to use OPTIONS):
# OPTIONS -Indexes -ExecCGI
1 Mar 2013, 2:29 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Major Issues with downloadable products

Do any of your downloads work or is it just this one that fails?

1 Mar 2013, 2:33 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Major Issues with downloadable products

Looking at the picture of the Attributes Controller ... there looks to be something in front of the filename ... are you using a subdirectory or is the download file in the /download directory?

More or less, if you hit Edit on this Attribute for the Download, do you just see the filename itself in the input box, or is there something more?

1 Mar 2013, 6:46 PM
#8
babygurl18720 avatar

babygurl18720

New Zenner

Join Date:
Mar 2012
Posts:
8
Plugin Contributions:
0

Re: Major Issues with downloadable products

None of them work, even when I add new products, but they were working before. =\

As for the files, yes I created sub folders inside the download folder for each designer. I even did this the last time too and never had this problem.

So for this file the full url is

prd/kits/PRD_tiamo.zip

2 Mar 2013, 12:24 AM
#9
babygurl18720 avatar

babygurl18720

New Zenner

Join Date:
Mar 2012
Posts:
8
Plugin Contributions:
0

Re: Major Issues with downloadable products

I was looking up more solutions and saw your posts with another person. My store url is http://ts-ds.com. There are freebies you can test if you wish. And if you need or want my login for the admin, I can do that as well. Anything to help because this is driving me insane!!! ;) Thanks lol

2 Mar 2013, 12:31 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Major Issues with downloadable products

I made an Order ... can you check if you see in your Zen Cart Admin under the Orders, a download on my order?

If so, can you set that Order to Delivered?

NOTE: Should be Order #9 ...

2 Mar 2013, 12:34 AM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Major Issues with downloadable products

Also, if that Product is NOT a download, can you give me the products_id on a Free Download Product in your shop?

2 Mar 2013, 2:47 AM
#12
babygurl18720 avatar

babygurl18720

New Zenner

Join Date:
Mar 2012
Posts:
8
Plugin Contributions:
0

Re: Major Issues with downloadable products

Ok, I see your order. Status of your order is already set to Delivered, but I don't see any links to download on it. That product is the same one as the picture I posted with the download url and such.

2 Mar 2013, 2:56 AM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Major Issues with downloadable products

And you are sure that that Product has a Download attached to it in the Attributes Controller?

I did not see a Download on the Product, nor any other Attribute, althought it "acted" like a Product with Attribute(s) as I had to go to the Product to add it to the cart ...

On the Order in your Zen Cart Admin, do you see that there is a Download on that Order?

Do you see a table with the Down load listed labeled:

**Order Download Status
**

If you look, via phpMyAdmin, at the table:
orders_products_download

do you see a record for my Order #9 in the orders_id with the Download listed?

2 Mar 2013, 6:43 AM
#14
babygurl18720 avatar

babygurl18720

New Zenner

Join Date:
Mar 2012
Posts:
8
Plugin Contributions:
0

Re: Major Issues with downloadable products

Ok basically its a no to all your questions. There is no downloadable file attribute in your order on the zen admin and its weird but on php myadmin, it doesn't seem to be recording anymore orders. I only see order ids 2 3 and 4 and yet yours was #9 o.o.

See also, I have 3 other designers in this store with me, now after I reinstalled zen, setup the template and yada yada yada, before I gave them their admin login info, I tested 2 products for this reason exactly. 1 free and 1 for 0.01. They worked just fine as I already stated. But now even here is a screenshot of what I see on the order in my account. I can't even download THAT file anymore.

Attachment 12042

2 Mar 2013, 7:33 AM
#15
babygurl18720 avatar

babygurl18720

New Zenner

Join Date:
Mar 2012
Posts:
8
Plugin Contributions:
0

Re: Major Issues with downloadable products

Ok I fixed it. It turns out it was something in my template file that I guess I must of edited on a day when I was exhausted from work lol. I just reuploaded all unedited template files except the css. Now I just have to figure out exactly what caused the problem lol. Thanks for all your help!