Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2014
    Location
    Etobicoke
    Posts
    48
    Plugin Contributions
    0

    Default Moving extra product images

    I want to move the extra product images from the bottom of the product info. page to just under the main product image. Is this possible, and if so could someone help me out?

    Here is a link to a product info. page from my site:
    http://www.lhalsportscards.com/index...p4opqh2eu1ehu4

    Any help is appreciated.

    Regards,

    Les McDonald

  2. #2
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default Re: Moving extra product images

    You'll want to edit your: includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php

    I suggest putting the images in a div like this:
    PHP Code:
    <div id="productImageGroup">
    <!--bof Main Product Image -->
    <?php
      
    if (zen_not_null($products_image)) {
      
    ?>
    <?php
    /**
     * display the main product image
     */
       
    require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?>
    <?php
      
    }
    ?>
    <!--eof Main Product Image-->

    <!--bof Additional Product Images -->
    <?php
    /**
     * display the products additional images
     */
      
    require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
    <!--eof Additional Product Images -->
    </div> <!-- eof productImageGroup div -->
    you can look for this code around line 140

    This should be compatible with your current template too.
    Hope that helps,

    Don't forget to add productImageGroup to your stylesheet.
    Last edited by Trinity14; 22 Apr 2015 at 04:46 PM. Reason: reminder about css

  3. #3
    Join Date
    Sep 2013
    Location
    Warren, Oregon
    Posts
    117
    Plugin Contributions
    0

    Default Re: Moving extra product images

    I would also like to group my extra images directly under the main image, so I will by trying this solution. However, you also said "Don't forget to add productImageGroup to your stylesheet." How do I do dat? I am guessing you are talking about includes/templates/MyTemplate/css/stylesheet.css, but what and where should the code go?

    Thanks,
    Phil

  4. #4
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default Re: Moving extra product images

    Quote Originally Posted by Phil Soth View Post
    I would also like to group my extra images directly under the main image, so I will by trying this solution. However, you also said "Don't forget to add productImageGroup to your stylesheet." How do I do dat? I am guessing you are talking about includes/templates/MyTemplate/css/stylesheet.css, but what and where should the code go?

    Thanks,
    Phil
    yes in this file :
    includes/templates/MyTemplate/css/stylesheet.css
    try this:
    #productImageGroup {
    width: 50%;
    }
    Hope that helps :)

  5. #5
    Join Date
    Sep 2013
    Location
    Warren, Oregon
    Posts
    117
    Plugin Contributions
    0

    Default Re: Moving extra product images

    Yes! This will work!

    That's the good news...the lesser good news is that now I need to know what to do to arrange the multiple images consistently. Please go to my site - www.heirloomstocherish.com - then go to Gift Sets, and select the first one. (You can also use this address to get there quicker - http://0003nu2.rcomhost.com/index.ph...roducts_id=214) As you can see, the pictures are indeed above the description, right where I want them, but the rows are inconsistent.

    Is there a way to fix it so there are 4 images per row?

    Thanks for the help so far!
    Phil

  6. #6
    Join Date
    Sep 2013
    Location
    Warren, Oregon
    Posts
    117
    Plugin Contributions
    0

    Default Re: Moving extra product images

    Just thought I would let you know that I am still interested in a .php solution to the above-mentioned image location problem, and while the solution suggested by Trinity14 goes part of the way, it doesn't completely do what I need. I have restored by old tpl_product_info_display.php code and have developed an html workaround (http://0003nu2.rcomhost.com/index.ph...oducts_id=3580) to use in the meantime. My workaround is a bit more clunky than ZC-friendly code, but it gives me the visual result I was looking for (although the Large image isn't as seamless as the standard ZC code).

    Like I say, I would still be interested in a more elegant solution.

    Thanks for the help!
    Phil

  7. #7
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Moving extra product images

    The php solution is to move the code in the php file building the page html like this:

    <?php
    Product image php code here

    Additional product image code here
    ?>

    then wrap them in containers of your choice:

    <?php
    <div id="mainProductImage_container"> Product image php code here </div>

    <div id="additionalProductImage_container"> Additional product image code here </div>
    ?>

    then control the look with CSS however you'd like:

    /*CSS stylesheet.css */
    #mainProductImage_container {
    your styles here
    }

    #additionalProductImage_container {
    your styles here
    }

    Recap, PHP builds inline HTML structure, HTML displays content in top down order, CSS makes HTML pretty :)
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

 

 

Similar Threads

  1. Extra product images
    By dddmx3 in forum Basic Configuration
    Replies: 4
    Last Post: 31 Jul 2010, 03:25 PM
  2. Display of Extra Product Images
    By guyhancock in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 20 May 2009, 12:08 PM
  3. Extra Images in product
    By ^GiZ^ in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 7 Mar 2009, 11:41 PM

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