Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jul 2010
    Posts
    49
    Plugin Contributions
    0

    Default Add a link to a .pdf

    I am having trouble adding a link to a .pdf file

    All I want to to is have a link to a 'returns_form.pdf' file so customers can download the .pdf and fill it out when returning faulty items.

    I have uploaded the 'returns_form.pdf' to the 'images' folder and I have tried code that look like this:

    please download our <a href="/images/returns_form.pdf">returns form<a/>

    and I have also code that looks like this:

    please download our <a href="http://www.nintendoparts.com.au/images/returns_form.pdf">returns form</a>

    When I click on the link it keeps coming up with my custom 404 page saying the page does not exist. The file is definitely at that location, I have checked and double checked with filezilla, I just can't get it to download.

    I want it to download the .pdf when the link is clicked. It seems like such a simple process but I can't get it to work. If anyone has any ideas what I'm doing wrong that'd be great!

    I'm running Zen Cart 1.39d with the following addons:
    Zen Lighbox
    Module Manager
    ImageHandler
    Sitemap XML
    Google Analytics
    Simple SEO URL's

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Add a link to a .pdf

    Did you check for any mis-spelling such as returns-form.pdf or return_form.pdf ? Seems too simple but sometimes these little typos are absolute buggers ....

  3. #3
    Join Date
    Jul 2010
    Posts
    49
    Plugin Contributions
    0

    Default Re: Add a link to a .pdf

    Thanks for the quick reply :)

    I checked, double checked, and triple checked all the spellings, even changed the file to form.pdf and the code accordingly to simplify the spelling, still same problem, I also tried linking to a .zip and the same thing happens.

    I have linked to a .jpeg files in the image directory to test I was linking to the correct directory and the .jpeg links work no problems. I just can't link to .pdf or .zip files.


    Any more ideas?

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Add a link to a .pdf

    I don't know if this affects anything but customer uploads, but it can't hurt to check the permitted file types in includes/classes/upload.php.

    Only other thing I can think of would be to make sure you're naming the file .pdf and not .PDF.

    Also, when you navigate your browser directly to the file (http: //www.yoursite.com/images/yourfile.pdf) does it load ?

  5. #5
    Join Date
    Jul 2010
    Posts
    49
    Plugin Contributions
    0

    Default Re: Add a link to a .pdf

    I got it to work by placing the .pdf in the root directory :)

    I don't know why it didn't work when placed in the image directory, in theory it should have. Oh well, at least customers can download the form now, that's good enough for me.

    Thanks for the help though guys!
    Last edited by Nintendoparts; 8 Aug 2010 at 01:42 PM.

  6. #6

    Default Re: Add a link to a .pdf

    Quote Originally Posted by Nintendoparts View Post
    I got it to work by placing the .pdf in the root directory :)
    credit card application
    I don't know why it didn't work when placed in the image directory, in theory it should have. Oh well, at least customers can download the form now, that's good enough for me.

    Thanks for the help though guys!
    Adding the file type format in the root directory will certainly provide the solution to this kind of problems.

    Good to know everything working fine now.

    Regards,
    Nate Digby

  7. #7
    Join Date
    Jan 2008
    Location
    Portland, Oregon USA
    Posts
    356
    Plugin Contributions
    0

    Default Re: Add a link to a .pdf

    I link to a directory named infosheets with this code from an EZ page:
    HTML Code:
    <a  href="http://www.mysite.com/infosheets/DonationForm.pdf"></a>
    Permissions same as regular ZenCart:
    755 directories
    644 file
    Form is opened by Acrobat and the customer can print it.
    Doug

 

 

Similar Threads

  1. Replies: 1
    Last Post: 10 Jan 2013, 07:59 AM
  2. How do I add a link to open a pdf document in sidebox
    By r.muinos in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Sep 2011, 10:06 AM
  3. Replies: 2
    Last Post: 24 Sep 2010, 04:56 PM
  4. How do I add a clickable link to a pdf?
    By spetaisaac in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 May 2008, 01:57 PM
  5. add pdf link
    By ggettings in forum Basic Configuration
    Replies: 5
    Last Post: 4 Jan 2007, 04:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg