Hedera Posted August 29, 2012 Share Posted August 29, 2012 Dear Sir, I have a problem with my featured slider on a home page. I have only 3 products and slider shows 2 slides, one with my products and second blank slide. Please see http://www.ivan.apisport.com.hr/ How to fix it. Thank you for your help. Ioannes Here is a code of module: <script type="text/javascript" src="{$js_dir}jquery.anythingslider.js"></script> <script type="text/javascript"> jQuery(document).ready(function(){ function formatText(index, panel) { return index + ""; } jQuery(function () { jQuery('.anythingSlider').anythingSlider({ easing: "easeInOutBack", // Anything other than "linear" or "swing" requires the easing plugin autoPlay: true, // This turns off the entire FUNCTIONALY, not just if it starts running or not. delay: 11000, // How long between slide transitions in AutoPlay mode startStopped: false, // If autoPlay is on, this can force it to start stopped animationTime: 1000, // How long the slide transition takes hashTags: false, // Should links change the hashtag in the URL? buildNavigation: true, // If true, builds and list of anchor links to link to each slide pauseOnHover: true, // If true, and autoPlay is enabled, the show will pause on hover startText: false, // Start text stopText: false, // Stop text navigationFormatter: formatText // Details at the top of the file on this use (advanced use) }); jQuery("#slide-jump").click(function(){ jQuery('.anythingSlider').anythingSlider(6); }); }); }); </script> <!-- MODULE Home Featured Products --> <div id="featured_products"> <h4>{l s='Featured products' mod='homefeatured'}</h4> {assign var='nbItemsPerLine' value=3} {if isset($products) AND $products} <div class="block_content" > <div class="anythingSlider"> <div class="wrapper-box"> <ul class="box-product"> <li> {foreach from=$products item=product name=homeFeaturedProducts} <div class="ajax_block_product"> <a class="product_image" href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.name|escape:html:'UTF-8'}" /></a> <div> <h5><a class="product_link" href="{$product.link}" title="{$product.name|truncate:32:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:25:'...'|escape:'htmlall':'UTF-8'}</a></h5> <p class="product_desc"><a class="product_descr" href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:80:'...'}</a></p> {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span>{else}<div style="height:21px;"></div>{/if} {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a> {else} <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span> {/if} {else} <div style="height:23px;"></div> {/if} <a class="button" href="{$product.link}" title="{l s='View' mod='homefeatured'}"><span><span>{l s='View' mod='homefeatured'}</span></span></a> </div> </div> {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0} </li><li> {/if} {/foreach} </li> </ul> </div></div></div> {else} <p>{l s='No featured products' mod='homefeatured'}</p> {/if} </div> <!-- /MODULE Home Featured Products --> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now