Results 1 to 4 of 4
  1. #1
    Join Date
    May 2007
    Posts
    18
    Plugin Contributions
    0

    Default Help installing an image plug-in.

    Hi, I am trying to install a product zoom feature called MAGICZOOM.

    The instructions read as follows.
    Code:
     <html>
     <head>
        <title>MagicZoom | Example</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="imagetoolbar" content="no" />
        <link rel="stylesheet" href="MagicZoom.css" type="text/css" media="screen" />
        <script src="mz-packed.js" type="text/javascript"></script>
     </head>
     <body>
        <a href="example_big.jpg" class="MagicZoom"><img src="example_small.jpg"/></a>
     </body>
      </html>
    I have set up the CSS and JS, by simply renaming them
    jscript_mz-packed.js & stylesheet_MagicZoom.css. Zen Cart seemed to have recongized them.

    The important bit is this...
    Code:
     <a href="example_big.jpg" class="MagicZoom"><img src="example_small.jpg"/></a>
    I think I should be editing my tpl_modules_main_product_image.php

    If so, where do I actually make the changes.
    I think one problem is I am using the imageSwap plug in by Dr.Byte.

    Here is my .php code from that page.

    PHP Code:

    <?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 $ahref_start zen_image($products_image_mediumaddslashes($products_name), MEDIUM_IMAGE_WIDTHMEDIUM_IMAGE_HEIGHT'name="imageSwap"') . $enlarge_text $ahref_end?>');
    //--></script>
    <noscript>
    <?php
      
      
    echo '<a href="' zen_href_link(FILENAME_POPUP_IMAGE'pID=' $_GET['products_id']) . '" class="MagicZoom' '" target="_blank">' zen_image($products_image_medium$products_nameMEDIUM_IMAGE_WIDTHMEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' TEXT_CLICK_TO_ENLARGE '</span></a>';

    ?>
    </noscript>
    </div>
    I think i need to rewrite this bit of code.
    PHP Code:
    document.write('<?php echo $ahref_start zen_image($products_image_mediumaddslashes($products_name), MEDIUM_IMAGE_WIDTHMEDIUM_IMAGE_HEIGHT'name="imageSwap"') . $enlarge_text $ahref_end?>');
     //--></script>
    so it roughly reads:
    <a href="$products_image_large" class="MagicZoom"><img src="$products_image_medium"/></a>


    But how do I write a hyper link to the larger image and then set the class to Magic Zoom? I am a novice with .php scripting.

    This is a cool plug-in, and I want to get it to work before I pay the 25 GBP for it.

    Thanks in advance,

    Alex

  2. #2
    Join Date
    May 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Help installing an image plug-in.

    magictoolbox.com/magiczoom_integration/

    That's magic zooms website. If anybody wants to pick up this plug in and check it out.

    It's wicked.

    A
    Last edited by Kim; 6 Mar 2009 at 05:57 PM.

  3. #3
    Join Date
    Sep 2004
    Posts
    335
    Plugin Contributions
    0

    Default Re: Help installing an image plug-in.

    have you manage to sort it out, as im after the answer to, and can i have a view of what site you install it on. thanks

  4. #4
    Join Date
    Jan 2009
    Posts
    16
    Plugin Contributions
    0

    Default Use the module for Zen Cart

    lucianman - Just download the module for Zen Cart. It does everything for you. Instruciotns here: magictoolbox.com/magiczoom_zen_cart/
    Last edited by Kim; 29 Aug 2009 at 03:45 PM.

 

 

Similar Threads

  1. v151 Help identifying 2 plug-ins
    By longstockings in forum General Questions
    Replies: 1
    Last Post: 13 Oct 2013, 09:21 PM
  2. v150 Installing plug in
    By janpete in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 28 Nov 2012, 11:32 PM
  3. Help with Ask a Question plug-in
    By dsimon in forum General Questions
    Replies: 1
    Last Post: 1 Jul 2012, 12:30 PM
  4. Installing Image Handler
    By SimpleeStated in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 1 Sep 2010, 01:30 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