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.
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.
Either enter the link in the code view of the editor usingOr, if you're not using the products url for anything else, use that, and change the text in the language file.Code:<a href="http://domain.com/filename.pdf" target="_blank">Link text here</a>
Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !
We used the add a link in the product description,
and we changed the text to a button,
Zen cart PCI compliant Hosting
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..???![]()
Anyone..?
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.
... Oh... okay, I see what you are trying to do...
I'll see if I can find the relevant language file then post later...
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
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).
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.