Forums / General Questions / How to download directly off product info page

How to download directly off product info page

Views: 1,944

Results 1 to 20 of 44
25 Jul 2015, 8:05 AM
#1
parafanaylya avatar

parafanaylya

Totally Zenned

Join Date:
Jul 2005
Location:
Hoedspruit
Posts:
470
Plugin Contributions:
1

How to download directly off product info page

I have downloads available to my clients. These need to be available directly off the page, and not as part of the checkout process.

When I set up a download link to another website, the download works perfectly:

Navigate to our site here and click on the parts diagram PDF link at the bottom of the product info page.

As you see, this takes you to our supplier's site where the files are stored in their repository.

I have now started loading files in the file folder my_site/download/file_name.pdf so that we can have our own file repository.

When you click on the link e.g. here, then click on the Additional Info link, you get a server error message.

How can I get the downloads to work directly off the product info page only our domain.

25 Jul 2015, 8:13 AM
#2
parafanaylya avatar

parafanaylya

Totally Zenned

Join Date:
Jul 2005
Location:
Hoedspruit
Posts:
470
Plugin Contributions:
1

Re: How to download directly off product info page

Parafanaylya:

How can I get the downloads to work directly off the product info page to download files only sourced from our domain?

changed the wording above

25 Jul 2015, 8:21 AM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to download directly off product info page

Do these clients also have downloadable product for purchase?
What version of ZC?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

25 Jul 2015, 8:24 AM
#4
parafanaylya avatar

parafanaylya

Totally Zenned

Join Date:
Jul 2005
Location:
Hoedspruit
Posts:
470
Plugin Contributions:
1

Re: How to download directly off product info page

mc12345678:

Do these clients also have downloadable product for purchase?

No, all downloads are free

mc12345678:

What version of ZC?

1.5.4

25 Jul 2015, 8:31 AM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to download directly off product info page

What are the contents of the .htaccess file in the downloads directory and what are the ppermissions of the folder and associated fle(s)?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

25 Jul 2015, 8:34 AM
#6
parafanaylya avatar

parafanaylya

Totally Zenned

Join Date:
Jul 2005
Location:
Hoedspruit
Posts:
470
Plugin Contributions:
1

Re: How to download directly off product info page

mc12345678:

What are the contents of the .htaccess file in the downloads directory

PDF's

mc12345678:

and what are the ppermissions of the folder and associated fle(s)?

0644

25 Jul 2015, 8:37 AM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to download directly off product info page

Parafanaylya:

PDF's

0644

No, not what are the contents of the folder. There is typically an .htaccess file that is in the directory, need to know what the contents of that file are.

Also, 644, is that the permissions of the downloads folder?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

25 Jul 2015, 8:41 AM
#8
parafanaylya avatar

parafanaylya

Totally Zenned

Join Date:
Jul 2005
Location:
Hoedspruit
Posts:
470
Plugin Contributions:
1

Re: How to download directly off product info page

mc12345678:

No, not what are the contents of the folder. There is typically an .htaccess file that is in the directory, need to know what the contents of that file are.

No .htaccess file

mc12345678:

Also, 644, is that the permissions of the downloads folder?

Download folder permissions set to 755

25 Jul 2015, 8:43 AM
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to download directly off product info page

Btw, client should be made aware, that if this issue is resolved to download free dfs from the downloads directory, if in the future downloadable product is to be purchased, then something will have to be modified to hide the purchased downloads directory from others as once downloaded, basically a link back to the downloads directory will allow free download of product that should have been purchased. There is a FAQ to address providing a renamed folder so that the existing free product could remain in the downloads directory and another directory could be used for the purchased downloads.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

25 Jul 2015, 8:45 AM
#10
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to download directly off product info page

Parafanaylya:

No .htaccess file

Download folder permissions set to 755

Unless the parent directory (store root) or above has an .htaccess file permitting download of .pdf files, more than likely that is the problem.

Haven't answered ZC version question, but if look at a default ZC package, there should be one in the downloads directory that would solve your problem. If it does not, then may need to modify it a little.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

25 Jul 2015, 8:47 AM
#11
parafanaylya avatar

parafanaylya

Totally Zenned

Join Date:
Jul 2005
Location:
Hoedspruit
Posts:
470
Plugin Contributions:
1

Re: How to download directly off product info page

mc12345678:

Btw, client should be made aware, that if this issue is resolved to download free dfs from the downloads directory, if in the future downloadable product is to be purchased, then something will have to be modified to hide the purchased downloads directory from others as once downloaded, basically a link back to the downloads directory will allow free download of product that should have been purchased. There is a FAQ to address providing a renamed folder so that the existing free product could remain in the downloads directory and another directory could be used for the purchased downloads.

Thanks for that. Our site is not really an online store, and no payment facility will be avail;able now or in the future. It is an ordering & wishlist portal.

All downloads are product support like additional product information or parts diagrams.

25 Jul 2015, 8:49 AM
#13
parafanaylya avatar

parafanaylya

Totally Zenned

Join Date:
Jul 2005
Location:
Hoedspruit
Posts:
470
Plugin Contributions:
1

Re: How to download directly off product info page

mc12345678:

Unless the parent directory (store root) or above has an .htaccess file permitting download of .pdf files, more than likely that is the problem.

Looking now

mc12345678:

Haven't answered ZC version question, but if look at a default ZC package, there should be one in the downloads directory that would solve your problem. If it does not, then may need to modify it a little.

ZC1.5.4

25 Jul 2015, 8:51 AM
#15
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to download directly off product info page

Parafanaylya:

Looking now

ZC1.5.4

Default 1.5.4 install has one (available from https://zen-cart.com/getit)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

25 Jul 2015, 12:07 PM
#17
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to download directly off product info page

That image shows the extras folder. (Extras is highlighted), would want to move the cursor up 3 directories (up three rows) and take another image.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

25 Jul 2015, 12:37 PM
#18
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: How to download directly off product info page

I know I'm late to the party, but you could also try delia's most-excellent Product Extra Fields (https://www.zen-cart.com/downloads.php?do=file&id=926) plugin. That allows you to associate a file (like a PDF) with a product. The file comes from the (newly-added) /product_extra_files folder.

25 Jul 2015, 4:02 PM
#19
parafanaylya avatar

parafanaylya

Totally Zenned

Join Date:
Jul 2005
Location:
Hoedspruit
Posts:
470
Plugin Contributions:
1

Re: How to download directly off product info page

mc12345678:

That image shows the extras folder. (Extras is highlighted), would want to move the cursor up 3 directories (up three rows) and take another image.

Sorry - the wife needed me.

25 Jul 2015, 4:03 PM
#20
parafanaylya avatar

parafanaylya

Totally Zenned

Join Date:
Jul 2005
Location:
Hoedspruit
Posts:
470
Plugin Contributions:
1

Re: How to download directly off product info page

lat9:

I know I'm late to the party, but you could also try delia's most-excellent Product Extra Fields (https://www.zen-cart.com/downloads.php?do=file&id=926) plugin. That allows you to associate a file (like a PDF) with a product. The file comes from the (newly-added) /product_extra_files folder.

Thanks - will have a look at the plugin.