Page 1 of 38 12311 ... LastLast
Results 1 to 10 of 380
  1. #1
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,353
    Plugin Contributions
    21

    Default Product Extra Fields for text, pdfs and flash

    I have created a new contribution for adding in new fields to the product pages. It should be available by May 18, 2009 in the contribution section. Below is the readme file for the contribution:

    https://www.zen-cart.com/downloads.php?do=file&id=926

    Contribution: Product Extra Fields Mod
    Version: 1.0
    Updated: 5/17/2009
    Designed for: Zencart 1.3.8 (not tested in any other version)

    This mod is based on the work done by Mariusz Józala of http://zencart.aetas.pl. His mod is called extra description files and is not to be confused with this one. I have cleaned up his code, made it more zen cart compatible and added the flash to it.

    This mod creates one extra text field, 4 fields that are designed for pdf uploads and one field for a flash video with adjustable size.

    There are changed files - note the use of override files for page templates that should go into your template directory. Do not upload the template directory without changing the folder name (your_template) in the package.

    Included in this text file:
    Directions
    Warnings
    Files list
    CSS directions
    -------------------------------------------------------------------
    Directions:
    Change template directory name (see above)
    Upload all files.
    Change permissions on new directory : product_extra_files
    Apply sql patch
    You're done! (unless you already have products in your cart - see warning below)
    --------------------------------------------------------------------
    Warnings:
    There is no file extension check on the uploads. All fields will upload any file so

    1) be sure your flash file has the appropriate ending (swf, most likely)
    2) you may upload any file to be viewed with your product, such as any size image (up to your server limit of course), any word, excel or php file, etc. Anyone who uses this really should restrict the upload files to pdfs as these are the safest files to have on your website.

    File deletions and overwrites: Once you delete a product or change the files for a product, the old files never fade away. Uploading a file with the same name will overwrite that file

    If you are installing this into a cart that already has products, you will have to populate the new table with every product id in order for the products to be visible. This is not hard to do with excel and phpmyadmin. If you have access to your database, export the file to excel, add the fields and import it back in.


    ---------------------------------------------------------------------
    Admin Modified Files:
    admin/includes/modules/product/collect_info.php
    admin/includes/modules/product/preview_info.php
    admin/includes/modules/new_product_preview.php
    admin/includes/modules/update_product.php
    Admin New Files:
    admin/includes/extra_datafiles/product_database_names.php
    admin/includes/languages/english/extra_definitions/product.php

    Cart Modified Files:
    includes/modules/pages/product_info/main_template_vars_product_type.php
    includes/templates/your_template/templates/tpl_product_info_display.php
    Cart New Files:
    includes/extra_datafiles/product_database_names.php
    includes/modules/pages/product_info/jscript_main.js
    includes/modules/popup_flash/header_php.php
    includes/modules/popup_flash/jscript_AC_RunActiveContent.js
    includes/modules/popup_flash/jscript_main.js
    includes/templates/your_template/popup_flash/tpl_main_page.php

    New upload directory:
    product_extra_files/ (set permissions at 777 - where your files will be uploaded to.
    -------------------------------------------------------------------
    CSS style tips:
    Here is the suggested minimum css for the product page layout. Just add these lines to the end of your CSS if you want.

    .files {
    clear:left; float:left;
    }
    .filesHead {
    font-weight: bold; margin-bottom: 5px;
    }

    I did create these items into a unordered list so many other things can also be done with these block as well.
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  2. #2
    Join Date
    Jul 2008
    Location
    India
    Posts
    46
    Plugin Contributions
    0

    red flag Re: Product Extra Fields for text, pdfs and flash

    Thanks for developing this kind of module. But how to download it please mark a link.

  3. #3
    Join Date
    May 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Product Extra Fields for text, pdfs and flash

    This is exactly what I have been waiting for. When do you think it will be available?

    Many Thanks.

  4. #4
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Product Extra Fields for text, pdfs and flash

    Hi,
    I can get the fields for the product on the admin site but no changes appears in the cart site. I have uploaded all the files, including the template where is defines where the link should be but can't get anything visible. The file also gets uploaded to the folder "download" in the server.
    My installation is in a sub-folder. Should I make some changes due to that?
    SQL script is still the same like in the previous version? I have also prefix in the db tables. Is the admin adding that when using SQL tool or should I make something for that as well? Anyhow the admin side looks like working but the front-end won't show anything.

    Elli
    I may be blond but at least I found Zen.

  5. #5
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,353
    Plugin Contributions
    21

    Default Re: Product Extra Fields for text, pdfs and flash

    Did you change the template folder name to your override folder name? If you just uploaded the files, you have a problem with that.
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  6. #6
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,353
    Plugin Contributions
    21

    Default Re: Product Extra Fields for text, pdfs and flash

    The first extra field is now a textarea that can be used for embedding a YouTube video by the way.

    One note: the extra-field that can be used for the youtube video has to be used without the editor. Either turn off the editor or click the source button and paste in the link.
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  7. #7
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Product Extra Fields for text, pdfs and flash

    Thanks Delia for the download link to get your contribution! Now I got some change on the site but not yet really working. I switched on the classic green template in order to skip possible issues with templating and of course put the needed files under classic template folder then. Not much success but it appeared a html button with text "UN_FILENAME_WISHLIST" there. If you click the button, it goes to a page "page not found". Please look the picture file attached here.

    So, looks like some definition file is missing for the language. In which one that text should be in?
    Attached Images Attached Images  
    I may be blond but at least I found Zen.

  8. #8
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,353
    Plugin Contributions
    21

    Default Re: Product Extra Fields for text, pdfs and flash

    I'm so sorry! I totally blanked on the fact that I was using a template from a specific website. I have to change that and up load the changed files. I'll let you know when it's ready.
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  9. #9
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,353
    Plugin Contributions
    21

    Default Re: Product Extra Fields for text, pdfs and flash

    Okay, this the link to the corrected package and I am adding in the corrected template to the original link package as well so as not to leave anyone out in the night!
    http://www.zen-cart.com/index.php?ma...oducts_id=1331

    If you want instructions, just open up this file from either your default template directory or your already modded custom file:
    tpl_product_info_display.php

    Paste these lines in right after the product descripton - about at line 85
    PHP Code:
    <div class="files">
    <?php if(isset($products_file_1_link) || isset($products_file_2_link) || isset($products_file_3_link) || isset($products_file_4_link) || isset($video_file_link) || isset($extra_field)) {
            echo  
    '<div class="filesHead">'.TEXT_PRODUCT_MORE_INFO.'</div><ul>';
              }
    ?>
    <?php 
    if(isset($extra_field)) { 
        echo 
    '<li>'.$extra_field '</li>';
    ?>
     
    <?php if(isset($products_video_link)) { 
        echo 
    '<li>'.$products_video_link '</li>';
    ?> 
    <?php if(isset($products_file_1_link)) { 
        echo 
    '<li>'.$products_file_1_link '</li>';
    ?>    
    <?php if(isset($products_file_2_link)) {
        echo 
    '<li>'.$products_file_2_link '</li>';
    ?>    
    <?php if(isset($products_file_3_link)) {
        echo 
    '<li>'.$products_file_3_link'</li>';
    }  
    ?>
    <?php 
    if(isset($products_file_4_link)) {
        echo 
    '<li>'.$products_file_4_link;

    echo 
    '<ul>';
    ?>
    </div>
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  10. #10
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Product Extra Fields for text, pdfs and flash

    You're fast to contribute. That's very nice from you.

    Elli
    I may be blond but at least I found Zen.

 

 
Page 1 of 38 12311 ... LastLast

Similar Threads

  1. Replies: 1
    Last Post: 10 Sep 2013, 10:09 PM
  2. Can I add two extra fields for inputting time and date delivery wanted?
    By Desjames in forum Managing Customers and Orders
    Replies: 2
    Last Post: 20 Jun 2010, 08:56 PM
  3. Extra pages and flash movie
    By g.nencini in forum General Questions
    Replies: 1
    Last Post: 11 Oct 2009, 11:51 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR