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:-

More...