Jump to content

Why photo slider can' t display links to the listed product?


adrian24a

Recommended Posts

Hi,

 

Sorry for my English. I have a problem with the predefined "Slider" module. Does not display a link to the product that is displayed in it and therefore does not point to a product after clicking. Everything is done so despite the fact that in the back of the module for each image is assigned a link to each product.

 

http://katalog.arkas.pl

 

How can I fix this error?

 

Link to comment
Share on other sites

What PS 1.7.x version do you use?

 

I remember that I noticed this bug in some earlier versions, but in 1.7.1.1 it should be fixed.

 

You can fix it by replacing the code that you have in:

 

/your_theme/modules/ps_imageslider/views/templates/hook/slider.ptl

{if $homeslider.slides}
  <div id="carousel" data-ride="carousel" class="carousel slide hidden-sm-down" data-interval="{$homeslider.speed}" data-wrap="{(string)$homeslider.wrap}" data-pause="{$homeslider.pause}">
    <ul class="carousel-inner" role="listbox">
      {foreach from=$homeslider.slides item=slide name='homeslider'}
        <li class="carousel-item {if $smarty.foreach.homeslider.first}active{/if}">
          <a href="{$slide.url}">
            <figure>
              <img src="{$slide.image_url}" alt="{$slide.legend|escape}">
              {if $slide.title || $slide.description}
                <figcaption class="caption">
                  <h2 class="display-1 text-uppercase">{$slide.title}</h2>
                  <div class="caption-description">{$slide.description nofilter}</div>
                </figcaption>
              {/if}
            </figure>
          </a>
        </li>
      {/foreach}
    </ul>
    <div class="direction">
      <a class="left carousel-control" href="#carousel" role="button" data-slide="prev">
        <span class="icon-prev hidden-xs" aria-hidden="true">
          <i class="material-icons"></i>
        </span>
        <span class="sr-only">{l s='Previous' d='Shop.Theme'}</span>
      </a>
      <a class="right carousel-control" href="#carousel" role="button" data-slide="next">
        <span class="icon-next" aria-hidden="true">
          <i class="material-icons"></i>
        </span>
        <span class="sr-only">{l s='Next' d='Shop.Theme'}</span>
      </a>
    </div>
  </div>
{/if}
Edited by Andrej Stas (see edit history)
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...