Contributions

Features (Category Index)
Search: 

PDF File Upload and Display

This contribution will allow you to upload a PDF file, Data Sheet (or any other file) via the admin panel.
The link to the PDF will be visable on the products info page.
If a PDF hasn't been uploaded for a particular product the link will not be displayed.

Expand All / Collapse All

PDF Upload & Display for STS Simple Template System 8 Feb 2011

PDF UPLOAD & DISPLAY FOR STS SIMPLE TEMPLATE SYSTEM

Thought I would include this guide for anyone wishing to use the PDF Upload & Display addon with the STS Simple Template System.

After several attempts, I finally figured out a way to get it working. I couldn't find a way to get it working but after a bit of trial and error and logical thinking, I got it working, so I thought I would share it. This is my first contribution so please be gentle with me - though I've contributed nothing really apart from moving a bit of coding into its own file.

Only 1 file to change and 1 file to upload.

INSTALLATION INSTRUCTIONS

1. Copy the included pdfupload.php file to catalog/includes/modules/

2. Open catalog/includes/modules/sts_inc/sts_user_code.php

Find ( around line 37):-

function tep_get_category_tree($parent_id = '0', $spacing = '', $exclude = '', $category_tree_array = '', $include_itself = false) {
global $languages_id;

Insert ABOVE:-

categories.php Updated 13 Jul 2010
PDF File Upload and Display_V2.01 13 May 2009
PDF_Upload V2.00 with upgrade instructions 7 May 2008
PDF Upload V2.00 7 May 2008
PDF File Upload and Display v 1.5 13 Oct 2007
This is only the forum 19 Feb 2007
PDF File Upload and Display Myles O'Reilly 9 Jan 2005

Note: Contributions are used at own risk.