Zen Cart Logo
Forums / All Other Contributions/Addons / PDF Attachment in Product Description

PDF Attachment in Product Description

Views: 1,553

Results 1 to 10 of 10
30 Aug 2016, 3:18 PM
#1
lidlchris avatar

lidlchris

Zen Follower

Join Date:
Feb 2013
Posts:
345
Plugin Contributions:
0

PDF Attachment in Product Description

I am using the plugin 'PDF Attachment in Product Description' - found at https://www.zen-cart.com/downloads.php?do=file&id=1642. It doesn't really do anything different than using the standard 'Products URL' on the Products page. What i would like is to add a button called 'BROWSE" that would allow you to browse your computer for the PDF - similar to how you can now browse for images - and it would automatically upload the PDF to your product and to some folder (maybe called PDFS). Would this be hard to do?
Attachment 16622

25 Apr 2017, 6:04 PM
#2
webchills avatar

webchills

Zen Follower

Join Date:
Sep 2005
Location:
Austria
Posts:
99
Plugin Contributions:
1

Re: PDF Attachment in Product Description

I have updated this module to version 2.0 for Zen Cart 1.5.5 and it is now doing exactly this. Additionally cou can enter a (multilanguage) name for the pdf download.

28 Jun 2018, 2:52 PM
#3
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: PDF Attachment in Product Description

webchills:

I have updated this module to version 2.0 for Zen Cart 1.5.5 and it is now doing exactly this. Additionally cou can enter a (multilanguage) name for the pdf download.

I cannot get this to work. The options for uploading a PDF don't appear in the product info admin screen below the image upload options. I'm using Zen Cart 1.5.5f

28 Jun 2018, 3:46 PM
#4
webchills avatar

webchills

Zen Follower

Join Date:
Sep 2005
Location:
Austria
Posts:
99
Plugin Contributions:
1

Re: PDF Attachment in Product Description

Nick1973:

The options for uploading a PDF don't appear in the product info admin screen below the image upload options.
Did you really change all the files provided in the CHANGED FILES folder?
e.g. YOURADMIN/includes/modules/product/collect_info.php among many others

28 Jun 2018, 3:48 PM
#5
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: PDF Attachment in Product Description

Yes I did

28 Jun 2018, 3:49 PM
#6
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: PDF Attachment in Product Description

I am developing locally though, do you think that would have anything to do with it?

28 Jun 2018, 3:54 PM
#7
webchills avatar

webchills

Zen Follower

Join Date:
Sep 2005
Location:
Austria
Posts:
99
Plugin Contributions:
1

Re: PDF Attachment in Product Description

If the admin page for editing a product looks "normal" and works "normal", but the section for pdf upload is missing then it is quite sure that YOURADMIN/includes/modules/product/collect_info.php has not been changed.
If the admin page for editing a product is cropped after the image upload section, there should be an error log in your logs folder.

28 Jun 2018, 4:08 PM
#8
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: PDF Attachment in Product Description

webchills:

If the admin page for editing a product looks "normal" and works "normal", but the section for pdf upload is missing then it is quite sure that YOURADMIN/includes/modules/product/collect_info.php has not been changed.
If the admin page for editing a product is cropped after the image upload section, there should be an error log in your logs folder.

Ok cool. I did copy that folder over, although merged it so maybe when my machine tried to merge the files it didn't merge them fully. All appears to be working fine now. Thanks for your help.

28 Jun 2018, 4:37 PM
#9
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: PDF Attachment in Product Description

Nick1973:

I cannot get this to work. The options for uploading a PDF don't appear in the product info admin screen below the image upload options. I'm using Zen Cart 1.5.5f

Ok I want the download link to be a button.

This is what I have:

<!--bof Download PDF --> <input type="button" class="cssButton submit_button button download_pdf" onmouseover="this.className='cssButtonHover enquiry_page download_pdf_pageHover'" onmouseout="this.className='cssButton submit_button button download_pdf_page'" onclick="location.href='pdf-attachments/'<?php echo '' . $products_pdf_attachment . '' ?>'" value="Download PDF" /> <!--eof Download PDF -->
28 Jun 2018, 4:38 PM
#10
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: PDF Attachment in Product Description

But it isn't working