osCmax v2.5 User Manual
Results 1 to 3 of 3

vs2.1 Best way to add a Datasheet pdf

This is a discussion on vs2.1 Best way to add a Datasheet pdf within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hi all, what is the best way to add a pdf datasheet for each product ? use this : osCommerce ...

      
  1. #1
    Member
    Join Date
    Oct 2010
    Posts
    41
    Rep Power
    0


    Red face vs2.1 Best way to add a Datasheet pdf

    Hi all,

    what is the best way to add a pdf datasheet for each product ?
    use this :
    osCommerce Community Add-Ons

    or in 2.1, is there a better way ?
    what are the new 'tabs' tab1-tab6 for in the product description ?
    can I use tab 1 for a link to a pdf in say, images/pdf folder ?

    quick guidance here please.
    Rob

  2. #2
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    indiana
    Posts
    640
    Blog Entries
    1
    Rep Power
    27


    Default Re: vs2.1 Best way to add a Datasheet pdf

    One approach:
    If you're looking for speed because you have A LOT of pdfs to associate to products then you can take an alternative approach. Create product fields with Easy Populate. Associate your pdf links for these fields. And just go down that csv file row by row, input your pdf links into the proper product field columns. You can do 100 in minutes. Then import your csv file back to your store site. (don't forget to upload your pdf files to the proper directory you are using and 'communicating that' with your product fields links.

    bh

  3. #3
    Member
    Join Date
    Oct 2010
    Posts
    41
    Rep Power
    0


    Talking Re: vs2.1 Best way to add a Datasheet pdf

    My turn to give something back ....

    I coded the following as an addition to includes/modules/product_tabs.php

    I wanted to use the new 'tab' feature in vs2.1
    the default module checks to see if there is any content in the tab, if so, displays it.
    I changed it to check if a pdf exists, if so display it.
    I also have an install guide, and if that exisits, display it.
    it still requires the language files to set the name for your tab i.e
    in includes/languages/english/product_info.php, i.e define('TAB1', 'Datasheets'); (do the same for German, Spanish etc)

    the pdf datasheet and install guide reside in the same folder that the mopics stores your product image
    i.e in /images/big_image is have
    productx.jpg, productx.pdf, and productx.install.pdf

    so ALL you have to do, to dsiplay a 'datasheet' tab or not, is to upload a pdf doc with the same file name as the main picture.

    the code checks if the pdf exists, and if so, creates a datasheet tab, and then displays either of the files (or both) with a 'pdf' icon.
    If no pdf, then no tab. SWEET !

    looks Sweet, and fully uses the new vs2.1 BTS

    Enjoy.
    Rob
    Attached Files Attached Files
    Last edited by Eversale; 10-22-2010 at 06:21 PM. Reason: Now with zip of product_tabs.php

Similar Threads

  1. PDF datasheet v 1.6.4 adapted for SPPC
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-23-2007, 02:00 AM
  2. PDF DataSheet Maker
    By HumanEasy in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 04-28-2004, 09:25 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •