Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Manufacturer image directory

    For products, the "small" images go in the /images dir. Only the med/large go into subdirs.

    For manufacturers there are no multiple-size images, so no added subdirs either
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

  2. #12
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default Re: Manufacturer image directory

    Quote Originally Posted by DrByte View Post
    For products, the "small" images go in the /images dir. Only the med/large go into subdirs.

    For manufacturers there are no multiple-size images, so no added subdirs either
    Yeah I know but did you read the whole thread? I followed the instructions and created a images/small which I really like because it feels cleaner but if it's going to be a "hack" to get working I'll revert back to the standard.

  3. #13
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Manufacturer image directory

    I had read most of the whole thread, but didn't realize you'd switched topics mid-way, and somehow I missed some posts.

    There are lots of places where the small product images are used exactly as they are specified in the database, ie: for the "small" images. It's only where med/large images are intended to be used that there is special logic to look for the alternate sizes.

    That's a complicated lot of code to adjust.

    I suppose one way you could try is change the path for all product/cat images in the db, and then where med/large are used add an extra step to strip out the small/ string before attempting to do pattern matching for med/large.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

  4. #14
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default Re: Manufacturer image directory

    Quote Originally Posted by DrByte View Post
    I had read most of the whole thread, but didn't realize you'd switched topics mid-way, and somehow I missed some posts.

    There are lots of places where the small product images are used exactly as they are specified in the database, ie: for the "small" images. It's only where med/large images are intended to be used that there is special logic to look for the alternate sizes.

    That's a complicated lot of code to adjust.

    I suppose one way you could try is change the path for all product/cat images in the db, and then where med/large are used add an extra step to strip out the small/ string before attempting to do pattern matching for med/large.
    Yes. To be clear I was pointing it out for any other reason than as you mentioned I added a slightly related topic.

    So based on your assessment, I would say that for me personally it is not worth the mere benefit of achieving a "clean" look. I think I'll pull out of that before I go any further since all I need to do is undo a simple db edit for that folder.

    I would point out as I mentioned initially when explaining why I asked this in the first place; if you read the document explaining how to prep images near the end if you follow the explanation explicitly you would end up uploading your small images in a subfolder called small under images. It's fine by me but someone new coming along might interpret it in the same way I did.

  5. #15
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default Re: Manufacturer image directory

    Okay, executed:

    Code:
    UPDATE products
    SET products_image = REPLACE(products_image, 'small/', '')
    to strip the folder name and now small, medium and large seem to be all back to normal. (after moving the from small/ to /images via ftp of course)

  6. #16
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Manufacturer image directory

    Quote Originally Posted by plc613 View Post
    I would point out as I mentioned initially when explaining why I asked this in the first place; if you read the document explaining how to prep images near the end if you follow the explanation explicitly you would end up uploading your small images in a subfolder called small under images.
    Thanks. Link updated to point to the docs site, which doesn't mention a "small" subdir.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

  7. #17
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default Re: Manufacturer image directory

    Quote Originally Posted by DrByte View Post
    Thanks. Link updated to point to the docs site, which doesn't mention a "small" subdir.
    Yes it does.

    12 Create another folder called small. Copy all the images from large to it.
    13 Run a batch-process on the files in small to resize to 125 pixels square; you may as well optimize for web as well.
    14 Upload them all to images.
    This tells me that the subfolder 'small' gets uploaded to the /images directory as in images/small. Since you presume the images you put in ../large and ../medium must stay in their respected folders as they do, you'd have to explicitly state "now remove the images from the 'small' folder you created so and upload all the images to the images folder.
    Again, doesn't really matter to me since I know the difference. I was just trying to do it because I actually prefer the feel of more folders=more organized but as mentioned, not at the cost of breaking everything and hacked away at the stock code. I was okay with a simple SQL code change but nothing more. imo it could definitely be written with more explicit intention.

  8. #18
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Manufacturer image directory

    Thanks. Will make a note to do some more updates to it!
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v151 Image directory
    By RiverCity in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 16 Dec 2013, 05:27 PM
  2. Add Manufacturer image to Manufacturer product page
    By vito in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Jul 2010, 05:05 PM
  3. Adding another sub-directory level to Image Directory?
    By erko in forum General Questions
    Replies: 0
    Last Post: 31 May 2010, 12:33 PM
  4. manufacturer image on manufacturer page
    By bigbadboy in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 27 Dec 2009, 10:00 AM
  5. Removing Manufacturer Image without losing manufacturer
    By Jamie Bower in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 30 Jan 2009, 10:42 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