Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    May 2011
    Posts
    42
    Plugin Contributions
    0

    Default Additional images - how to place / move them as wished?

    I'm using Zencart version 1.3.9b

    I did change the order on my product page using the FAQ but I have a few issues.

    1. Additional images
    Here:
    http://www.petitplat.fr/zencart/inde...roducts_id=214

    The additional images show up as a column, and I'd like to have them in a grid way.

    Which weirdly is the case here:
    http://www.petitplat.fr/zencart/inde...roducts_id=251

    But if possible with less "space" between the pictures.
    Ideal would be a grid of 6 pictures (3 columns, 2 rows)

    2. Add to Cart button emplacement

    When I have attributes, it looks good:
    http://www.petitplat.fr/zencart/inde...roducts_id=251

    But when I don't, the add to cart button is beneath the "review" and "tell a friend". which is a little odd:
    http://www.petitplat.fr/zencart/inde...roducts_id=247

    (if it's too complicated I can indeed add a text attribute which will solve the problem)

    Thanks in advance!

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Additional images - how to place / move them as wished?

    One thing I notice is look at the size of the images...
    The one you like: 650px × 606px (scaled to 215px × 200px)

    One that is messed up.. 650px × 486px (scaled to 267px × 200px)

  3. #3
    Join Date
    May 2011
    Posts
    42
    Plugin Contributions
    0

    Default Re: Additional images - how to place / move them as wished?

    Quote Originally Posted by haredo View Post
    One thing I notice is look at the size of the images...
    So the reason would be that the image is too large? It would just work fine with a square image? (just making sure I understood you right. English is not my language)

  4. #4
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Additional images - how to place / move them as wished?

    I use Firefox with a add on called Firebug which allow me to dig into the html and view images and make changes to images, classes and Id's..

    When i change your image to scaled to 215px × 200px), yes, now i get 2 additional images to the right of the picture, but the 4th and 5th image wraps under the main image... Not good...

  5. #5
    Join Date
    May 2011
    Posts
    42
    Plugin Contributions
    0

    Default Re: Additional images - how to place / move them as wished?

    Oh weird.

    I always see 2 images on the right and the rest just under the main image.

    Except here http://www.petitplat.fr/zencart/inde...roducts_id=251
    where the 3 images are on the right of the main image.

    And I use firefox as well (latest version)

  6. #6
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Additional images - how to place / move them as wished?

    Use firebug and duplicate this on the left pane..
    <div id="productMainImage" class="centeredContent back"><img role="presentation" class="twisty "><script type="text/javascript" language="javascript">

    <img role="presentation" class="twisty "><a title="Monochrome - Post Earrings" rel="lightbox-g" href="images/bijoux_bo/BO_Donuts_St_RainbowMonochrome.jpg">
    <img height="200" width="267" title=" Monochrome - Post Earrings " alt="Monochrome - Post Earrings" src="images/bijoux_bo/BO_Donuts_St_RainbowMonochrome.jpg">

    <br>

    <span class="imgLink">larger image</span>


    </a>
    change the 267 to 215, and you will see what i see..

  7. #7
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Additional images - how to place / move them as wished?

    Do you like this view...

    Highlight this in your left pane after you inspect element:
    <!--eof Main Product Image-->


    1. right mouse click and select edit HTML
    2. go to the end and hit enter..
    3. add this to the bottom of it:
    4. <br class="clearBoth">
    5. Should look like this now.. and notice the page above.

    <!--eof Main Product Image-->
    <br class="clearBoth">

  8. #8
    Join Date
    May 2011
    Posts
    42
    Plugin Contributions
    0

    Default Re: Additional images - how to place / move them as wished?

    I just installed firebug (and it's great, thanks!)
    And I see 3 images next to the main image and the 2 others are just under.

    So no I don't like it that way.

    I need to go now but I'll try with different image sizes if it works better.

  9. #9
    Join Date
    May 2011
    Posts
    42
    Plugin Contributions
    0

    Default Re: Additional images - how to place / move them as wished?

    Ok so what I did was change the max width of the picture to 230.
    And restraint myself to 3 pictures per item.
    That way I have the main picture and the 3 additional pictures next to it.
    Thanks haredo for helping me through this :)

    BUT if someone knows how to put a 4th picture, or ideally 6 pictures next to the main picture, I'd be grateful :)

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

    Default Re: Additional images - how to place / move them as wished?

    The width of the additional image container is set as a percentage of the center column width according to how many you have specified per row, or how many you have, whichever is less.
    Since they are up next to the main image, there can never be enough room to display them all as intended (the % width does not allow for the main image taking some of it).

    What you need to do is explicitly override that width using !important in your stylesheet. Add a rule like

    Code:
    .additionalImages {
    	width: 20% !important;
    	width: 120px !important;
    }
    You can use either of these specification methods, adjusted as desired to fit the images. Set the number per row to what you want.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 How to move Additional Images on Product Info page?
    By castigliajj in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 May 2012, 02:17 PM
  2. Additional Images Vertical but i want them horizontal
    By Checooper in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 17 Aug 2010, 03:56 PM
  3. how to move up add to cart button and additional images?
    By ztotheetothen in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 14 Aug 2010, 10:54 PM
  4. Multiple size boxes - How to keep them in one place?
    By jas99villa in forum Basic Configuration
    Replies: 2
    Last Post: 21 Feb 2007, 02:36 PM
  5. How to move additional images to the right of main product image
    By davale in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 20 Sep 2006, 02:27 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