Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2017
    Location
    United Kingdom
    Posts
    2
    Plugin Contributions
    0

    Default Multiple images using csv??

    How do you upload multiple images in bulk using my csv and Easy Populate?

    I can do the main image by putting example fred.jpg in images/large on server which works fine.. then I tried putting fred.jpg and fred.01.jpg inside images/large as they are both Large..
    But on the CSV do I have v_products_image in line 1 with large/fred.jpg and in line 2 on csv I have another v_products_image with large/fred_01.jpg or do I just have 1 v_products_image tab on csv with large/fred.jpg, large/fred.01.jpg??

    I looked at the tutorial for doing multiple images, but it doesn't explain how to do it via CSV

    Seems confusing as hell..

    Another thing I have all my images on a hosting site.. how do I upload the URL for each product to my csv for Zencart??

  2. #2
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,839
    Plugin Contributions
    31

    Default Re: Multiple images using csv??

    Seems confusing as hell..
    Yes. I would forget the ZC vanilla method of organising images: use Image Handler 4.

    Your product image url in the csv will be
    images/a-sub-directory-you-choose/my_image.jpg

    and all the other images you want to show up for that product will be named the same with an underscore then whatever you like.
    images/a-sub-directory-you-choose/my_image_whatever.jpg
    images/a-sub-directory-you-choose/my_image_whichever.jpg
    images/a-sub-directory-you-choose/my_image_whenever_001.jpg
    etc....

    You upload them all as same hi-res (large) and Image Handler resizes them as needs be, on the fly.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  3. #3
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Multiple images using csv??

    Note: when uploading an additional file, no database changes are made to support display of additional images.

    So, that said: there is nothing that is to be added/manipulated in a csv file that is used to update product information to support additional images being displayed through the standard ZC additional images process, provided the product's image is defined using standard image assignment.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Apr 2017
    Location
    United Kingdom
    Posts
    2
    Plugin Contributions
    0

    Default Re: Multiple images using csv??

    No idea what is going on I must be slow or something.

    For an example. I put j30afcac-0-2.jpg in images/ which is the default image at 100x100 as well as j30afcac-0-3_MED.jpg in medium/ which is 500x500 and finally j30afcac-0-1_LRG.jpg in large/ which is 1000x1000..... I then direct my csv input to images/j30afcac-0-2.jpg for default, medium/30afcac-0-3_MED.jpg for medium and large/j30afcac-0-1_LRG.jpg all of which are under x3 different v_products_image columns on CSV.
    I then load it up on zencart and then it seems to only load the medium image 500x500 and in Image handler 4 it sets the 500x500 image {medium} as the large image and DEFAULT IMAGE... some-body shoot me as this is driving me insane
    Last edited by blazedup23; 10 Apr 2017 at 02:34 AM.

  5. #5
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Multiple images using csv??

    Quote Originally Posted by blazedup23 View Post
    No idea what is going on I must be slow or something.

    For an example. I put j30afcac-0-2.jpg in images/ which is the default image at 100x100 as well as j30afcac-0-3_MED.jpg in medium/ which is 500x500 and finally j30afcac-0-1_LRG.jpg in large/ which is 1000x1000..... I then direct my csv input to images/j30afcac-0-2.jpg for default, medium/30afcac-0-3_MED.jpg for medium and large/j30afcac-0-1_LRG.jpg all of which are under x3 different v_products_image columns on CSV.
    I then load it up on zencart and then it seems to only load the medium image 500x500 and in Image handler 4 it sets the 500x500 image {medium} as the large image and DEFAULT IMAGE... some-body shoot me as this is driving me insane
    It appears that you are mixing three different things together expecting one of them to work right.

    For your csv: suggest posting to the forum thread related to the version of EP that you are using (there is more than one)
    For your image upload through the "normal" process, you should upload your base image last if you are uploading multiple images.
    For IH4, forget all the rest, and upload each image to where it is to be applied, with your largest resolution image being your first image and then load each small, medium and large through IH4.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

    Default Re: Multiple images using csv??

    Quote Originally Posted by blazedup23 View Post
    For an example. I put j30afcac-0-2.jpg in images/ which is the default image at 100x100 as well as j30afcac-0-3_MED.jpg in medium/ which is 500x500 and finally j30afcac-0-1_LRG.jpg in large/ which is 1000x1000..... I then direct my csv input to images/j30afcac-0-2.jpg for default, medium/30afcac-0-3_MED.jpg for medium and large/j30afcac-0-1_LRG.jpg all of which are under x3 different v_products_image columns on CSV.
    I then load it up on zencart and then it seems to only load the medium image 500x500 and in Image handler 4 it sets the 500x500 image {medium} as the large image and DEFAULT IMAGE... some-body shoot me as this is driving me insane
    You've done this:
    /images/j30afcac-0-2.jpg
    /images/medium/j30afcac-0-3_MED.jpg
    /images/large/j30afcac-0-1_LRG.jpg

    When all you needed to do was:
    /images/j30afcac.jpg for your 100x100 image
    /images/medium/j30afcac_MED.jpg for your 500x500
    /images/large/j30afcac_LRG.jpg for your 1000x1000

    Then in the database the products_image field should be set to j30afcac.jpg

    You don't need to add numbers to your image filename unless they are *different* images. If they're only *resized* then they keep the same base name.

    For example, if you had another image (maybe the back side of a product, etc), you could add a -1 suffix to it, like this:
    /images/j30afcac-1.jpg for your 100x100 image
    /images/medium/j30afcac-1_MED.jpg for your 500x500
    /images/large/j30afcac-1_LRG.jpg for your 1000x1000

    No additional database change/update required, since Zen Cart takes the j30afcac.jpg that you've got in the database, and then looks for all the files on the server that match the pattern of j30afcac******.jpg
    Then it looks for any /images/j30afcac******.jpg
    and corresponding /images/large/j30afcac******_LRG.jpg

    (it does the same for the medium image too, but the medium image is only used on the product page, and only 1 medium image is ever used.)
    .

    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.

 

 

Similar Threads

  1. Using multiple images per product
    By Sc0tt in forum Basic Configuration
    Replies: 52
    Last Post: 22 Oct 2016, 01:26 PM
  2. Using lightbox to display multiple images in product description?Hi
    By Twaddle in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Jun 2011, 03:13 PM
  3. Using Multiple Images for a product
    By glennnall in forum General Questions
    Replies: 10
    Last Post: 27 Aug 2010, 09:46 PM
  4. How can I change Button positions when using multiple images?
    By macsheep in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Aug 2009, 06:53 PM

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