zaglebie Posted May 20, 2013 Share Posted May 20, 2013 I've attached my products list - i have more than 10 products in shop but list is showing only 10, how can i add third row so i can expand to 15 or more ? Here is code of my product-list.tpl {if isset($products)} <!-- Products list --> <ul id="product_list" class="clear"> {foreach from=$products item=product name=products} <li class="ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if} {if ($smarty.foreach.products.index % 5) == 0}alternate_item{else}item{/if} clearfix"> <div class="product_img"> <a class="product_img_link" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="80" height="90"{/if} /></a> </div> <div class="center_block"> <br> <div id="nazwa"><a class="product_link" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|truncate:40:'...'|escape:'htmlall':'UTF-8'}</a></div> <!-- <p class="product_desc"><a class="product_descr" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:360:'......'|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'}">{$product.description_short|truncate:100:'......'|strip_tags:'UTF-8'}</a></p> --> </div> <div class="right_block"> {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="on_sale">{l s='On sale!'}</span> {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="discount">{l s='Cena promocyjna!'}</span> {/if} {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span>{/if} {if isset($product.online_only) && $product.online_only}<span class="online_only">{l s='Online only!'}</span>{/if} {/if} {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && !$PS_CATALOG_MODE} {/if} <a class="exclusive" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='Zobacz'}">{l s='Zobacz'}</a> {if isset($comparator_max_item) && $comparator_max_item} <p class="compare checkbox"><input type="checkbox" onclick="checkForComparison({$comparator_max_item})" class="comparator" id="comparator_item_{$product.id_product}" value="{$product.id_product}" /> <label for="comparator_item_{$product.id_product}">{l s='Select to compare'}</label></p> {/if} </div> </li> {/foreach} </ul> <!-- /Products list --> {/if} and product-list.tpl lines from global.css: /* ????? product-list.tpl ????? */ ul#product_list {padding:10px 0 0 10px; margin-bottom:60px; float:left; width:980px !important;} ul#product_list #nazwa {padding:0px 7px; text-align:center} ul#product_list li {height:295px; width:191px; float:left; border-bottom:1px dotted #fbbbd4; border-left:1px dotted #fbbbd4;} ul#product_list li div.product_img {width:100px;height:100px;float:left;padding:12px 45px 0 45px; margin-bottom:10px; margin-top:10px} ul#product_list li div.product_img a {} ul#product_list li div.center_block .nazwa {padding:3px 0 0 0; width:191px; text-align: center; font-size:10px !important;} ul#product_list li div.center_block p.product_desc {padding:10px 0 0 0;} ul#product_list li div.right_block {width:191px;height:109px;float:left; text-align:center; padding:18px 0px 0px 0px;} ul#product_list li div.right_block span.on_sale, ul#product_list li div.right_block span.discount {display:block;padding:6px 0 8px 0;font:bold 12px "Arial";color:#4e2439;text-transform:uppercase;} ul#product_list li div.right_block span.price {display:block;margin:0px 0 0 0;text-align: center;font:bold 20px "Arial";color:#f8146e;} ul#product_list li div.right_block span.online_only {display:block;margin:20px 0 0 0;color:#888;} ul#product_list li div.right_block .exclusive {margin:16px 0 4px 35px;} ul#product_list li div.right_block p.compare {height:15px;padding:15px 0 0 0;} *+html ul#product_list li div.right_block p.compare input {margin-right:-4px;} Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted May 20, 2013 Share Posted May 20, 2013 Go to Preferences > Products and change the number in Products per page to whatever you wish to display. Hope that helps! Marty Shue Link to comment Share on other sites More sharing options...
BriceVanZeg Posted May 20, 2013 Share Posted May 20, 2013 You can manage this in preferences >> products >> products by page By default it s 10, you can put what you like. Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted May 20, 2013 Share Posted May 20, 2013 You can manage this in preferences >> products >> products by page By default it s 10, you can put what you like. Looks like we were cross posting. Marty Shue Link to comment Share on other sites More sharing options...
BriceVanZeg Posted May 20, 2013 Share Posted May 20, 2013 (edited) Looks like we were cross posting. Marty Shue Exact, look like.! Full, fast and quick service on presta forum.! I hope he will found with this double answer.. Edited May 20, 2013 by BriceVanZeg (see edit history) Link to comment Share on other sites More sharing options...
benjamin utterback Posted May 20, 2013 Share Posted May 20, 2013 I wonder if he did any custom modifications to make that PrestaShop preference obsolete. It is quite clear what to do from the Preferences>Products page. Keep us posted and let us know if the suggestions here solved the problem. Link to comment Share on other sites More sharing options...
Totti Posted May 21, 2013 Share Posted May 21, 2013 How do I give the client the possibility to change this option ? Link to comment Share on other sites More sharing options...
zaglebie Posted May 21, 2013 Author Share Posted May 21, 2013 works well - thanks ! Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted May 21, 2013 Share Posted May 21, 2013 works well - thanks ! You are welcome! You can go ahead and mark this with [sOLVED]. Marty Shue Link to comment Share on other sites More sharing options...
vekia Posted May 21, 2013 Share Posted May 21, 2013 i marked this thread as solved. here is an instruction about "how to mark thread as solved" [sOLVED] Topic If, after posting a topic, you find a solution to your problem, please indicate it in your post and describe the solution. There is nothing more frustrating for users with the same issue who come across your post "all is good, I fixed it..." without an explanation of how to fix it. Furthermore if you are the author of the topic for which a solution has been found, please edit your topic title to mark it as [sOLVED]. To mark a topic as [solved] : - Edit the first post of your topic by clicking on the "Edit" button, - Click on the "Use full editor" button, - Add the "[solved]" string at the beginning of your topic title and click on the "Submit Modified Post" button. Link to comment Share on other sites More sharing options...
Recommended Posts