Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1

    Default Links to pdf File on Product Page

    How do I setup a link to a pdf file off a prduct page? I tried the web link in the editor- it opened a blank box.

  2. #2
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Links to pdf File on Product Page

    Either enter the link in the code view of the editor using
    Code:
    <a href="http://domain.com/filename.pdf" target="_blank">Link text here</a>
    Or, if you're not using the products url for anything else, use that, and change the text in the language file.
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  3. #3
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Links to pdf File on Product Page

    We used the add a link in the product description,
    and we changed the text to a button,
    Zen cart PCI compliant Hosting

  4. #4
    Join Date
    Feb 2006
    Location
    Central Coast, NSW, Australia
    Posts
    560
    Plugin Contributions
    0

    Default Re: Links to pdf File on Product Page

    Quote Originally Posted by Ryk View Post
    Either enter the link in the code view of the editor using
    Code:
    <a href="http://domain.com/filename.pdf" target="_blank">Link text here</a>
    Or, if you're not using the products url for anything else, use that, and change the text in the language file.
    I created a PDF folder under Imgaes /public_html/images/PDFS and I figured out how to use the products URL link to display the pdf.. But how do I now change the text in the language file (assuming its the product_info.php file that I'm supposed to edit) to display it as a PDF image instead of the usual.. for more information visit this webpage text...

    Simple steps please..???

  5. #5
    Join Date
    Feb 2006
    Location
    Central Coast, NSW, Australia
    Posts
    560
    Plugin Contributions
    0

    Default Re: Links to pdf File on Product Page

    Anyone..?

  6. #6
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Links to pdf File on Product Page

    Hello Mike

    A "pdf" can only be read if the client computer has a pdf reader installed (typically this is Adobe Acrobat).

    A PDF is not an image format - it is a "document reader" - hence the name Portable Document Format.

    If you have images that are embedded in a pdf, you are first going to have to "extract" the image from the pdf, then save it in an image format (jpg, gif, png, bmp, ...) and then upload that to the image folder and then assign relevant images to their products in the normal way.

    There are several ways of extracting the image from a PDF - one is to use the "Click" tool (looks like a "camera" in adobe acrobat), then you "paste" the image in an image editor and save it as a jpg. Or you can do a "ALT+PrtSc" which will "grab" the screen, which you can then edit in an image editor.

  7. #7
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Links to pdf File on Product Page

    ... Oh... okay, I see what you are trying to do...

    I'll see if I can find the relevant language file then post later...

  8. #8
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Links to pdf File on Product Page

    Here are the files that contain the text string you wish to alter:-


    /includes/languages/english/document_general_info.php
    Line #11 : define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.');

    /includes/languages/english/document_product_info.php
    Line #11 : define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.');

    /includes/languages/english/product_free_shipping_info.php
    Line #11 : define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.');

    /includes/languages/english/product_info.php
    Line #11 : define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.');

    /includes/languages/english/product_music_info.php
    Line #11 : define('TEXT_RECORD_COMPANY_URL', 'For more information, please visit the Record Company\'s <a href="%s" target="_blank">webpage</a>.');
    Line #12 : define('TEXT_ARTIST_URL', 'For more information, please visit the Artist\'s <a href="%s" target="_blank">webpage</a>.');


    So, you would probably do this to the DEFINE...

    define('TEXT_MORE_INFORMATION', 'For more information, please click the pdf symbol:- <a href="%s" target="_blank"><img border=0" src="images/YOUR-PDF-SYMBOL.jpg" width="10" height="10"></a>.');

    Where:-

    images/YOUR-PDF-SYMBOL.jpg is the PATH to, and NAME OF the little pdf icon you created.

    width="10" height="10" are the desired display sizes for that icon

  9. #9
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Links to pdf File on Product Page

    I just tried this on my store...

    I edited:-
    /includes/languages/english/product_info.php
    Line #11 : define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.');

    define('TEXT_MORE_INFORMATION', 'For more information, please click the PDF symbol: <a href="%s" target="_blank"><img border=0" src="images/adobe.jpg" width="29" height="29"></a>.');


    See the result at the bottom of THIS PAGE

    REMEMBER to save the edited version of product_info.php to your CUSTOM folder (over-rides).

  10. #10
    Join Date
    Feb 2006
    Location
    Central Coast, NSW, Australia
    Posts
    560
    Plugin Contributions
    0

    Default Re: Links to pdf File on Product Page

    Quote Originally Posted by fairestcape View Post
    Here are the files that contain the text string you wish to alter:-


    /includes/languages/english/document_general_info.php
    Line #11 : define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.');

    /includes/languages/english/document_product_info.php
    Line #11 : define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.');

    /includes/languages/english/product_free_shipping_info.php
    Line #11 : define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.');

    /includes/languages/english/product_info.php
    Line #11 : define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.');

    /includes/languages/english/product_music_info.php
    Line #11 : define('TEXT_RECORD_COMPANY_URL', 'For more information, please visit the Record Company\'s <a href="%s" target="_blank">webpage</a>.');
    Line #12 : define('TEXT_ARTIST_URL', 'For more information, please visit the Artist\'s <a href="%s" target="_blank">webpage</a>.');


    So, you would probably do this to the DEFINE...

    define('TEXT_MORE_INFORMATION', 'For more information, please click the pdf symbol:- <a href="%s" target="_blank"><img border=0" src="images/YOUR-PDF-SYMBOL.jpg" width="10" height="10"></a>.');

    Where:-

    images/YOUR-PDF-SYMBOL.jpg is the PATH to, and NAME OF the little pdf icon you created.

    width="10" height="10" are the desired display sizes for that icon
    Many Thanks..

    Worked perfect.. thanks.. just changed the image size to suit...

    http://www.nortsandones.com.au/index...roducts_id=875


    Only one issue, not all my produts have actual pdf's associated, some sites just have direct links to the manufacurers site.. Is there another way to do this so that if its pdf, show as above, but if it's just a URL, leave it as it was ?
    Last edited by Mike_Dean; 16 Apr 2008 at 12:50 PM.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v1371 adding a pdf file link into product description page
    By pazdar in forum All Other Contributions/Addons
    Replies: 10
    Last Post: 12 Nov 2012, 08:47 AM
  2. Replies: 5
    Last Post: 28 Apr 2012, 06:01 PM
  3. Change EZ Page links to a PDF?
    By amyleew in forum General Questions
    Replies: 4
    Last Post: 28 Aug 2011, 11:47 AM
  4. Attaching PDF file into EZ Page?
    By sim8729 in forum General Questions
    Replies: 7
    Last Post: 8 Aug 2011, 09:38 AM
  5. Add detailed product information as PDF-file
    By Kruna in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 6 Nov 2006, 01:55 AM

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