Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Feb 2010
    Location
    New York
    Posts
    1,613
    Plugin Contributions
    14

    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
    21,999
    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
    New York
    Posts
    1,613
    Plugin Contributions
    14

    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
    21,999
    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
    New York
    Posts
    1,613
    Plugin Contributions
    14

    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
    21,999
    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
    New York
    Posts
    1,613
    Plugin Contributions
    14

    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
    Feb 2010
    Location
    New York
    Posts
    1,613
    Plugin Contributions
    14

    Default Re: Adding Aditional Images via Admin Add Product Page

    Also being able to see all additional images via admin (product-preview page) would allow users to detect if any additional images did not belong.

    The Code I inserted on my product_info pages does not rely on filename matching so it would be impossible for images with similar names to appear on products that the image wasn't assigned to.

    Am I correct?

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    21,999
    Plugin Contributions
    25

    Default Re: Adding Aditional Images via Admin Add Product Page

    Hmm... the available options are:
    Use stock filename matching for additional image features in admin, leaving existing additional image functions intact, and allowing other additional image mods to function normally;
    Create new additional image system and abandon the old, making any other additional image mods unusable;
    Keep the existing system and layer the new system on top of it, requiring both to run to handle additional images (and in some cases requiring special handling by other mods, in some cases not).

    My opinion of the best mod is one that does its job with the least disruption to core code and other mods, unless it is so superior that the disruption is offset by other advantages.

  10. #10
    Join Date
    Feb 2010
    Location
    New York
    Posts
    1,613
    Plugin Contributions
    14

    Default Re: Adding Aditional Images via Admin Add Product Page

    As always the Master breaks it down!

    Create new additional image system and abandon the old, making any other additional image mods unusable;
    I am also using Image Handler 3 & Zen Lightbox, both are usable and currently working.

    This simply takes the filename structure for additional images right out of the equation. Eliminating unwanted images, allowing you to assign any image to any product with any name at product creation, confirming and previewing additional images before updating and taking product live.

    Leaving no error for same name images to magically appear where they are not wanted.

    Also allows you to delete any image from product right from admin product page.

    Like any other add-on, simply adding code will call these additional images, anywhere. product_listing, product_info, advanced_search, new_products, all_products.

    Allows the unwillingness of learning FTP acceptable.
    Allows no confusion of adding additional images.
    Frees up the time spent renaming additional images.

    It works for me!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Adding $1.00 for each aditional item?
    By lilguppy in forum Built-in Shipping and Payment Modules
    Replies: 35
    Last Post: 31 Aug 2010, 12:04 AM
  2. aditional images not showing
    By kitcorsa in forum General Questions
    Replies: 10
    Last Post: 8 Jun 2010, 01:26 PM
  3. Adding aditional Zones
    By Bruce1952 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 12 Feb 2010, 07:36 AM
  4. Overlapping Aditional Images
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Dec 2009, 05:29 AM
  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
  •