![]() |
Adding a .pdf page to a product description
I have search high & low for the answer to this question so please forgive me if it has been asked before. Actually, I am not even sure what it is called but I know what I want to do.
I have recipes, how-to-guides etc. both as a .pdf and in word. Some of them I would like to put in the product description as well as in the category. I would also like to have a page/link in the help section so when a customer clicks the page/link it will bring up a list of ⌠let▓s say■ recipes. The customer can pick out a recipe read it or print it. Does this make sense and if so does anyone have a clue of what I should do or where to start? Thanks so much in advance!! |
Re: Adding a .pdf page to a product description
Just add a link to the pdf in your product description. For the help section, just add a static page and add all the links to the pdfs.
|
Re: Adding a .pdf page to a product description
Hi Balinor,
This may sound stupid but where do I get the links from? Quote:
|
Re: Adding a .pdf page to a product description
I think what Balinor was getting at is that you should upload your PDF to your server (using FTP) and then in your product description include a link to where you uploaded it.
|
Re: Adding a .pdf page to a product description
Exactly :) I usually create a 'pdf' folder in the root directory for that kind of thing. DO NOT link the pdf from external sources, as it will generate a security warning if the user is in https mode.
|
Re: Adding a .pdf page to a product description
I am building my website under .net and when it goes live it will be changed to .com as I have a live non-x-cart store already at .com Does that matter?
Okay, created the Folder and upload a pdf doc. YEAH! :-) , now how do I link it? :oops: Quote:
|
Re: Adding a .pdf page to a product description
<a href="path_to_file/file_name.pdf" target="_blank">Link Text</a>
|
Re: Adding a .pdf page to a product description
Hi Steve,
When you say path_to_file do you mean the http path? The reason I ask is because in a previous post it says not to use it?? Thanks so much! Quote:
|
Re: Adding a .pdf page to a product description
No, do not include the part with the domain name. By "path_to_file" I meant the relative path from root to where the pdf's are. Let's say cart is installed in root and you put all pdf's in "root/product_pdf" directory
<a href="product_pdf/file_name.pdf" target="_blank">Link Text</a> |
Re: Adding a .pdf page to a product description
be careful with how you link it as well.
Lets say your site is www.domain.com and you have a folder called "pdf" in a sub-directory in the main root so it would be www.domain.com/pdf/ Theres several ways of linking. To save typing, I'll just show what goes in the href. http://www.domain.com/pdf/file.pdf = This is not how you want it since you'll be switching TLDs (net to com). Also would produce security warnings due to http being explicitly defined, as said before. pdf/file.pdf = If you're doing something from template files, this will not work as it will search the folder the script is called from... Which in this case will be under skin1. /pdf/file.pdf = This will start from web-root and go down. If you put a / at the very start of any link, it will start from your webroot folder. So this would properly go to the folder. ./pdf/file.pdf = This will be a mix between the previous two. It will start within the folder its called from and then go up one directory level and then search for the folder pdf. So in this case, it would go from skin1 -> root -> pdf Just wanted to make sure you knew incase you were thinking of a way to automatically do this within tpl files. |
All times are GMT -8. The time now is 07:37 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.