Announcement

Collapse
No announcement yet.

MMUI PROD Page code needed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • lesliekirk
    replied
    Originally posted by lesliekirk View Post
    I need the MMUI code to add the Image Machine to the page. I'm thinking it should just be the Details Template and the Product Display Layout. Does anybody still have it?

    Many thanks!
    Leslie
    In case you are curious as to what I need, look at this link and help me figure out what is missing. The product image should be clickable to the full-size image.

    Code:
    <img id="main_image" src="graphics/en-US/mmui/dot.gif" alt="&mvte:product:name;">
    <ul id="thumbnails" class="thumbnails"></ul>
    <div id="closeup_div" class="closeup"><img id="closeup_image" src="graphics/en-US/mmui/dot.gif" alt="&mvte:product:name;"><div><a id="closeup_close">close</a></div></div>
    <mvt:item name="prod_imagemachine" param="body:product:id" />
    <div class="clear product-image-margin"></div>
    This is in the head tag

    Code:
    <mvt:item name="prod_imagemachine" param="head" />
    and this is in the Product Display Layout Image Machine Head Template

    Code:
    ImageMachine.prototype.ImageMachine_Generate_Thumb nail = function( thumbnail_image, main_image, closeup_image, type_code )
    {
    var thumbnail, span, img;
    
    thumbnail = document.createElement( 'li' );
    span = document.createElement( 'span' ); // to vertically center the thumbnail images
    
    thumbnail.appendChild( span );
    
    if ( typeof( thumbnail_image ) == 'string' && thumbnail_image.length > 0 )
    {
    img = document.createElement( 'img' );
    img.src = thumbnail_image;
    
    thumbnail.appendChild( img );
    }
    
    return thumbnail;
    }

    Am I missing some CSS or javascript?

    Leave a comment:


  • lesliekirk
    started a topic MMUI PROD Page code needed

    MMUI PROD Page code needed

    I need the MMUI code to add the Image Machine to the page. I'm thinking it should just be the Details Template and the Product Display Layout. Does anybody still have it?

    Many thanks!
    Leslie
Working...
X