Contributions
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
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:-
This file drops into a shop with
HeaderTags_SEO_V_3.2.3 and Ultimate_SEO_URLSv22d_9
I found that the installation instructions were not as easy as it should be.
The fresh install instructions have been updated to include a missing step and correct some code that did not work.
In this version you can associate up to 2 files to each product and if they exist a link is shown on the product_info page.
I decided to change the original contribution so you can upload and read from the manuals folder thus keeping the catalog "images" folder tidier!
I have also added the ability for the datasheet to open in a new window which is much more professional!
There is also some minor improvements, such as a PDF icon image added and some nicer formatting etc..
I have now added install instructions to upgrade from V1.5 - V2.00.
I decided to change the original contribution so you can upload and read from the manuals folder thus keeping the catalog "images" folder tidier!
I have also added the ability for the datasheet to open in a new window which is much more professional!
There is also some minor improvements, such as a PDF icon image added and some nicer formatting etc..
It's now possible to upload two files via the admin panel.
In version 1.5 you can also delete the uploaded files (only the link in the DB, not de file itself)
Thanks to Myles for this great contribution !!!!
Forum page:
http://forums.oscommerce.com/index.php?showtopic=251587
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.
Note: Contributions are used at own risk.