Products on homepage: get more than 12 products Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Show products with specific attribute on cms pageHow to create a block title?how to make a simple list of products?only one product showing in listCatalog list view is limited to 5 results somehowDisplay category products on homepage using carousel sliderTrying to show more products with block type="catalog/product_listMagento 1.8.0.0 Shows all Product in Category regardless of limit.How to add new products block to the product view page using local.xmlProduct list by category in CMS pageproduct_count dont work when calling product to frontpage

What happened to Viserion in Season 7?

When I export an AI 300x60 art board it saves with bigger dimensions

How long can a nation maintain a technological edge over the rest of the world?

Has a Nobel Peace laureate ever been accused of war crimes?

Why does the Cisco show run command not show the full version, while the show version command does?

Can gravitational waves pass through a black hole?

Philosophers who were composers?

How would you suggest I follow up with coworkers about our deadline that's today?

Married in secret, can marital status in passport be changed at a later date?

Is a self contained air-bullet cartridge feasible?

Bright yellow or light yellow?

Did war bonds have better investment alternatives during WWII?

Why did Europeans not widely domesticate foxes?

How did Elite on the NES work?

How would it unbalance gameplay to rule that Weapon Master allows for picking a fighting style?

What was Apollo 13's "Little Jolt" after MECO?

TV series episode where humans nuke aliens before decrypting their message that states they come in peace

Was Objective-C really a hindrance to Apple software development?

Will I lose my paid in full property

Where did Arya get these scars?

Why aren't road bicycle wheels tiny?

Why doesn't the university give past final exams' answers?

How to translate "red flag" into Spanish?

What does the black goddess statue do and what is it?



Products on homepage: get more than 12 products



Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Show products with specific attribute on cms pageHow to create a block title?how to make a simple list of products?only one product showing in listCatalog list view is limited to 5 results somehowDisplay category products on homepage using carousel sliderTrying to show more products with block type="catalog/product_listMagento 1.8.0.0 Shows all Product in Category regardless of limit.How to add new products block to the product view page using local.xmlProduct list by category in CMS pageproduct_count dont work when calling product to frontpage



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















Im trying to show a few products on my homepage



I got pretty far using this code:



block type="catalog/product_list" name="product_list" category_id="74" column_count="5" num_products="24" mode="grid" template="catalog/product/list.phtml"


I also added a display: none; to the css to remove the option and filter thing from the product vieuw block. to let it look more natrual on the homepage



<style><!--
.cms-home .pager, .cms-home .sorter, .toolbar, .pager
display: none;

--></style>


But my problem is: i can't get more products on it as my average 12.



I already tried:



1>> I tried to let the catolog page use an diffrent "show amount" so instead of 12 i changed it to use 36 with the custom xml bellow. this worked on the catolog path (wich is now offline) but does not work with my block on the homepage (also tried to add this custom xml to the homepage)



<reference name="product_list_toolbar">
<action method="setDefaultGridPerPage">
<limit>36</limit></action></reference>


2>> I tried alot of extra block options but none of them seems to take effect. few of them are bellow: (there are a few more as this but i cant find them anymore, aslo tried it on amount 36)



products_per_page="50" products_count="50" count="9" limit="9" num_products="24"


3>> edit also tried the following blocks



<p>block type="catalog/product_list" name="product_list" category_id="74" column_count="5" count="24" limit="24" mode="grid" template="catalog/product/list.phtml"</p>
<p>block type="catalog/product_list" name="product_list" category_id="74" column_count="6" count="6" limit="4" mode="grid" template="catalog/product/list.phtml"</p>
<p>block type="catalog/product_list" name="product_list" alias="products_homepage" category_id="74" template="catalog/product/list.phtml"</p>
<p>block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="74" column_count="6" products_per_page="50" products_count="50" count="9" limit="9" num_products="24" template="catalog/product/list.phtml"</p>
<p>block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="9" template="catalog/product/list.phtml"</p>


4>> edit Tried the following custom xml code:



<reference name="content">
<!-- Overwrite the view template -->
<block type="catalog/product_list" template="catalog/product/list.phtml">
<action method="setLimit">36</action>
</block>




5>> edit Products per page on grid allowed values.
I got 12,24,36 because i need column=3 on my product page with 4 bellow each other.



question: Does anyone knows how to get more as 12 products with this block? or get around it on a different way.










share|improve this question
























  • try this block type="catalog/product_list" name="product_list" category_id="3" column_count="6" count="6" limit="4" mode="grid" template="catalog/product/list.phtml"

    – Klettseb
    May 6 '16 at 8:19











  • hello klettseb, i tried your block and it shows 2 rows of 6 (so still 12 in total and not the 19 as are in the category_id at this moment). I also tried to change some of it in this: column_count="5" count="24" limit="24" but still only showing 12 in total.

    – Marco de Wit
    May 6 '16 at 8:32












  • What if you dont use a number in there? like this block type="catalog/product_list" name="product_list" alias="products_homepage" category_id="9" template="catalog/product/list.phtml"

    – Klettseb
    May 6 '16 at 8:35











  • hello Klettseb, just tried your last block and it shows my normal catogory page (without the top part ofcorse becasue of my custom css on the homepage) so it shows 3 X 4 so still 12 total.

    – Marco de Wit
    May 6 '16 at 8:39











  • in System > configuration > catalogue > Front End > Products per Page on Grid Allowed Values what values do you have?

    – Ahmed Elawadi
    May 6 '16 at 10:58

















2















Im trying to show a few products on my homepage



I got pretty far using this code:



block type="catalog/product_list" name="product_list" category_id="74" column_count="5" num_products="24" mode="grid" template="catalog/product/list.phtml"


I also added a display: none; to the css to remove the option and filter thing from the product vieuw block. to let it look more natrual on the homepage



<style><!--
.cms-home .pager, .cms-home .sorter, .toolbar, .pager
display: none;

--></style>


But my problem is: i can't get more products on it as my average 12.



I already tried:



1>> I tried to let the catolog page use an diffrent "show amount" so instead of 12 i changed it to use 36 with the custom xml bellow. this worked on the catolog path (wich is now offline) but does not work with my block on the homepage (also tried to add this custom xml to the homepage)



<reference name="product_list_toolbar">
<action method="setDefaultGridPerPage">
<limit>36</limit></action></reference>


2>> I tried alot of extra block options but none of them seems to take effect. few of them are bellow: (there are a few more as this but i cant find them anymore, aslo tried it on amount 36)



products_per_page="50" products_count="50" count="9" limit="9" num_products="24"


3>> edit also tried the following blocks



<p>block type="catalog/product_list" name="product_list" category_id="74" column_count="5" count="24" limit="24" mode="grid" template="catalog/product/list.phtml"</p>
<p>block type="catalog/product_list" name="product_list" category_id="74" column_count="6" count="6" limit="4" mode="grid" template="catalog/product/list.phtml"</p>
<p>block type="catalog/product_list" name="product_list" alias="products_homepage" category_id="74" template="catalog/product/list.phtml"</p>
<p>block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="74" column_count="6" products_per_page="50" products_count="50" count="9" limit="9" num_products="24" template="catalog/product/list.phtml"</p>
<p>block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="9" template="catalog/product/list.phtml"</p>


4>> edit Tried the following custom xml code:



<reference name="content">
<!-- Overwrite the view template -->
<block type="catalog/product_list" template="catalog/product/list.phtml">
<action method="setLimit">36</action>
</block>




5>> edit Products per page on grid allowed values.
I got 12,24,36 because i need column=3 on my product page with 4 bellow each other.



question: Does anyone knows how to get more as 12 products with this block? or get around it on a different way.










share|improve this question
























  • try this block type="catalog/product_list" name="product_list" category_id="3" column_count="6" count="6" limit="4" mode="grid" template="catalog/product/list.phtml"

    – Klettseb
    May 6 '16 at 8:19











  • hello klettseb, i tried your block and it shows 2 rows of 6 (so still 12 in total and not the 19 as are in the category_id at this moment). I also tried to change some of it in this: column_count="5" count="24" limit="24" but still only showing 12 in total.

    – Marco de Wit
    May 6 '16 at 8:32












  • What if you dont use a number in there? like this block type="catalog/product_list" name="product_list" alias="products_homepage" category_id="9" template="catalog/product/list.phtml"

    – Klettseb
    May 6 '16 at 8:35











  • hello Klettseb, just tried your last block and it shows my normal catogory page (without the top part ofcorse becasue of my custom css on the homepage) so it shows 3 X 4 so still 12 total.

    – Marco de Wit
    May 6 '16 at 8:39











  • in System > configuration > catalogue > Front End > Products per Page on Grid Allowed Values what values do you have?

    – Ahmed Elawadi
    May 6 '16 at 10:58













2












2








2








Im trying to show a few products on my homepage



I got pretty far using this code:



block type="catalog/product_list" name="product_list" category_id="74" column_count="5" num_products="24" mode="grid" template="catalog/product/list.phtml"


I also added a display: none; to the css to remove the option and filter thing from the product vieuw block. to let it look more natrual on the homepage



<style><!--
.cms-home .pager, .cms-home .sorter, .toolbar, .pager
display: none;

--></style>


But my problem is: i can't get more products on it as my average 12.



I already tried:



1>> I tried to let the catolog page use an diffrent "show amount" so instead of 12 i changed it to use 36 with the custom xml bellow. this worked on the catolog path (wich is now offline) but does not work with my block on the homepage (also tried to add this custom xml to the homepage)



<reference name="product_list_toolbar">
<action method="setDefaultGridPerPage">
<limit>36</limit></action></reference>


2>> I tried alot of extra block options but none of them seems to take effect. few of them are bellow: (there are a few more as this but i cant find them anymore, aslo tried it on amount 36)



products_per_page="50" products_count="50" count="9" limit="9" num_products="24"


3>> edit also tried the following blocks



<p>block type="catalog/product_list" name="product_list" category_id="74" column_count="5" count="24" limit="24" mode="grid" template="catalog/product/list.phtml"</p>
<p>block type="catalog/product_list" name="product_list" category_id="74" column_count="6" count="6" limit="4" mode="grid" template="catalog/product/list.phtml"</p>
<p>block type="catalog/product_list" name="product_list" alias="products_homepage" category_id="74" template="catalog/product/list.phtml"</p>
<p>block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="74" column_count="6" products_per_page="50" products_count="50" count="9" limit="9" num_products="24" template="catalog/product/list.phtml"</p>
<p>block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="9" template="catalog/product/list.phtml"</p>


4>> edit Tried the following custom xml code:



<reference name="content">
<!-- Overwrite the view template -->
<block type="catalog/product_list" template="catalog/product/list.phtml">
<action method="setLimit">36</action>
</block>




5>> edit Products per page on grid allowed values.
I got 12,24,36 because i need column=3 on my product page with 4 bellow each other.



question: Does anyone knows how to get more as 12 products with this block? or get around it on a different way.










share|improve this question
















Im trying to show a few products on my homepage



I got pretty far using this code:



block type="catalog/product_list" name="product_list" category_id="74" column_count="5" num_products="24" mode="grid" template="catalog/product/list.phtml"


I also added a display: none; to the css to remove the option and filter thing from the product vieuw block. to let it look more natrual on the homepage



<style><!--
.cms-home .pager, .cms-home .sorter, .toolbar, .pager
display: none;

--></style>


But my problem is: i can't get more products on it as my average 12.



I already tried:



1>> I tried to let the catolog page use an diffrent "show amount" so instead of 12 i changed it to use 36 with the custom xml bellow. this worked on the catolog path (wich is now offline) but does not work with my block on the homepage (also tried to add this custom xml to the homepage)



<reference name="product_list_toolbar">
<action method="setDefaultGridPerPage">
<limit>36</limit></action></reference>


2>> I tried alot of extra block options but none of them seems to take effect. few of them are bellow: (there are a few more as this but i cant find them anymore, aslo tried it on amount 36)



products_per_page="50" products_count="50" count="9" limit="9" num_products="24"


3>> edit also tried the following blocks



<p>block type="catalog/product_list" name="product_list" category_id="74" column_count="5" count="24" limit="24" mode="grid" template="catalog/product/list.phtml"</p>
<p>block type="catalog/product_list" name="product_list" category_id="74" column_count="6" count="6" limit="4" mode="grid" template="catalog/product/list.phtml"</p>
<p>block type="catalog/product_list" name="product_list" alias="products_homepage" category_id="74" template="catalog/product/list.phtml"</p>
<p>block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="74" column_count="6" products_per_page="50" products_count="50" count="9" limit="9" num_products="24" template="catalog/product/list.phtml"</p>
<p>block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="9" template="catalog/product/list.phtml"</p>


4>> edit Tried the following custom xml code:



<reference name="content">
<!-- Overwrite the view template -->
<block type="catalog/product_list" template="catalog/product/list.phtml">
<action method="setLimit">36</action>
</block>




5>> edit Products per page on grid allowed values.
I got 12,24,36 because i need column=3 on my product page with 4 bellow each other.



question: Does anyone knows how to get more as 12 products with this block? or get around it on a different way.







product blocks catalog product-list magento-1.9.1.1






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 20 '16 at 13:50









Fabian Schmengler

55.4k21139354




55.4k21139354










asked May 6 '16 at 6:21









Marco de WitMarco de Wit

164




164












  • try this block type="catalog/product_list" name="product_list" category_id="3" column_count="6" count="6" limit="4" mode="grid" template="catalog/product/list.phtml"

    – Klettseb
    May 6 '16 at 8:19











  • hello klettseb, i tried your block and it shows 2 rows of 6 (so still 12 in total and not the 19 as are in the category_id at this moment). I also tried to change some of it in this: column_count="5" count="24" limit="24" but still only showing 12 in total.

    – Marco de Wit
    May 6 '16 at 8:32












  • What if you dont use a number in there? like this block type="catalog/product_list" name="product_list" alias="products_homepage" category_id="9" template="catalog/product/list.phtml"

    – Klettseb
    May 6 '16 at 8:35











  • hello Klettseb, just tried your last block and it shows my normal catogory page (without the top part ofcorse becasue of my custom css on the homepage) so it shows 3 X 4 so still 12 total.

    – Marco de Wit
    May 6 '16 at 8:39











  • in System > configuration > catalogue > Front End > Products per Page on Grid Allowed Values what values do you have?

    – Ahmed Elawadi
    May 6 '16 at 10:58

















  • try this block type="catalog/product_list" name="product_list" category_id="3" column_count="6" count="6" limit="4" mode="grid" template="catalog/product/list.phtml"

    – Klettseb
    May 6 '16 at 8:19











  • hello klettseb, i tried your block and it shows 2 rows of 6 (so still 12 in total and not the 19 as are in the category_id at this moment). I also tried to change some of it in this: column_count="5" count="24" limit="24" but still only showing 12 in total.

    – Marco de Wit
    May 6 '16 at 8:32












  • What if you dont use a number in there? like this block type="catalog/product_list" name="product_list" alias="products_homepage" category_id="9" template="catalog/product/list.phtml"

    – Klettseb
    May 6 '16 at 8:35











  • hello Klettseb, just tried your last block and it shows my normal catogory page (without the top part ofcorse becasue of my custom css on the homepage) so it shows 3 X 4 so still 12 total.

    – Marco de Wit
    May 6 '16 at 8:39











  • in System > configuration > catalogue > Front End > Products per Page on Grid Allowed Values what values do you have?

    – Ahmed Elawadi
    May 6 '16 at 10:58
















try this block type="catalog/product_list" name="product_list" category_id="3" column_count="6" count="6" limit="4" mode="grid" template="catalog/product/list.phtml"

– Klettseb
May 6 '16 at 8:19





try this block type="catalog/product_list" name="product_list" category_id="3" column_count="6" count="6" limit="4" mode="grid" template="catalog/product/list.phtml"

– Klettseb
May 6 '16 at 8:19













hello klettseb, i tried your block and it shows 2 rows of 6 (so still 12 in total and not the 19 as are in the category_id at this moment). I also tried to change some of it in this: column_count="5" count="24" limit="24" but still only showing 12 in total.

– Marco de Wit
May 6 '16 at 8:32






hello klettseb, i tried your block and it shows 2 rows of 6 (so still 12 in total and not the 19 as are in the category_id at this moment). I also tried to change some of it in this: column_count="5" count="24" limit="24" but still only showing 12 in total.

– Marco de Wit
May 6 '16 at 8:32














What if you dont use a number in there? like this block type="catalog/product_list" name="product_list" alias="products_homepage" category_id="9" template="catalog/product/list.phtml"

– Klettseb
May 6 '16 at 8:35





What if you dont use a number in there? like this block type="catalog/product_list" name="product_list" alias="products_homepage" category_id="9" template="catalog/product/list.phtml"

– Klettseb
May 6 '16 at 8:35













hello Klettseb, just tried your last block and it shows my normal catogory page (without the top part ofcorse becasue of my custom css on the homepage) so it shows 3 X 4 so still 12 total.

– Marco de Wit
May 6 '16 at 8:39





hello Klettseb, just tried your last block and it shows my normal catogory page (without the top part ofcorse becasue of my custom css on the homepage) so it shows 3 X 4 so still 12 total.

– Marco de Wit
May 6 '16 at 8:39













in System > configuration > catalogue > Front End > Products per Page on Grid Allowed Values what values do you have?

– Ahmed Elawadi
May 6 '16 at 10:58





in System > configuration > catalogue > Front End > Products per Page on Grid Allowed Values what values do you have?

– Ahmed Elawadi
May 6 '16 at 10:58










2 Answers
2






active

oldest

votes


















0














Go to the homepage in the CMS -> Manage pages and add the following code snippet into the editor there



You could also use the same code to drill down into a specific category, by adding the category variable, e.g. be aware that here you have list_custom.phtml so you need to copy this there and just copy the list.phtml.



block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="9" template="catalog/product/list_custom.phtml"


1) appdesignfrontenddefault<your theme>templatecatalogproduct
copy list.phtml and save as list_custom.phtml



2) Now open list_custom.phtml and search for the following snippet.
I have edited the $_columnCount = 4 as I want 4 products in one row and I have 4 products to show in the line
if($i == 4) break;. So for you you will need the columntcount you want and then 36 as a break.



<?php // Grid Mode ?>
<?php $_collectionSize = $_productCollection->count() ?>
<?php //$_columnCount = $this->getColumnCount(); ?>
<?php $_columnCount = 4; ?>
<?php $i=0; foreach ($_productCollection as $_product): ?>
<?php
$_productId = $_product->getId();?>
<?php if($i == 4) break; ?>
<?php if ($i++%$_columnCount==0): ?>
<ul class="products-grid row">





share|improve this answer

























  • Hello @Klettseb, thankyou for your answer. I tried both the layout update and the block. The block showed 3 x 4 products (as is defauld) and the layout update showed 3 x 4 with an bigger layout, this was also with random products. After that i tried your block with all the extra options as I got on ""2>>"" but still only 12 products and not 19 as are curently in catogory 74. Do you have an other solution?

    – Marco de Wit
    May 11 '16 at 12:02











  • My last known option, the other ones used to work for me

    – Klettseb
    May 11 '16 at 12:09











  • magento.stackexchange.com/questions/62678/…

    – Klettseb
    May 12 '16 at 7:42











  • hello @klettseb, i like to try out your code but i am not that good in php can you please let me on what line nr. i have to put the code? i tried to find if endings but there are atleast 6 of them on the php. (already tried some but only got synax errors on my homepage) i quickly uploaded my list.phtml to: verwarmland.nl/media/wysiwyg/list.phtml for you to see how mine looks

    – Marco de Wit
    May 12 '16 at 10:58











  • where you have this line right now <?php /*if ($i++%$_columnCount==0): ?>

    – Klettseb
    May 12 '16 at 11:00


















0














Follow the below steps:



Step 1: Call below code on cms homepage



block type="catalog/product_list" category_id="74" column_count="5" template="catalog/product/list.phtml"


Step 2: Goto system >> permission >> Blocks >> add block name >> allowed to Yes >> save.



Step 3: Goto System >> Configuration >> Catalog >> Frontend >> add products per page on grid default value "24"(by default 24 products will be display in grid rather than 12 products).



step 4: add limit in your phtml to display fix number of products.
Add below code before start


  • tag.



    add below code after end


  • tag

    <?php endif // for 24 product?>





    share|improve this answer























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "479"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f114190%2fproducts-on-homepage-get-more-than-12-products%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Go to the homepage in the CMS -> Manage pages and add the following code snippet into the editor there



      You could also use the same code to drill down into a specific category, by adding the category variable, e.g. be aware that here you have list_custom.phtml so you need to copy this there and just copy the list.phtml.



      block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="9" template="catalog/product/list_custom.phtml"


      1) appdesignfrontenddefault<your theme>templatecatalogproduct
      copy list.phtml and save as list_custom.phtml



      2) Now open list_custom.phtml and search for the following snippet.
      I have edited the $_columnCount = 4 as I want 4 products in one row and I have 4 products to show in the line
      if($i == 4) break;. So for you you will need the columntcount you want and then 36 as a break.



      <?php // Grid Mode ?>
      <?php $_collectionSize = $_productCollection->count() ?>
      <?php //$_columnCount = $this->getColumnCount(); ?>
      <?php $_columnCount = 4; ?>
      <?php $i=0; foreach ($_productCollection as $_product): ?>
      <?php
      $_productId = $_product->getId();?>
      <?php if($i == 4) break; ?>
      <?php if ($i++%$_columnCount==0): ?>
      <ul class="products-grid row">





      share|improve this answer

























      • Hello @Klettseb, thankyou for your answer. I tried both the layout update and the block. The block showed 3 x 4 products (as is defauld) and the layout update showed 3 x 4 with an bigger layout, this was also with random products. After that i tried your block with all the extra options as I got on ""2>>"" but still only 12 products and not 19 as are curently in catogory 74. Do you have an other solution?

        – Marco de Wit
        May 11 '16 at 12:02











      • My last known option, the other ones used to work for me

        – Klettseb
        May 11 '16 at 12:09











      • magento.stackexchange.com/questions/62678/…

        – Klettseb
        May 12 '16 at 7:42











      • hello @klettseb, i like to try out your code but i am not that good in php can you please let me on what line nr. i have to put the code? i tried to find if endings but there are atleast 6 of them on the php. (already tried some but only got synax errors on my homepage) i quickly uploaded my list.phtml to: verwarmland.nl/media/wysiwyg/list.phtml for you to see how mine looks

        – Marco de Wit
        May 12 '16 at 10:58











      • where you have this line right now <?php /*if ($i++%$_columnCount==0): ?>

        – Klettseb
        May 12 '16 at 11:00















      0














      Go to the homepage in the CMS -> Manage pages and add the following code snippet into the editor there



      You could also use the same code to drill down into a specific category, by adding the category variable, e.g. be aware that here you have list_custom.phtml so you need to copy this there and just copy the list.phtml.



      block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="9" template="catalog/product/list_custom.phtml"


      1) appdesignfrontenddefault<your theme>templatecatalogproduct
      copy list.phtml and save as list_custom.phtml



      2) Now open list_custom.phtml and search for the following snippet.
      I have edited the $_columnCount = 4 as I want 4 products in one row and I have 4 products to show in the line
      if($i == 4) break;. So for you you will need the columntcount you want and then 36 as a break.



      <?php // Grid Mode ?>
      <?php $_collectionSize = $_productCollection->count() ?>
      <?php //$_columnCount = $this->getColumnCount(); ?>
      <?php $_columnCount = 4; ?>
      <?php $i=0; foreach ($_productCollection as $_product): ?>
      <?php
      $_productId = $_product->getId();?>
      <?php if($i == 4) break; ?>
      <?php if ($i++%$_columnCount==0): ?>
      <ul class="products-grid row">





      share|improve this answer

























      • Hello @Klettseb, thankyou for your answer. I tried both the layout update and the block. The block showed 3 x 4 products (as is defauld) and the layout update showed 3 x 4 with an bigger layout, this was also with random products. After that i tried your block with all the extra options as I got on ""2>>"" but still only 12 products and not 19 as are curently in catogory 74. Do you have an other solution?

        – Marco de Wit
        May 11 '16 at 12:02











      • My last known option, the other ones used to work for me

        – Klettseb
        May 11 '16 at 12:09











      • magento.stackexchange.com/questions/62678/…

        – Klettseb
        May 12 '16 at 7:42











      • hello @klettseb, i like to try out your code but i am not that good in php can you please let me on what line nr. i have to put the code? i tried to find if endings but there are atleast 6 of them on the php. (already tried some but only got synax errors on my homepage) i quickly uploaded my list.phtml to: verwarmland.nl/media/wysiwyg/list.phtml for you to see how mine looks

        – Marco de Wit
        May 12 '16 at 10:58











      • where you have this line right now <?php /*if ($i++%$_columnCount==0): ?>

        – Klettseb
        May 12 '16 at 11:00













      0












      0








      0







      Go to the homepage in the CMS -> Manage pages and add the following code snippet into the editor there



      You could also use the same code to drill down into a specific category, by adding the category variable, e.g. be aware that here you have list_custom.phtml so you need to copy this there and just copy the list.phtml.



      block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="9" template="catalog/product/list_custom.phtml"


      1) appdesignfrontenddefault<your theme>templatecatalogproduct
      copy list.phtml and save as list_custom.phtml



      2) Now open list_custom.phtml and search for the following snippet.
      I have edited the $_columnCount = 4 as I want 4 products in one row and I have 4 products to show in the line
      if($i == 4) break;. So for you you will need the columntcount you want and then 36 as a break.



      <?php // Grid Mode ?>
      <?php $_collectionSize = $_productCollection->count() ?>
      <?php //$_columnCount = $this->getColumnCount(); ?>
      <?php $_columnCount = 4; ?>
      <?php $i=0; foreach ($_productCollection as $_product): ?>
      <?php
      $_productId = $_product->getId();?>
      <?php if($i == 4) break; ?>
      <?php if ($i++%$_columnCount==0): ?>
      <ul class="products-grid row">





      share|improve this answer















      Go to the homepage in the CMS -> Manage pages and add the following code snippet into the editor there



      You could also use the same code to drill down into a specific category, by adding the category variable, e.g. be aware that here you have list_custom.phtml so you need to copy this there and just copy the list.phtml.



      block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="9" template="catalog/product/list_custom.phtml"


      1) appdesignfrontenddefault<your theme>templatecatalogproduct
      copy list.phtml and save as list_custom.phtml



      2) Now open list_custom.phtml and search for the following snippet.
      I have edited the $_columnCount = 4 as I want 4 products in one row and I have 4 products to show in the line
      if($i == 4) break;. So for you you will need the columntcount you want and then 36 as a break.



      <?php // Grid Mode ?>
      <?php $_collectionSize = $_productCollection->count() ?>
      <?php //$_columnCount = $this->getColumnCount(); ?>
      <?php $_columnCount = 4; ?>
      <?php $i=0; foreach ($_productCollection as $_product): ?>
      <?php
      $_productId = $_product->getId();?>
      <?php if($i == 4) break; ?>
      <?php if ($i++%$_columnCount==0): ?>
      <ul class="products-grid row">






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Jun 1 '16 at 7:31

























      answered May 10 '16 at 21:32









      KlettsebKlettseb

      3,06531851




      3,06531851












      • Hello @Klettseb, thankyou for your answer. I tried both the layout update and the block. The block showed 3 x 4 products (as is defauld) and the layout update showed 3 x 4 with an bigger layout, this was also with random products. After that i tried your block with all the extra options as I got on ""2>>"" but still only 12 products and not 19 as are curently in catogory 74. Do you have an other solution?

        – Marco de Wit
        May 11 '16 at 12:02











      • My last known option, the other ones used to work for me

        – Klettseb
        May 11 '16 at 12:09











      • magento.stackexchange.com/questions/62678/…

        – Klettseb
        May 12 '16 at 7:42











      • hello @klettseb, i like to try out your code but i am not that good in php can you please let me on what line nr. i have to put the code? i tried to find if endings but there are atleast 6 of them on the php. (already tried some but only got synax errors on my homepage) i quickly uploaded my list.phtml to: verwarmland.nl/media/wysiwyg/list.phtml for you to see how mine looks

        – Marco de Wit
        May 12 '16 at 10:58











      • where you have this line right now <?php /*if ($i++%$_columnCount==0): ?>

        – Klettseb
        May 12 '16 at 11:00

















      • Hello @Klettseb, thankyou for your answer. I tried both the layout update and the block. The block showed 3 x 4 products (as is defauld) and the layout update showed 3 x 4 with an bigger layout, this was also with random products. After that i tried your block with all the extra options as I got on ""2>>"" but still only 12 products and not 19 as are curently in catogory 74. Do you have an other solution?

        – Marco de Wit
        May 11 '16 at 12:02











      • My last known option, the other ones used to work for me

        – Klettseb
        May 11 '16 at 12:09











      • magento.stackexchange.com/questions/62678/…

        – Klettseb
        May 12 '16 at 7:42











      • hello @klettseb, i like to try out your code but i am not that good in php can you please let me on what line nr. i have to put the code? i tried to find if endings but there are atleast 6 of them on the php. (already tried some but only got synax errors on my homepage) i quickly uploaded my list.phtml to: verwarmland.nl/media/wysiwyg/list.phtml for you to see how mine looks

        – Marco de Wit
        May 12 '16 at 10:58











      • where you have this line right now <?php /*if ($i++%$_columnCount==0): ?>

        – Klettseb
        May 12 '16 at 11:00
















      Hello @Klettseb, thankyou for your answer. I tried both the layout update and the block. The block showed 3 x 4 products (as is defauld) and the layout update showed 3 x 4 with an bigger layout, this was also with random products. After that i tried your block with all the extra options as I got on ""2>>"" but still only 12 products and not 19 as are curently in catogory 74. Do you have an other solution?

      – Marco de Wit
      May 11 '16 at 12:02





      Hello @Klettseb, thankyou for your answer. I tried both the layout update and the block. The block showed 3 x 4 products (as is defauld) and the layout update showed 3 x 4 with an bigger layout, this was also with random products. After that i tried your block with all the extra options as I got on ""2>>"" but still only 12 products and not 19 as are curently in catogory 74. Do you have an other solution?

      – Marco de Wit
      May 11 '16 at 12:02













      My last known option, the other ones used to work for me

      – Klettseb
      May 11 '16 at 12:09





      My last known option, the other ones used to work for me

      – Klettseb
      May 11 '16 at 12:09













      magento.stackexchange.com/questions/62678/…

      – Klettseb
      May 12 '16 at 7:42





      magento.stackexchange.com/questions/62678/…

      – Klettseb
      May 12 '16 at 7:42













      hello @klettseb, i like to try out your code but i am not that good in php can you please let me on what line nr. i have to put the code? i tried to find if endings but there are atleast 6 of them on the php. (already tried some but only got synax errors on my homepage) i quickly uploaded my list.phtml to: verwarmland.nl/media/wysiwyg/list.phtml for you to see how mine looks

      – Marco de Wit
      May 12 '16 at 10:58





      hello @klettseb, i like to try out your code but i am not that good in php can you please let me on what line nr. i have to put the code? i tried to find if endings but there are atleast 6 of them on the php. (already tried some but only got synax errors on my homepage) i quickly uploaded my list.phtml to: verwarmland.nl/media/wysiwyg/list.phtml for you to see how mine looks

      – Marco de Wit
      May 12 '16 at 10:58













      where you have this line right now <?php /*if ($i++%$_columnCount==0): ?>

      – Klettseb
      May 12 '16 at 11:00





      where you have this line right now <?php /*if ($i++%$_columnCount==0): ?>

      – Klettseb
      May 12 '16 at 11:00













      0














      Follow the below steps:



      Step 1: Call below code on cms homepage



      block type="catalog/product_list" category_id="74" column_count="5" template="catalog/product/list.phtml"


      Step 2: Goto system >> permission >> Blocks >> add block name >> allowed to Yes >> save.



      Step 3: Goto System >> Configuration >> Catalog >> Frontend >> add products per page on grid default value "24"(by default 24 products will be display in grid rather than 12 products).



      step 4: add limit in your phtml to display fix number of products.
      Add below code before start


    • tag.



      add below code after end


    • tag

      <?php endif // for 24 product?>





      share|improve this answer



























        0














        Follow the below steps:



        Step 1: Call below code on cms homepage



        block type="catalog/product_list" category_id="74" column_count="5" template="catalog/product/list.phtml"


        Step 2: Goto system >> permission >> Blocks >> add block name >> allowed to Yes >> save.



        Step 3: Goto System >> Configuration >> Catalog >> Frontend >> add products per page on grid default value "24"(by default 24 products will be display in grid rather than 12 products).



        step 4: add limit in your phtml to display fix number of products.
        Add below code before start


      • tag.



        add below code after end


      • tag

        <?php endif // for 24 product?>





        share|improve this answer

























          0












          0








          0







          Follow the below steps:



          Step 1: Call below code on cms homepage



          block type="catalog/product_list" category_id="74" column_count="5" template="catalog/product/list.phtml"


          Step 2: Goto system >> permission >> Blocks >> add block name >> allowed to Yes >> save.



          Step 3: Goto System >> Configuration >> Catalog >> Frontend >> add products per page on grid default value "24"(by default 24 products will be display in grid rather than 12 products).



          step 4: add limit in your phtml to display fix number of products.
          Add below code before start


        • tag.



          add below code after end


        • tag

          <?php endif // for 24 product?>





          share|improve this answer













          Follow the below steps:



          Step 1: Call below code on cms homepage



          block type="catalog/product_list" category_id="74" column_count="5" template="catalog/product/list.phtml"


          Step 2: Goto system >> permission >> Blocks >> add block name >> allowed to Yes >> save.



          Step 3: Goto System >> Configuration >> Catalog >> Frontend >> add products per page on grid default value "24"(by default 24 products will be display in grid rather than 12 products).



          step 4: add limit in your phtml to display fix number of products.
          Add below code before start


        • tag.



          add below code after end


        • tag

          <?php endif // for 24 product?>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 20 '16 at 13:32









          Abhinav SinghAbhinav Singh

          2,135612




          2,135612



























              draft saved

              draft discarded
















































              Thanks for contributing an answer to Magento Stack Exchange!


              • Please be sure to answer the question. Provide details and share your research!

              But avoid


              • Asking for help, clarification, or responding to other answers.

              • Making statements based on opinion; back them up with references or personal experience.

              To learn more, see our tips on writing great answers.




              draft saved


              draft discarded














              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f114190%2fproducts-on-homepage-get-more-than-12-products%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown





















































              Required, but never shown














              Required, but never shown












              Required, but never shown







              Required, but never shown

































              Required, but never shown














              Required, but never shown












              Required, but never shown







              Required, but never shown







              Popular posts from this blog

              Sum ergo cogito? 1 nng

              419 nièngy_Soadمي 19bal1.5o_g

              Queiggey Chernihivv 9NnOo i Zw X QqKk LpB