Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Adding a .pdf page to a product description

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-05-2010, 12:21 AM
 
Bearsnum34 Bearsnum34 is offline
 

Senior Member
  
Join Date: Jan 2010
Posts: 134
 

Default 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!!
__________________
4.3.1
x-configurator
x-specialoffers
Reply With Quote
  #2  
Old 06-05-2010, 05:37 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-07-2010, 03:09 PM
 
Bearsnum34 Bearsnum34 is offline
 

Senior Member
  
Join Date: Jan 2010
Posts: 134
 

Default Re: Adding a .pdf page to a product description

Hi Balinor,

This may sound stupid but where do I get the links from?


Quote:
Originally Posted by balinor
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.
__________________
4.3.1
x-configurator
x-specialoffers
Reply With Quote
  #4  
Old 06-09-2010, 03:41 PM
 
TheWrongGrape TheWrongGrape is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Los Angeles, CA
Posts: 68
 

Default 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.
Reply With Quote
  #5  
Old 06-09-2010, 04:05 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 06-09-2010, 06:28 PM
 
Bearsnum34 Bearsnum34 is offline
 

Senior Member
  
Join Date: Jan 2010
Posts: 134
 

Default 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?


Quote:
Originally Posted by balinor
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.
__________________
4.3.1
x-configurator
x-specialoffers
Reply With Quote
  #7  
Old 06-09-2010, 07:46 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Adding a .pdf page to a product description

<a href="path_to_file/file_name.pdf" target="_blank">Link Text</a>
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #8  
Old 06-09-2010, 09:56 PM
 
Bearsnum34 Bearsnum34 is offline
 

Senior Member
  
Join Date: Jan 2010
Posts: 134
 

Default 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:
Originally Posted by cflsystems
<a href="path_to_file/file_name.pdf" target="_blank">Link Text</a>
__________________
4.3.1
x-configurator
x-specialoffers
Reply With Quote
  #9  
Old 06-10-2010, 03:10 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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>
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #10  
Old 06-10-2010, 10:18 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default 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.
__________________
- Shane Munroe
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:46 AM.

   

 
X-Cart forums © 2001-2020