Zen Cart Logo
Forums / All Other Contributions/Addons / adding a pdf file link into product description page

adding a pdf file link into product description page

Views: 1,448

Results 1 to 11 of 11
11 Nov 2012, 3:59 PM
#1
pazdar avatar

pazdar

Zen Follower

Join Date:
Jan 2008
Posts:
174
Plugin Contributions:
0

adding a pdf file link into product description page

I've searched the forum and tried adding a link using <a href="pdf_files/forbiddenbrewrecipe.pdf">$nbsp;$nbsp;Forbidden Brew Recipe</a> in the product description. When I click on the link on the webpage, it gives me a 404 error. If I go to https://www.pazdarwinery.com/pdf_files/, it give me an index of pdf files. How do I set this up so that by clicking on the link in the product description it pulls up the pdf file?

11 Nov 2012, 4:44 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: adding a pdf file link into product description page

Try using the complete path in the link (http:// etc.)

11 Nov 2012, 4:59 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: adding a pdf file link into product description page

Complete to the file(space added by me)
http :// www .pazdarwinery.com/pdf_files/filename.pdf

And consider copying one of ZenCarts index.html files into this pdf folder to prevent the index

11 Nov 2012, 5:32 PM
#4
pazdar avatar

pazdar

Zen Follower

Join Date:
Jan 2008
Posts:
174
Plugin Contributions:
0

Re: adding a pdf file link into product description page

Hi, tried that twice, no luck. Also did what Kobra suggested and still no luck.

11 Nov 2012, 5:40 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: adding a pdf file link into product description page

Hi, tried that twice, no luck. Also did what Kobra suggested and still no luck.
What product has this?
What code have you entered?
Are you entering this code when using the plain text editor or are you using html mode?

11 Nov 2012, 5:59 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: adding a pdf file link into product description page

Yes, a link to the product info page with one of these PDF links would help.

11 Nov 2012, 6:22 PM
#7
pazdar avatar

pazdar

Zen Follower

Join Date:
Jan 2008
Posts:
174
Plugin Contributions:
0

Re: adding a pdf file link into product description page

Here's the code:

<a href="pdf_files/forbiddenbrewrecipe.pdf">Forbidden Brew Recipe</a>

It was placed in the Product Description box for Forbidden Fruit (Spiced Apple Wine)

11 Nov 2012, 6:29 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: adding a pdf file link into product description page

make sure that the file "forbiddenbrewrecipe.pdf" exists in the pdf_files folder
Also check for any htaccess in that folder

Also if you arde actually still running ZenCaret v1.3.7 you really need to upgrade

11 Nov 2012, 9:20 PM
#9
pazdar avatar

pazdar

Zen Follower

Join Date:
Jan 2008
Posts:
174
Plugin Contributions:
0

Re: adding a pdf file link into product description page

There is no htaccess file in that folder, should there be?

On the subject of the version, my slow season is the early part of the year when I hope to finish the upgrade.

11 Nov 2012, 10:51 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: adding a pdf file link into product description page

There is no htaccess file in that folder, should there be?
No, but if there was it might have a rule preventing the link

12 Nov 2012, 7:47 AM
#11
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,703
Plugin Contributions:
56

Re: adding a pdf file link into product description page

Take a look at the Product Articles plugin.