Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2018
    Location
    uk
    Posts
    26
    Plugin Contributions
    0

    Default Product attribute images

    [hi guys im trying to find the correct setting to get all my attribute images to be the same height

    i have tried adjusting the settings under admin>configuration>images but nothing seems to control this, i have tried a google search as well as searching zencart.com and found a few people ask the same question but they never responded if they sorted it or how
    i basically want them the light up in a row rather than being all different heights
    if its relevant i have image handler mod installed but can see anything there either

    see screen shot and product page so you can see what i am referring to
    and thanks for taking the time to read this

    https://www.cjscreativecrafts.com/tr...traw-p-35.html

    Name:  ATTRIBUTE IMAGES.jpg
Views: 86
Size:  52.4 KB
    zen 2.1
    PHP Version: 8.3.14
    https://www.cjscreativecrafts.com/

  2. #2
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: Product attribute images

    Attribute image html tags are basically generated in includes/modules/attributes.php. There are multiple ways to force consistency, with some more business use friendly than others.

    I apologize for not digging through the coffee of that file further before posting. I saw no one had answered even a pay off your question and thought I would at least get things started. I did apparently also find out that on a Google Pixel device, use of the web address prefix view-source: to a web address doesn't show me the html like it did for me on a Samsung. Still have to figure out the quirks but...

    There is CSS that accompanies the HTML; however, it would be better for the browser to pull the image of the desired size directly rather than the guest experiencing a screen shift.

    As for template type things, sometimes s purchased template will out features of a core files capabilities. Sometimes it will add to it. One way though to identify differences is to activate one of the default templates and then activate the test template, review the differences such as what is seen, what is sent to the browser, how the code differences have an effect, etc.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jun 2018
    Location
    uk
    Posts
    26
    Plugin Contributions
    0

    Default Re: Product attribute images

    Quote Originally Posted by mc12345678 View Post
    Attribute image html tags are basically generated in includes/modules/attributes.php. There are multiple ways to force consistency, with some more business use friendly than others.

    I apologize for not digging through the coffee of that file further before posting. I saw no one had answered even a pay off your question and thought I would at least get things started. I did apparently also find out that on a Google Pixel device, use of the web address prefix view-source: to a web address doesn't show me the html like it did for me on a Samsung. Still have to figure out the quirks but...

    There is CSS that accompanies the HTML; however, it would be better for the browser to pull the image of the desired size directly rather than the guest experiencing a screen shift.

    As for template type things, sometimes s purchased template will out features of a core files capabilities. Sometimes it will add to it. One way though to identify differences is to activate one of the default templates and then activate the test template, review the differences such as what is seen, what is sent to the browser, how the code differences have an effect, etc.
    many thanks for taking the time to respond
    this is the default responsive template that is built into zencart
    i have spent hours playing with the css both manually and by using the inspect option in google chrome but nothing i have tried will change the height of these images and give anything like consistent results, i have tried resizing the actual images themselves to all be 1 size and even then i get this mixed height issue that outs everything out of line
    i am at a complete loss as to how to control this
    zen 2.1
    PHP Version: 8.3.14
    https://www.cjscreativecrafts.com/

  4. #4
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,616
    Plugin Contributions
    19

    Default Re: Product attribute images

    The best way to achieve it is to have all images in uniformed dimensions. This takes A LOT of time for preparing the images, but is generally worth it. So, let's say you opt for 600x600 px - make sure ALL images use those dimensions. Same goes for attribute images.

    If all of your original images are the same dimensions, you should be fine, but as always, there's a but... If your titles that show with the images are different lengths, or maybe multiple words so the title ends up split into two rows, you're back to square one and the layout will be messy. You could mess around with the template and make the container a flexbox and apply various flex styling, which will then automatically align everything, but it might be a bit overwhelming.
    You could also try a jQuery plugin, such as this. It's quite old, but still works like a charm and, depending on your coding skills, might be easier to implement than flexbox.

  5. #5
    Join Date
    Jun 2018
    Location
    uk
    Posts
    26
    Plugin Contributions
    0

    Default Re: Product attribute images

    Quote Originally Posted by balihr View Post
    The best way to achieve it is to have all images in uniformed dimensions. This takes A LOT of time for preparing the images, but is generally worth it. So, let's say you opt for 600x600 px - make sure ALL images use those dimensions. Same goes for attribute images.

    If all of your original images are the same dimensions, you should be fine, but as always, there's a but... If your titles that show with the images are different lengths, or maybe multiple words so the title ends up split into two rows, you're back to square one and the layout will be messy. You could mess around with the template and make the container a flexbox and apply various flex styling, which will then automatically align everything, but it might be a bit overwhelming.
    You could also try a jQuery plugin, such as this. It's quite old, but still works like a charm and, depending on your coding skills, might be easier to implement than flexbox.
    hi there
    all of the images are identical dimensions and resolution but even after taking the trouble to do that they still dont all line up it really is driving me insane
    zen 2.1
    PHP Version: 8.3.14
    https://www.cjscreativecrafts.com/

  6. #6
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,616
    Plugin Contributions
    19

    Default Re: Product attribute images

    Looking at the link you posted above, they are NOT the same dimensions. First row all images ARE 1000x1000px, but then comes Pikachu at 2462x2984 px, followed by a 1100x1100 px image (which is fine as long as all ratios are always the same).

 

 

Similar Threads

  1. Popup for both product images and attribute images
    By Fubarsmithuk in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Jan 2011, 03:15 PM
  2. Global Product Attribute Images?
    By encryptdesigns in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 27 Apr 2010, 01:43 AM
  3. Product Attribute Images Problem
    By kikboxr777 in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 6 Feb 2008, 06:04 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