Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2007
    Posts
    11
    Plugin Contributions
    0

    red flag Additional image positioning

    I hope someone can help me out with this.

    I have managed to get an additional image to be displayed on a product page. Is there any way I can get the additional image(s) to be under the original instead of at the bottom of the page?

    Many thanks,

    James.

  2. #2
    Join Date
    Mar 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Additional image positioning

    I have been looking for the answer myself and finally figured it out. Here is how I did it:

    copy
    /includes/templates/template_default/templates/tpl_product_info_display.php

    to
    /includes/templates/CUSTOM/templates/tpl_product_info_display.php

    Edit /includes/templates/CUSTOM/templates/tpl_product_info_display.php with your favorite editor.

    find this section:

    <!--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 -->

    highlight the entire section, right click and select Cut.

    Now find this section

    <!--bof Product description -->
    <?php if ($products_description != '') { ?>
    <div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
    <?php } ?>
    <!--eof Product description -->


    <br class="clearBoth" />

    Put your cursor at the end of
    <br class="clearBoth" /> and press "Enter"
    Now paste the info from your clipboard (either CTRL+V or right click and paste)

    That did it for me.


  3. #3
    Join Date
    Mar 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: Additional image positioning

    Fantastic, thanks for that.

    james.

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

    Default Re: Additional image positioning

    I've been trying off & on for months to get additional images positioned in another way, and just found the key so thought I'd share it here.

    I wanted images in a column on the left and text in a column on the right. I got the main image & text a long time ago, but additional images persisted in taking up the whole center column and pushing the text below. I thought I would have to edit tpl_columnar_display.php, but couldn't because it serves other functions too. I recently proved that it was the
    <br class="clearBoth" />
    at the end of it that was causing this, and figured a safe way to edit the file.
    Add a test so the code is only skipped when used for the product info page:
    PHP Code:
    <?php
          
    }
        }
    ?>
    <br class="clearBoth" />
    <?php
    PHP Code:
    <?php
          
    }
        }
    if (
    $current_page_base != "product_info") { // gjh42 20070329 ?>
    <br class="clearBoth" />
    <?php }
    There are other <br class="clearBoth" /> instances that need to be stripped from files for all the text to snug up next to the images, but they are in single-purpose files that can be edited straight. (Although php files shouldn't need to be edited to do css positioning like this... but that's just my pet peeve.)

 

 

Similar Threads

  1. Text/Image Positioning Help
    By Chris10 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 30 Apr 2010, 11:53 AM
  2. Image Handler Mouse Image Mis-positioning
    By AmirGTR in forum General Questions
    Replies: 0
    Last Post: 18 Apr 2010, 12:39 PM
  3. 'Larger Image' link - positioning???
    By stiggy100 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Apr 2010, 05:00 PM
  4. Image positioning in Email / Newsletter
    By derrick in forum General Questions
    Replies: 5
    Last Post: 27 Sep 2008, 09:27 AM
  5. image positioning on product pages
    By bexford in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 30 May 2007, 04:34 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