Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2011
    Posts
    663
    Plugin Contributions
    0

    Default Multiple Image FOLDERS?

    So GoDaddy (I know, I know....) tells me that I need to keep the quantitiy of fils in any one folder to 1024 or less. This is a problem since I'v got approx 12k images.

    What's the correct way to add multiple image folders?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,981
    Plugin Contributions
    25

    Default Re: Multiple Image FOLDERS?

    Does any one top category have near 1024 images (main + additional)? If not, that might be a good way to organize them, like /images/category_a/, /images/category_b/, /images/category_c/...
    You can use whatever names make sense for the subcats.

    This method requires that additional images be designated with a _ between the base name and the additional marker, like prod123.jpg, prod123_01.jpg, prod123_02.jpg...

    Then you select the appropriate subfolder for the main image when adding/editing a product. All folders directly under /images/ will appear in the selection box.

  3. #3
    Join Date
    Feb 2011
    Posts
    663
    Plugin Contributions
    0

    Default Re: Multiple Image FOLDERS?

    No, none of the categories have that many.

    Can Easy Populate be used to handle something like this?

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,981
    Plugin Contributions
    25

    Default Re: Multiple Image FOLDERS?

    I don't use it, but I think I have heard that it doesn't handle images. There may be a recent mod or tweak to allow this - read up on the mod's support thread.

  5. #5
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,916
    Plugin Contributions
    3

    Default Re: Multiple Image FOLDERS?

    One issue you need to consider is the subsequent management of images via the EDIT PRODUCT screen in the admin panel.

    As you may know, when you elect to input a product manually, you get to the "images" section, and you can "browse" for an image, then select a SUB-folder in the images folder if you want to. (Via the dropdown selector on the right of the screen).

    So... as long as you just go ONE sub-folder deep in your main images folder, you will always have the dropdown for all available directories, when you add/edit a product manually.

    Easy Populate, as you may know, does NOT upload the actual image files.

    It simply writes the relative image name, into the database, where it can later be called (by the PHP) in order to construct a valid <img src="xxx/xxx/xxx"> hyperlink that is sent to the browser.

    YES... you CAN use easy Populate to indicate the subfolder names.

    In v_products_image column, where you would normally just put the image name, you can show the sub-directory name too.

    v_products_image
    televisions/sony-kv1024.jpg
    televisions/toshiba-re54.jpg
    televisions/toshiba-rtt33.jpg
    televisions/philipsvv466.jpg
    radios/panasonic-vrt33.jpg
    radios/technics-xx22.jpg
    radios/roberts-pa33423.jpg
    Did my post help you fix something? You can show your gratitude by buying the the dev team coffee.

  6. #6
    Join Date
    Jan 2006
    Posts
    1,557
    Plugin Contributions
    0

    Default Re: Multiple Image FOLDERS?

    We also have alot of images, but do not just dump them all directly into the images folder. Rather, each of our designers (manufacturers) has a separate folder under images. Therefore, no one images folder has an overwhelming number. If nothing else, it helps us to quickly locate the desired image.

    We use Image Handler and Easy Populate.

    SPH
    www.prommart.com

  7. #7
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,916
    Plugin Contributions
    3

    Default Re: Multiple Image FOLDERS?

    If you have a lot (and I mean a LOT) of images, then arranging them into folders will certainly speed up the site.
    Did my post help you fix something? You can show your gratitude by buying the the dev team coffee.

  8. #8
    Join Date
    Feb 2011
    Posts
    663
    Plugin Contributions
    0

    Default Re: Multiple Image FOLDERS?

    Quote Originally Posted by SPH View Post
    We also have alot of images, but do not just dump them all directly into the images folder. Rather, each of our designers (manufacturers) has a separate folder under images. Therefore, no one images folder has an overwhelming number. If nothing else, it helps us to quickly locate the desired image.

    We use Image Handler and Easy Populate.

    SPH
    www.prommart.com]So how did you Easy Populate to handle your images?
    Quote Originally Posted by schoolboy View Post
    If you have a lot (and I mean a LOT) of images, then arranging them into folders will certainly speed up the site.
    Like I said in the OP, about 12K

  9. #9
    Join Date
    Feb 2011
    Posts
    663
    Plugin Contributions
    0

    Default Re: Multiple Image FOLDERS?

    I should clarify that EP file does have all of the image numbers in it, they all correspond to the applicable part number.

    Unfortunetly some of my manufactures do have greater that 1024 parts. So I'm still trying to find a way to handle the hosts requirement to limit the folders to 1024 images each.

  10. #10
    Join Date
    Jan 2004
    Posts
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Multiple Image FOLDERS?

    If you're willing to roll up your sleeves, you can create your own solution simply by creating one folder for each letter of the alphabet and moving your images around accordingly.
    And, if that's not enough granularity, you could make folders based on first TWO letters instead.
    To make it work, you'll need to not only relocate the image files themselves, but also edit each product's database record to reflect the added foldername.
    ie: in the database, if it says "balloons.jpg" and you create a folder named "b" for it, then you'd change the database record to "b/balloons.jpg"
    (This refers to images in the /images/ folder.)
    Keep in mind that you'd need to do the same thing under the /image/medium/ and /images/large/ folders as well, if you're using them. See this FAQ article for more on that topic: http://tutorials.zen-cart.com/index.php?article=58
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Multiple designers with individual download folders?
    By TiffanyW in forum Customization from the Admin
    Replies: 2
    Last Post: 1 Feb 2011, 07:18 PM
  2. Can I set up multiple folders within /media/ folder?
    By redheadskater in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 10 Nov 2009, 05:57 PM
  3. image sub folders under large and medium folders
    By Sushigal in forum General Questions
    Replies: 2
    Last Post: 16 Apr 2009, 04:37 PM
  4. Different image folders
    By pcmt in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 15 Nov 2006, 07:27 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
  •