Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Posts
    14
    Plugin Contributions
    0

    Default multiple image layout questions

    I have a client who wants a very specific layout on the product page. I've seen high-end e-commerce sites that work this way, but I'm not even sure it's possible with Zen-Cart... I'm searched through the forum and the documentation and I can't find anything that seems relevant.

    Here's what she wants:

    (1) On the product page, show a LARGE image right on the page... no "click to enlarge"

    (2) Also show THUMBNAILS of additional images. Clicking the thumbnails should replace the LARGE image

    Any pointers on how this could be accomplished?

    Thanks very much!

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: multiple image layout questions

    Zen Cart uses the 'medium image' size on the product info page. The size of the 'medium image' can be set in admin>>configuration>>images to whatever you want it to be (assuming that your uploaded images are big enough).

    Look at tpl_modules_main_product_image.php (includes/templates/yourtemplate/templates) It is fairly straight forward how to disable the pop-up and leave only the image.

    You are looking at:

    Code:
    <div id="productMainImage" class="centeredContent back">
    <script language="javascript" type="text/javascript"><!--
    document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>');
    //--></script>
    <noscript>
    <?php
      echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';
    ?>
    </noscript>
    </div>
    Change it to something like:

    Code:
    <div id="productMainImage" class="centeredContent back">
    <?php
      echo zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT);
    ?>
    </div>
    Putting the image where you want will involve changing the line:

    Code:
    <div id="productMainImage" class="centeredContent back">
    to

    Code:
    <div id="productMainImage" class="centeredContent forward">
    There is a quite a bit more programming involved in getting the additional image thumbnails to behave the way you want but perhaps someone has done it before.....

    Fingers crossed.

 

 

Similar Threads

  1. Replies: 3
    Last Post: 10 Jan 2013, 05:57 AM
  2. Multiple product image layout control
    By michaelchu in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 3 Dec 2011, 05:50 PM
  3. A couple of questions. (Layout of image and centering)
    By RiemenDesign in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 11 Dec 2008, 10:28 PM
  4. Multiple Questions
    By Dagger in forum Customization from the Admin
    Replies: 2
    Last Post: 29 Jun 2008, 12:40 AM
  5. Multiple Images Questions
    By manifest in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 3 Mar 2008, 10:44 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