Results 1 to 10 of 22

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Posts
    19
    Plugin Contributions
    2

    Default File Upload Required addon [Support Thread]

    Allows a file attribute (optionally) to be required, similar to text attributes.

    Errors resulting from insufficiently large values of post_max_size and upload_max_filesize are handled and errors resulting from failed upload attempts now prevent products from being added to the basket.

    Cautions and advice regarding the setting of post_max_size and upload_max_filesize in relation to Maximum File Upload Size in the Zen Cart admin are displayed at the top of the Zen Cart admin if the settings are detected to be inappropriate.

    Under Admin->Catalog->Attributes Controller the option "Attribute Required for Text" is changed to "Attribute Required for File/Text".



    Download Link: http://www.zen-cart.com/index.php?ma...oducts_id=1685



    Please report any bugs/issues here

    Thank you,
    sj

  2. #2
    Join Date
    Nov 2007
    Posts
    32
    Plugin Contributions
    0

    red flag Re: File Upload Required [Support Thread]

    sj,

    I just installed 1.3.9g fresh, then I carefully followed your installation instructions.

    When I add go to the Attribute Controller, Add an Option then Insert (regardless of what is selected, addeded, etc). I'm getting a page with a single "f" displayed. Nothing in the Page Source, either.

    Any ideas?

  3. #3
    Join Date
    Nov 2007
    Posts
    32
    Plugin Contributions
    0

    Default Re: File Upload Required [Support Thread]

    I found the problem. The includes/languages/english/attributes_controller.php file had an 'f' as the first character of the file. Deleted it and we're good.

  4. #4
    Join Date
    Nov 2007
    Posts
    32
    Plugin Contributions
    0

    red flag Re: File Upload Required [Support Thread]

    Ok... The Admin side works. I can require the upload field.

    Now when I test the cart (using the classic "out of the box") cart (No other modules installed), I'm getting another blank screen when I "add to cart" with or without an uploaded file. Page source is blank.

  5. #5
    Join Date
    Nov 2007
    Posts
    32
    Plugin Contributions
    0

    Default Re: File Upload Required [Support Thread]

    Found the problem... I had made a minor modification to the upload.php file. By comparing the original with the new I was able to find my error. Sorry!

  6. #6
    Join Date
    Sep 2008
    Posts
    19
    Plugin Contributions
    2

    Default Re: File Upload Required [Support Thread]

    Common bug:
    The file upload is not required and a required text upload is also not required (check this if you are still not able to require the file upload). The item is simply added to the basket despite the text upload/file upload being required.

    Possible Cause:
    Missing database entries (not sure what causes this).

    Solution:
    -> Backup your database
    -> Check that the following lines are missing from your database
    -> Use "Admin->Tools->Install SQL Patches" to install the missing lines.

    PHP Code:
    INSERT INTO `configurationVALUES ('''Product option type Select''PRODUCTS_OPTIONS_TYPE_SELECT''0''The number representing the Select type of product option.'0NULL'2007-03-19 17:57:39''2007-03-19 17:57:39'NULLNULL);
    INSERT INTO `configurationVALUES ('''Upload prefix''UPLOAD_PREFIX''upload_''Prefix used to differentiate between upload options and other options'0NULL'2007-03-19 17:57:39''2007-03-19 17:57:39'NULLNULL);
    INSERT INTO `configurationVALUES ('''Text prefix''TEXT_PREFIX''txt_''Prefix used to differentiate between text option values and other option values'0NULL'2007-03-19 17:57:39''2007-03-19 17:57:39'NULLNULL);
    INSERT INTO `configurationVALUES ('''Image Handler Version''IH_VERSION''2.0''This is used by image handler to check if the database is up to date with uploaded image handler files.'0100NULL'2007-06-06 16:47:03'NULL'zen_cfg_textarea_small('
    Thank you to grantc for this fix.

    Original post:
    http://www.zen-cart.com/forum/showpo...3&postcount=20

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: File Upload Required [Support Thread]

    Is this line supposed to be run if you don't use IH2?
    PHP Code:
    INSERT INTO `configurationVALUES ('''Image Handler Version''IH_VERSION''2.0''This is used by image handler to check if the database is up to date with uploaded image handler files.'0100NULL'2007-06-06 16:47:03'NULL'zen_cfg_textarea_small('

 

 

Similar Threads

  1. Zen Lightbox addon [Support Thread]
    By Alex Clarke in forum All Other Contributions/Addons
    Replies: 3720
    Last Post: 6 Oct 2022, 11:18 PM
  2. Free Shipping Rules addon [Support Thread]
    By numinix in forum Addon Shipping Modules
    Replies: 36
    Last Post: 2 Dec 2016, 01:56 PM
  3. v151 Reviews Reply addon [Support Thread]
    By mikestaps in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 17 Oct 2014, 01:29 AM
  4. v151 File Upload required addon problem
    By chriscctx in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 4 Mar 2014, 02:45 PM
  5. [Support Thread] IE only JavaScripts and Stylesheets Addon
    By Meshach in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 31 May 2011, 08:18 PM

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