Page 1 of 2 12 LastLast
Results 1 to 10 of 377

Hybrid View

  1. #1
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    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

  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,296
    Plugin Contributions
    22

    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

  6. #6
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    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

  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,296
    Plugin Contributions
    22

    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

  9. #9
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

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

    Hi

    Thank you for this great idea and your contribution. I am not a coder but do understand a little and have installed many mods before successfully.

    My problem is I am using Zencart 1.5.5a. So I tried to merge all the files as much as I can also with a help from two other regular contributors.

    I did create a New upload directory: product_extra_files/ (set permissions at 777 - where files will be uploaded to.
    I did rename the admin to my own
    I did rename the template to my own.
    I did check merges several times although was difficult.

    So far it shows up in admin (see attached image) .

    Problem :
    1. Uploaded files do not show in the next preview and naturally not in the product public view.
    2. When the same product need to be edited or updated, selecting the same product opens with blank details as if it is a NEW product to be added with totally blank fields. Previous product entry somehow gets deleted in the background.

    I will post a zip file of my merged files and if you would be so kind to check for me if I have done it correctly..obviously not :-(

    Appreciate your help and love the idea of Product Extra Fields for text, pdfs and flash mod.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	1-product-pdf-entry.jpg 
Views:	42 
Size:	29.1 KB 
ID:	16514   Click image for larger version. 

Name:	2-product-pdf-preview.JPG 
Views:	36 
Size:	26.9 KB 
ID:	16515   Click image for larger version. 

Name:	3-product-pdf-updated.jpg 
Views:	34 
Size:	29.5 KB 
ID:	16516  

    Click image for larger version. 

Name:	4-product-pdf-edit-page.jpg 
Views:	35 
Size:	33.5 KB 
ID:	16517  
    Downunder QLD

  10. #10
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

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

    right off hand I can't answer that. Let me see if I can get it working with 1.5.5a.
    The full-time Zen Cart Guru. WizTech4ZC.com

 

 
Page 1 of 2 12 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