Jump to content

Url destination on Brand Logo Module


larpstore

Recommended Posts

I wanted to change the destination Url of the Brand Logo module. At the moment each brand image points to its own manufactures page (getmanufacturerLink($brand['id_manufacturer'). I wish to have all images pointing to my store page instead. How do I go about doing this? Thanks

<section class="brands">
     {if $brands}
    
   {assign var='sliderFor' value=5} <!-- Define Number of product for SLIDER -->
   {assign var='brandCount' value=count($brands)}
 
   {if $slider == 1 && $brandCount >= $sliderFor}
    <div class="customNavigation">
     <a class="btn prev brand_prev">&nbsp;</a>
     <a class="btn next brand_next">&nbsp;</a>
    </div>

 <div class="products">
    <ul id="brand-carousel" class="tm-carousel product_list">
   {else}
    <ul id="brand-grid" class="brand_grid product_list grid row gridcount">
   {/if}
 
   {foreach from=$brands item=brand name=brand_list}
    <li class="{if $slider == 1 && $brandCount >= $sliderFor}item{else}product_item col-xs-12 col-sm-4 col-md-3{/if}">
     <div class="brand-image">
     <a href="{$link->getmanufacturerLink($brand['id_manufacturer'], $brand['link_rewrite'])}" title="{$brand.name}">
      <img src="{$link->getManufacturerImageLink($brand['id_manufacturer'])}" alt="{$brand.name}" />
     </a>
     </div>
     {if $brandname}
      <span class="h3 product-title" itemprop="name">
       <a class="product-name" itemprop="url"  href="{$link->getmanufacturerLink($brand['id_manufacturer'], $brand['link_rewrite'])}" title="{$brand.name}">{$brand.name}</a>
      </span>
     {/if}
    </li>
   {/foreach}
    
   </ul>
  {else}
   <p>{l s='No brand' d='Shop.Theme.Global'}</p>
  {/if}
 </div>
</section>

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...