Atif.majeed Posted February 6, 2014 Share Posted February 6, 2014 Hi I want to show more than 6 Featured items on my store's home page but unable to do that. Please help me to find the solution. Here is the link of my Shop http://oakleyoverstock.com/index.php Presently there are 6 items in Home Featured Product. I want to increase this quantity to 12. How can I do Please help me! From inside Home Featured module it does not work . Kind Regards Atif Link to comment Share on other sites More sharing options...
vekia Posted February 6, 2014 Share Posted February 6, 2014 homefeatuerd module, by default, has got possibility to change quantity of products: if it doesnt work, it probably mean that: 1) it's a cache problem, in this case please clear cache in your shop and recompile theme 2) module that you use works a bit diffferent, in this case please show contents of your modules tpl file another thing: are you 100% sure that you've got enough products associated with Home category? Link to comment Share on other sites More sharing options...
Atif.majeed Posted February 6, 2014 Author Share Posted February 6, 2014 Thank you Sir giving the attention to my problem. I did everything but it do not work. yes there are more than 12 product to show on home page.here is my tpl ------------------------ <!-- MODULE Home Featured Products --> <div id="featured-products_block_center" class="block clearfix products_block"> <div class="leo_title"><h3><span>{l s='Home featured' mod='homefeatured'}</span></h3></div> {if isset($products) AND $products} <div class="block_content"> {assign var='liHeight' value=140} {assign var='nbItemsPerLine' value=1} {assign var='nbLi' value=$limit} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} <div class="button-carousel carousel slide" id="{$tabname}" > {if count($products)>$limit} <a class="carousel-control left" href="#{$tabname}" data-slide="prev">‹</a> <a class="carousel-control right" href="#{$tabname}" data-slide="next">›</a> {/if} <div class="carousel-inner"> {$mproducts=array_chunk($products,$limit)} {foreach from=$mproducts item=iproducts name=mypLoop} <div class="item {if $smarty.foreach.mypLoop.first}active{/if}"> {foreach from=$iproducts item=product name=homeFeaturedProducts} {if $product@iteration%$columnspage==1&&$columnspage>1} <div class="row-fluid"> {/if} {math equation="(total%perLine)" total=$smarty.foreach.homeFeaturedProducts.total perLine=$nbItemsPerLine assign=totModulo} {if $totModulo == 1}{assign var='totModulo' value=$nbItemsPerLine}{/if} <div class="p-item span4 ajax_block_product product_block "> <div class="product-container clearfix"> <div class="center_block"> <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='homefeatured'}</span>{/if}</a> </div> <div class="right_block"> <h3 class="s_title_block"><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:25:'...'|escape:'htmlall':'UTF-8'}</a></h3> <div class="left_block"> <div class="product_desc">{$product.description_short|strip_tags|truncate:80:'...'}</div> </div> {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <p class="price_container"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price pull-left">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span>{/if} <a class="pull-right lnk_view" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a> </p> {/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="button exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart')}?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="button exclusive">{l s='Add to cart' mod='homefeatured'}</span> {/if} {/if} <div class="product_bottom"></div> </div> </div> </div> {if ($product@iteration%$columnspage==0||$smarty.foreach.homeFeaturedProducts.last)&&$columnspage>1} </div> {/if} {/foreach} </div> {/foreach} </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...
vekia Posted February 7, 2014 Share Posted February 7, 2014 this is tpl file from module directory? or from theme dir? (themes/YOUR_THEME/modules/homefeatured) ? if second file exists, please paste contents of it Link to comment Share on other sites More sharing options...
Atif.majeed Posted February 7, 2014 Author Share Posted February 7, 2014 This is my theme's home featured module. there is no 2nd file here in the.I have posted 1. prestashop/module/homefeature and 2. theme/mytheme/module/homefeature Thanks prestshop-module-homefeatured.zip theme-mytheme-module-homefeatured.zip Link to comment Share on other sites More sharing options...
PascalVG Posted February 8, 2014 Share Posted February 8, 2014 Hi Atif, The homefeatured.tpl file of your theme is (heavily) modified. I think you can change the amount of products shown direclty in the tpl file: line 50: {assign var='limit' value=6} change this 6 to 12 and try again. My 2 cents, pascal. 1 Link to comment Share on other sites More sharing options...
Atif.majeed Posted February 8, 2014 Author Share Posted February 8, 2014 Thank you very very much Sir PascalVG, it works now. I appreciate your quick response. May God Bless you! Best Regards Atif Link to comment Share on other sites More sharing options...
Recommended Posts