Jump to content

rollover image


Recommended Posts

Hi i need to make the pruduct image in product- list change to a different one on roll over any help would be great i list the image code below.



{$category->name|escape:'htmlall':'UTF-8'}
{if $products}
{include file=$tpl_dir./product-sort.tpl}
{/if}



  • <!-- MODULE Home Featured Products -->
    {if isset($p) AND $p}
    {if $smarty.get.id_category|intval}
    {assign var='requestPage' value=$link->getPaginationLink('category', $category, false, false, true, false)}
    {assign var='requestNb' value=$link->getPaginationLink('category', $category, true, false, false, true)}
    {elseif $smarty.get.id_manufacturer|intval}
    {assign var='requestPage' value=$link->getPaginationLink('manufacturer', $manufacturer, false, false, true, false)}
    {assign var='requestNb' value=$link->getPaginationLink('manufacturer', $manufacturer, true, false, false, true)}
    {elseif $smarty.get.id_supplier|intval}
    {assign var='requestPage' value=$link->getPaginationLink('supplier', $supplier, false, false, true, false)}
    {assign var='requestNb' value=$link->getPaginationLink('supplier', $supplier, true, false, false, true)}
    {else}
    {assign var='requestPage' value=$link->getPaginationLink(false, false, false, false, true, false)}
    {assign var='requestNb' value=$link->getPaginationLink(false, false, true, false, false, true)}
    {/if}
    {if isset($orderby) AND isset($orderway)}
    <!-- Sort products -->
    {if $smarty.get.id_category|intval}
    {assign var='request' value=$link->getPaginationLink('category', $category, false, true)}
    {elseif $smarty.get.id_manufacturer|intval}
    {assign var='request' value=$link->getPaginationLink('manufacturer', $manufacturer, false, true)}
    {elseif $smarty.get.id_supplier|intval}
    {assign var='request' value=$link->getPaginationLink('supplier', $supplier, false, true)}
    {else}
    {assign var='request' value=$link->getPaginationLink(false, false, false, true)}
    {/if}
    <!-- /Sort products -->
    {/if}

    <!-- Pagination -->
    {if $start!=$stop}

    {/if}
    {/if}

<!-- /Pagination -->
{$HOOK_LEFT_COLUMN}


  • {if isset($products) AND $products}
    {assign var='liHeight' value=360}
    {assign var='nbItemsPerLine' value=5}
    {assign var='nbLi' value=$products|@count}
    {assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil}
    {assign var='ulHeight' value=$nbLines*$liHeight}

    • {foreach from=$products item=product name=products}
      {assign var='productLink' value=$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)}


    • {if $product.new == 1}{l s='NEW'}{/if}

      {$product.legend|escape:htmlall:'UTF-8'}


      {$product.name|truncate:30|escape:'htmlall':'UTF-8'}


      {displayWtPrice p=$product.price}



      {/foreach}

    {else}

{l s='No featured products' mod='homefeatured'}


{/if}

<!-- /MODULE Home Featured Products -->
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...