Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Adding Aditional Images via Admin Add Product Page

    When I was creating a Quick View for the product listing page I managed to create a way to upload a products additional images via the admin > product page.

    I included a few images so you can see what I mean, Just wondering if this is something that the zen community would value as an add-on?

    This is what the new ADD PRODUCT page looks like


    Clicking on the Add Additional Image (1) link and so on open a div to upload image. See Image below

    The Admin Product Preview page shows file upload success at the top and all additional images at bottom. See image below

    After clicking update and returning to the Admin Add Product Page you will now see the image names that are stored in you database and you can over-ride or delete them just like you would the main image. See image below

    If you notice I still use the ZEN image name structure this way no other code on the catalog side has to be altered.

    Although It gives you the ability to add those additional images elsewhere by pulling the from your database like I did for my Quick View function on my product listing page. See image below


    Let me know what you think and if this would be a good add-on?

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

    Default Re: Adding Aditional Images via Admin Add Product Page

    I'm sure a lot of people would appreciate this, for instance shop owners/staff with limited skill who can't or won't learn to use FTP. The display of all additional images is a good feature for anybody's ease of maintenance (assuming the code gets the additional images from /images/ folder analysis and not from a new db table/field). I presume this would work with existing additional images as well as new ones added? What would happen if the user wanted to have more than 9 additional images?

  3. #3
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Adding Aditional Images via Admin Add Product Page

    Thanks for your input Glenn, it uploads all additional images to the /images/ folder and saves the image name to the product as an additional product field in db just like the main product image. Could even add these image names to db via EasyPopulate just like main image.

    Like the main image it will over-ride and delete image name from db but not delete image from /images/ folder.

    I haven't altered any code for example on the product_info page, so all the images uploaded with the ZEN additional image name structure will be linked to the main image as normal.

    Not sure how it would handle existing additional images for they are only in /images/ folder and the names are not stored in the db. (I think, still exploring how zen additional images work)

    As of right now (9) additional images is all I really need and haven't put much thought into allowing for more!

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

    Default Re: Adding Aditional Images via Admin Add Product Page

    Not sure how it would handle existing additional images for they are only in /images/ folder and the names are not stored in the db.
    Correct, the stock additional images are accessed purely through analysis of the base image name and matching filenames in the /images/ folders. I was hoping your new code would access them the same way (trading db lookups for filename matching). The product info page code still needs to go through the whole filename process, plus the db lookups in case filenames are not consistent with the stock system.

    I would expect that you could still upload as many additional images as you liked relying on the filename matching, but they would not appear in the admin page as additional images; nor would existing additional images. The idea of not being able to work with more than 9 additional images in admin is one thing - anyone who hits that limit (probably rare) can be advised that there may be more that will show up on the product info page. But for images not processed through the code to not be acknowledged in admin as additional images, regardless of "blanks" in the 9 fields, strikes me as causing more confusion to people who do not use the new code exclusively.

  5. #5
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Adding Aditional Images via Admin Add Product Page

    Well said, I will continue to work on this. Any additional ideas or input would be greatly appreciated Glenn.

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

    Default Re: Adding Aditional Images via Admin Add Product Page

    Using the stock additional image detection system for populating the admin product editing page would have the extra benefit of alerting people to matching filenames that they didn't expect, thus minimizing surprise additional images when viewing the site live.

  7. #7
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Adding Aditional Images via Admin Add Product Page

    retract - I can upload images not relying on the filename matching of the stock zen code.

    see image below - 3 different image names all saved to db, all showing as an additional image for that product.




    Now see image below, adding code to call db field actually inserts correct additional images to correct product id's.



    And with that said, simply using EP to insert additional image names in correct db field should assign existing images to product.

    With that said, that will be my next test........

  8. #8
    Join Date
    Sep 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Adding Aditional Images via Admin Add Product Page

    Hi

    Can you send me the link to download the mod because can't find it zencart add-on? thank you!

  9. #9
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,542
    Plugin Contributions
    19

    Default Re: Adding Aditional Images via Admin Add Product Page

    You jumped in on an 8-years old thread...

    From what I know, Image Handler is your best option. It doesn't work directly from the "add product" page, but it does have a friendly admin interface that allows you to add additional images to a product. You can find it here or here, depending on your Zen Cart version.

  10. #10
    Join Date
    Sep 2008
    Posts
    3
    Plugin Contributions
    0

    Idea or Suggestion Re: Adding Aditional Images via Admin Add Product Page

    Quote Originally Posted by balihr View Post
    You jumped in on an 8-years old thread...

    From what I know, Image Handler is your best option. It doesn't work directly from the "add product" page, but it does have a friendly admin interface that allows you to add additional images to a product. You can find it here or here, depending on your Zen Cart version.


    Thank you very much for your help!

 

 

Similar Threads

  1. Replies: 16
    Last Post: 13 Jan 2013, 06:10 PM
  2. Add Image to Main Page via Admin Panel
    By aajc in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 6 Jun 2009, 09:49 AM
  3. How can I add multiple images for ONE product through the Admin page?
    By stevewag in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Apr 2009, 09:57 AM
  4. Adding Options to the admin 'Add/Edit Product' Page
    By DiZZ in forum General Questions
    Replies: 1
    Last Post: 24 May 2008, 10:33 PM
  5. Adding aditional images
    By Cyprian in forum General Questions
    Replies: 0
    Last Post: 30 Apr 2008, 12:27 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