Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2012
    Posts
    106
    Plugin Contributions
    0

    Default Re-arange Additional Images

    I have moved some things around in tpl_product_info_display.php to make things look a little unigue. What I would like to do is have the additional images float left under the main product image.

    Here is what I have now (added a border for easy viewing):
    Click image for larger version. 

Name:	Untitled-1.jpg 
Views:	185 
Size:	19.6 KB 
ID:	11119

    I would like the images stacked on top of each other with the text wrapping around the images. (ie. jsut like it did before I modified it how it wrapped around the main product image.)

    When I look at the source code, it gives each td tag a width of 33%. How to I change this so that it only has 1 td tag and has no defined width without effecting other images like that (home page new products, featured products, etc).

    Any help would be great.

    Thanks,

    Clint

  2. #2
    Join Date
    Aug 2012
    Posts
    106
    Plugin Contributions
    0

    Default Re: Re-arange Additional Images

    Resolved

    Its funny how I can never figure something out until AFTER I have posted on a forum...

    How to:

    Admin Panel>configuration>images>Product Info - Number of Additional Images per Row = change to 1

    Copy from template_default/templates these two files into YOUR_THEME/templates:
    tpl_modules_main_product_image.php
    tpl_product_info_display.php

    open all three in your text editor

    In tpl_product_info_display.php

    find - around line 157:
    Code:
    <!--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 -->
    copy it and then comment it out like so:
    Code:
    <!--bof Additional Product Images ******** moved to templates/YOUR_TEMPLATE/template/tpl_modules_main_product_image.php *******-->
    <?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 -->
    Go to the tpl_modules_main_product_image.php that you opened:

    at the end of the page you will find this:
    Code:
    </noscript>
    </div>
    paste the copied code in between those two lines so it will look like this:

    Code:
    </noscript>
    <!--bof Additional Product Images -->
    <br class="clearBoth" />
    <?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>
    add this style to your style sheet:

    Code:
    #productMainImage {
    	float:left;
    }
    Click image for larger version. 

Name:	Untitled-3.jpg 
Views:	57 
Size:	22.1 KB 
ID:	11120

    If you dont want your text floating around the image, just dont put the style there.

    You should be all done. Make sure to test these files on your own template and do not overwrite the default template.

    Clint
    Last edited by clint6998; 11 Sep 2012 at 10:24 PM.

  3. #3
    Join Date
    Oct 2012
    Location
    Natrona Heights, PA
    Posts
    23
    Plugin Contributions
    0

    Default Re: Re-arange Additional Images

    A HUGE 'thank you' to you, clint6998 !!

    I've been attempting to do this for about 2 weeks now.

    Thanks for the detailed instructions...worked perfectly!

 

 

Similar Threads

  1. Replies: 2
    Last Post: 5 Sep 2014, 03:28 AM
  2. Additional Product Images - Add title below all images
    By sports guy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 22 Dec 2011, 05:54 AM
  3. Layout of Additional of Additional Product Images - Possible Bug?
    By RatMonkey in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Mar 2011, 02:21 PM
  4. Additional Large Images WITHOUT additional Thumbnails
    By haasPlay in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Sep 2006, 04:54 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