Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2011
    Posts
    226
    Plugin Contributions
    0

    Default Problem with tpl_modules_main_product_image.php

    Hi

    I tried to install Fual Slimbox. (I uninstalled lightbox completely first)
    I merged the additional images file. I also merged the tpl_modules_main_product_image.php but for some reason after that merge my product info didn't display at all...

    You can see my website here:
    http://www.pcselect.co.za

    This is what tpl_modules_main_product_image.php looks like:
    PHP Code:
    <?php
    /**
     * Module Template
     *
     * @package templateSystem
     * @copyright Copyright 2007 FUAL
     * @copyright Portions Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_modules_main_product_image.php 2007-12-04 btyler $
     */
    ?>
    <?php 
    require(DIR_WS_MODULES zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?> 
    <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_mediumaddslashes($products_name), MEDIUM_IMAGE_WIDTHMEDIUM_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_nameMEDIUM_IMAGE_WIDTHMEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' TEXT_CLICK_TO_ENLARGE '</span></a>';
    ?>
        <script language="javascript" type="text/javascript"><!--
        document.write('<?php echo $fualSlimboxContent?>' );
        //--></script>
        <noscript>
        <?php
        
    // If they can't be bothered to get a decent browser or turn js on then they only deserve the default behaviour.
        
    echo '<a href="' zen_href_link(FILENAME_POPUP_IMAGE'pID=' $_GET['products_id']) . '" target="_blank">' zen_image($products_image_medium$products_nameMEDIUM_IMAGE_WIDTHMEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' TEXT_CLICK_TO_ENLARGE '</span></a>';
    ?>
        </noscript>
    <?php         
    } else {
    ?>
    <!-- bof Zen Slimbox v0.1 btyler 2007-12-04 -->
        <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_mediumaddslashes($products_name), MEDIUM_IMAGE_WIDTHMEDIUM_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_nameMEDIUM_IMAGE_WIDTHMEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' TEXT_CLICK_TO_ENLARGE '</span></a>';
        
    ?>
        </noscript>
    <?php ?>
    </div>
    Does something not look right?

    Thanks
    S

  2. #2
    Join Date
    Sep 2011
    Posts
    226
    Plugin Contributions
    0

    Default Re: Problem with tpl_modules_main_product_image.php

    edit: I am running Image Handler v3

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Problem with tpl_modules_main_product_image.php

    for some reason after that merge my product info didn't display at all...
    I see product info when viewing

    /index.php?main_page=product_info&cPath=4_2_46&products_id=51
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Aug 2010
    Location
    Egypt - USA
    Posts
    86
    Plugin Contributions
    0

    Default Re: Problem with tpl_modules_main_product_image.php

    i think you still have lightbox and i can see product info display at all your site pages normally.
    I have small question for you plz ... where you get the facebook, tweet, etc that i can see them under your products main image ??what is the mod name and link to get it plz

  5. #5
    Join Date
    Sep 2011
    Posts
    226
    Plugin Contributions
    0

    Default Re: Problem with tpl_modules_main_product_image.php

    Quote Originally Posted by kobra View Post
    I see product info when viewing

    /index.php?main_page=product_info&cPath=4_2_46&products_id=51
    I changed the site back to lightbox. Basically all I would like to know is how to make it so that when a person clicks on an image, the lightbox will come up, but when a person click out of the lightbox (in the darkened area) the lightbox will disappear along with the darkened area.

    Quote Originally Posted by thunder2010 View Post
    i think you still have lightbox and i can see product info display at all your site pages normally.
    I have small question for you plz ... where you get the facebook, tweet, etc that i can see them under your products main image ??what is the mod name and link to get it plz
    Yes I installed it again.

    The add on is http://www.addthis.com/

    I am just not sure why the "Like" button doesn't display the bubble unless it has more than 0 like.


    Thanks
    S

 

 

Similar Threads

  1. v155 problem with admin/users.php and admin/profiles.php??
    By carlwhat in forum Upgrading to 1.5.x
    Replies: 5
    Last Post: 29 Mar 2016, 08:52 PM
  2. Having problem with order.php and checkout_process.php with OLD Zen Cart v1.2.3
    By wolfbane01 in forum Managing Customers and Orders
    Replies: 0
    Last Post: 28 Jul 2010, 01:56 AM
  3. Problem with 'define_page_not_found.php'
    By perfect concepts in forum Basic Configuration
    Replies: 8
    Last Post: 30 Apr 2010, 07:04 PM
  4. How Would i Fuse These 2 tpl_modules_main_product_image.php?
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 May 2009, 11:57 AM
  5. How to change tpl_modules_main_product_image
    By xordox in forum General Questions
    Replies: 2
    Last Post: 24 Oct 2008, 10:46 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