Displaying ALL products on the home page (New, Featured, Sale basically everything) The Next CEO of Stack OverflowHow to create a block title?Inserting a block in a CMS page between content heading and contentMagento RWD 1.9 no products displayed on frontpageCan't show products on Magento 1.9 home pageTrying to show more products with block type="catalog/product_listHome Page Catalog Products List Links IssueManipulate Head based on CMS blockUltimo - 'Related products' owl CarouselHow to hide the out of stock products from a widget on home pageMagento : 1 Showing New Products of Particular category on page

Indicator light circuit

Is it ever safe to open a suspicious html file (e.g. email attachment)?

Anatomically Correct Strange Women In Ponds Distributing Swords

Bold, vivid family

What is "(CFMCC)" on an ILS approach chart?

What is the purpose of the Evocation wizard's Potent Cantrip feature?

How do I reset passwords on multiple websites easily?

Are there any unintended negative consequences to allowing PCs to gain multiple levels at once in a short milestone-XP game?

What was the first Unix version to run on a microcomputer?

What happens if you roll doubles 3 times then land on "Go to jail?"

Novel about a guy who is possessed by the divine essence and the world ends?

If a black hole is created from light, can this black hole then move at speed of light?

What's the best way to handle refactoring a big file?

Sending manuscript to multiple publishers

Plot of histogram similar to output from @risk

Which tube will fit a -(700 x 25c) wheel?

Make solar eclipses exceedingly rare, but still have new moons

Unreliable Magic - Is it worth it?

What happened in Rome, when the western empire "fell"?

What can we do to stop prior company from asking us questions?

sp_blitzCache results Memory grants

Inappropriate reference requests from Journal reviewers

How do I go from 300 unfinished/half written blog posts, to published posts?

Rotate a column



Displaying ALL products on the home page (New, Featured, Sale basically everything)



The Next CEO of Stack OverflowHow to create a block title?Inserting a block in a CMS page between content heading and contentMagento RWD 1.9 no products displayed on frontpageCan't show products on Magento 1.9 home pageTrying to show more products with block type="catalog/product_listHome Page Catalog Products List Links IssueManipulate Head based on CMS blockUltimo - 'Related products' owl CarouselHow to hide the out of stock products from a widget on home pageMagento : 1 Showing New Products of Particular category on page










0















I'm trying to add a product slider at my website's home page. I have tried using almost all the block type="catalog/xxxxx" but I cannot get it to display ALL PRODUCTS in the home page's content.

I know it's possible to get New products or Featured Products, but having all of them in a single slider doesn't seem to work. I have spent hours now trying to achieve this. Any help would be greatly appreciated!



Note: I have previously been able to achieve this but the code doesn't work anymore!
I'm using Ultimo theme by Rainforest, if it helps!



EDIT:

I've also tried using the below



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


but this causes the HTML code to break and results in the content below the homepage (i.e footer, link etc to disappear).










share|improve this question
























  • post your code.

    – MeenakshiSundaram R
    Sep 8 '15 at 13:53











  • block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml" Even this doesn't work, I believe it should but it only breaks my page and the footer disappears. The only thing I see on the page is the Header and the slideshow

    – Navik Goswami
    Sep 8 '15 at 13:57












  • Turn on error displaying and check magento adn apache logs for errors

    – Sander Mangel
    Sep 8 '15 at 14:32











  • How would I do that?

    – Navik Goswami
    Sep 8 '15 at 14:34















0















I'm trying to add a product slider at my website's home page. I have tried using almost all the block type="catalog/xxxxx" but I cannot get it to display ALL PRODUCTS in the home page's content.

I know it's possible to get New products or Featured Products, but having all of them in a single slider doesn't seem to work. I have spent hours now trying to achieve this. Any help would be greatly appreciated!



Note: I have previously been able to achieve this but the code doesn't work anymore!
I'm using Ultimo theme by Rainforest, if it helps!



EDIT:

I've also tried using the below



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


but this causes the HTML code to break and results in the content below the homepage (i.e footer, link etc to disappear).










share|improve this question
























  • post your code.

    – MeenakshiSundaram R
    Sep 8 '15 at 13:53











  • block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml" Even this doesn't work, I believe it should but it only breaks my page and the footer disappears. The only thing I see on the page is the Header and the slideshow

    – Navik Goswami
    Sep 8 '15 at 13:57












  • Turn on error displaying and check magento adn apache logs for errors

    – Sander Mangel
    Sep 8 '15 at 14:32











  • How would I do that?

    – Navik Goswami
    Sep 8 '15 at 14:34













0












0








0








I'm trying to add a product slider at my website's home page. I have tried using almost all the block type="catalog/xxxxx" but I cannot get it to display ALL PRODUCTS in the home page's content.

I know it's possible to get New products or Featured Products, but having all of them in a single slider doesn't seem to work. I have spent hours now trying to achieve this. Any help would be greatly appreciated!



Note: I have previously been able to achieve this but the code doesn't work anymore!
I'm using Ultimo theme by Rainforest, if it helps!



EDIT:

I've also tried using the below



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


but this causes the HTML code to break and results in the content below the homepage (i.e footer, link etc to disappear).










share|improve this question
















I'm trying to add a product slider at my website's home page. I have tried using almost all the block type="catalog/xxxxx" but I cannot get it to display ALL PRODUCTS in the home page's content.

I know it's possible to get New products or Featured Products, but having all of them in a single slider doesn't seem to work. I have spent hours now trying to achieve this. Any help would be greatly appreciated!



Note: I have previously been able to achieve this but the code doesn't work anymore!
I'm using Ultimo theme by Rainforest, if it helps!



EDIT:

I've also tried using the below



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


but this causes the HTML code to break and results in the content below the homepage (i.e footer, link etc to disappear).







blocks products slider






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 17 mins ago









Teja Bhagavan Kollepara

3,01241949




3,01241949










asked Sep 8 '15 at 13:49









Navik GoswamiNavik Goswami

508




508












  • post your code.

    – MeenakshiSundaram R
    Sep 8 '15 at 13:53











  • block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml" Even this doesn't work, I believe it should but it only breaks my page and the footer disappears. The only thing I see on the page is the Header and the slideshow

    – Navik Goswami
    Sep 8 '15 at 13:57












  • Turn on error displaying and check magento adn apache logs for errors

    – Sander Mangel
    Sep 8 '15 at 14:32











  • How would I do that?

    – Navik Goswami
    Sep 8 '15 at 14:34

















  • post your code.

    – MeenakshiSundaram R
    Sep 8 '15 at 13:53











  • block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml" Even this doesn't work, I believe it should but it only breaks my page and the footer disappears. The only thing I see on the page is the Header and the slideshow

    – Navik Goswami
    Sep 8 '15 at 13:57












  • Turn on error displaying and check magento adn apache logs for errors

    – Sander Mangel
    Sep 8 '15 at 14:32











  • How would I do that?

    – Navik Goswami
    Sep 8 '15 at 14:34
















post your code.

– MeenakshiSundaram R
Sep 8 '15 at 13:53





post your code.

– MeenakshiSundaram R
Sep 8 '15 at 13:53













block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml" Even this doesn't work, I believe it should but it only breaks my page and the footer disappears. The only thing I see on the page is the Header and the slideshow

– Navik Goswami
Sep 8 '15 at 13:57






block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml" Even this doesn't work, I believe it should but it only breaks my page and the footer disappears. The only thing I see on the page is the Header and the slideshow

– Navik Goswami
Sep 8 '15 at 13:57














Turn on error displaying and check magento adn apache logs for errors

– Sander Mangel
Sep 8 '15 at 14:32





Turn on error displaying and check magento adn apache logs for errors

– Sander Mangel
Sep 8 '15 at 14:32













How would I do that?

– Navik Goswami
Sep 8 '15 at 14:34





How would I do that?

– Navik Goswami
Sep 8 '15 at 14:34










1 Answer
1






active

oldest

votes


















1














you need to create your own module and inside it create this block



<?php
class [Namespace]_[Module]_Block_Product_All extends Mage_Catalog_Block_Product_List

protected function _getProductCollection()

if (is_null($this->_productCollection))
$collection = Mage::getResourceModel('catalog/product_collection')
->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())
->addAttributeToFilter('status', 1)
->addAttributeToFilter(array(array('attribute'=>'visibility', 'in'=>"2,3,4")));
$this->_productCollection = $collection;

return $this->_productCollection;




Then create the template app/design/frontend/base/default/template/[namespace]_[module]/product/all.phtml where you place your markup.

Something like this (will require styling):



 <?php 
$products = $this->getLoadedProductCollection();
foreach ($products as $product) : ?>
<div>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
<?php // Product description ?>
<div class="product-shop">
<div class="f-fix">
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
<?php if($_product->getRatingSummary()): ?>
<?php echo $this->getReviewsSummaryHtml($_product) ?>
<?php endif; ?>
<?php echo $this->getPriceHtml($_product, true) ?>
<?php if($_product->isSaleable()): ?>
<p><button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Add to Cart')) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
<?php else: ?>
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
<?php endif; ?>
<div class="desc std">
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
</div>
</div>
</div>
</div>
<?php endforeach;?>


now you can use it in your homepage like this



block type="[block_alias]/product_all" template="[namespace]_[module]/product/all.phtml"





share|improve this answer























  • I really appreciate your effort in answering my question. However, like my question suggests, I have been able to do this before using just the block..... But, it wouldn't work anymore? Do you have any ideas why?

    – Navik Goswami
    Sep 8 '15 at 14:05











  • @NavikGoswami. I don't...If I did, I wouldn't have written a full book as an answer.

    – Marius
    Sep 8 '15 at 14:09











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%2f82321%2fdisplaying-all-products-on-the-home-page-new-featured-sale-basically-everythi%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














you need to create your own module and inside it create this block



<?php
class [Namespace]_[Module]_Block_Product_All extends Mage_Catalog_Block_Product_List

protected function _getProductCollection()

if (is_null($this->_productCollection))
$collection = Mage::getResourceModel('catalog/product_collection')
->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())
->addAttributeToFilter('status', 1)
->addAttributeToFilter(array(array('attribute'=>'visibility', 'in'=>"2,3,4")));
$this->_productCollection = $collection;

return $this->_productCollection;




Then create the template app/design/frontend/base/default/template/[namespace]_[module]/product/all.phtml where you place your markup.

Something like this (will require styling):



 <?php 
$products = $this->getLoadedProductCollection();
foreach ($products as $product) : ?>
<div>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
<?php // Product description ?>
<div class="product-shop">
<div class="f-fix">
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
<?php if($_product->getRatingSummary()): ?>
<?php echo $this->getReviewsSummaryHtml($_product) ?>
<?php endif; ?>
<?php echo $this->getPriceHtml($_product, true) ?>
<?php if($_product->isSaleable()): ?>
<p><button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Add to Cart')) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
<?php else: ?>
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
<?php endif; ?>
<div class="desc std">
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
</div>
</div>
</div>
</div>
<?php endforeach;?>


now you can use it in your homepage like this



block type="[block_alias]/product_all" template="[namespace]_[module]/product/all.phtml"





share|improve this answer























  • I really appreciate your effort in answering my question. However, like my question suggests, I have been able to do this before using just the block..... But, it wouldn't work anymore? Do you have any ideas why?

    – Navik Goswami
    Sep 8 '15 at 14:05











  • @NavikGoswami. I don't...If I did, I wouldn't have written a full book as an answer.

    – Marius
    Sep 8 '15 at 14:09















1














you need to create your own module and inside it create this block



<?php
class [Namespace]_[Module]_Block_Product_All extends Mage_Catalog_Block_Product_List

protected function _getProductCollection()

if (is_null($this->_productCollection))
$collection = Mage::getResourceModel('catalog/product_collection')
->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())
->addAttributeToFilter('status', 1)
->addAttributeToFilter(array(array('attribute'=>'visibility', 'in'=>"2,3,4")));
$this->_productCollection = $collection;

return $this->_productCollection;




Then create the template app/design/frontend/base/default/template/[namespace]_[module]/product/all.phtml where you place your markup.

Something like this (will require styling):



 <?php 
$products = $this->getLoadedProductCollection();
foreach ($products as $product) : ?>
<div>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
<?php // Product description ?>
<div class="product-shop">
<div class="f-fix">
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
<?php if($_product->getRatingSummary()): ?>
<?php echo $this->getReviewsSummaryHtml($_product) ?>
<?php endif; ?>
<?php echo $this->getPriceHtml($_product, true) ?>
<?php if($_product->isSaleable()): ?>
<p><button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Add to Cart')) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
<?php else: ?>
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
<?php endif; ?>
<div class="desc std">
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
</div>
</div>
</div>
</div>
<?php endforeach;?>


now you can use it in your homepage like this



block type="[block_alias]/product_all" template="[namespace]_[module]/product/all.phtml"





share|improve this answer























  • I really appreciate your effort in answering my question. However, like my question suggests, I have been able to do this before using just the block..... But, it wouldn't work anymore? Do you have any ideas why?

    – Navik Goswami
    Sep 8 '15 at 14:05











  • @NavikGoswami. I don't...If I did, I wouldn't have written a full book as an answer.

    – Marius
    Sep 8 '15 at 14:09













1












1








1







you need to create your own module and inside it create this block



<?php
class [Namespace]_[Module]_Block_Product_All extends Mage_Catalog_Block_Product_List

protected function _getProductCollection()

if (is_null($this->_productCollection))
$collection = Mage::getResourceModel('catalog/product_collection')
->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())
->addAttributeToFilter('status', 1)
->addAttributeToFilter(array(array('attribute'=>'visibility', 'in'=>"2,3,4")));
$this->_productCollection = $collection;

return $this->_productCollection;




Then create the template app/design/frontend/base/default/template/[namespace]_[module]/product/all.phtml where you place your markup.

Something like this (will require styling):



 <?php 
$products = $this->getLoadedProductCollection();
foreach ($products as $product) : ?>
<div>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
<?php // Product description ?>
<div class="product-shop">
<div class="f-fix">
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
<?php if($_product->getRatingSummary()): ?>
<?php echo $this->getReviewsSummaryHtml($_product) ?>
<?php endif; ?>
<?php echo $this->getPriceHtml($_product, true) ?>
<?php if($_product->isSaleable()): ?>
<p><button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Add to Cart')) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
<?php else: ?>
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
<?php endif; ?>
<div class="desc std">
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
</div>
</div>
</div>
</div>
<?php endforeach;?>


now you can use it in your homepage like this



block type="[block_alias]/product_all" template="[namespace]_[module]/product/all.phtml"





share|improve this answer













you need to create your own module and inside it create this block



<?php
class [Namespace]_[Module]_Block_Product_All extends Mage_Catalog_Block_Product_List

protected function _getProductCollection()

if (is_null($this->_productCollection))
$collection = Mage::getResourceModel('catalog/product_collection')
->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes())
->addAttributeToFilter('status', 1)
->addAttributeToFilter(array(array('attribute'=>'visibility', 'in'=>"2,3,4")));
$this->_productCollection = $collection;

return $this->_productCollection;




Then create the template app/design/frontend/base/default/template/[namespace]_[module]/product/all.phtml where you place your markup.

Something like this (will require styling):



 <?php 
$products = $this->getLoadedProductCollection();
foreach ($products as $product) : ?>
<div>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
<?php // Product description ?>
<div class="product-shop">
<div class="f-fix">
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
<?php if($_product->getRatingSummary()): ?>
<?php echo $this->getReviewsSummaryHtml($_product) ?>
<?php endif; ?>
<?php echo $this->getPriceHtml($_product, true) ?>
<?php if($_product->isSaleable()): ?>
<p><button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Add to Cart')) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
<?php else: ?>
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
<?php endif; ?>
<div class="desc std">
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
</div>
</div>
</div>
</div>
<?php endforeach;?>


now you can use it in your homepage like this



block type="[block_alias]/product_all" template="[namespace]_[module]/product/all.phtml"






share|improve this answer












share|improve this answer



share|improve this answer










answered Sep 8 '15 at 14:00









MariusMarius

167k28319686




167k28319686












  • I really appreciate your effort in answering my question. However, like my question suggests, I have been able to do this before using just the block..... But, it wouldn't work anymore? Do you have any ideas why?

    – Navik Goswami
    Sep 8 '15 at 14:05











  • @NavikGoswami. I don't...If I did, I wouldn't have written a full book as an answer.

    – Marius
    Sep 8 '15 at 14:09

















  • I really appreciate your effort in answering my question. However, like my question suggests, I have been able to do this before using just the block..... But, it wouldn't work anymore? Do you have any ideas why?

    – Navik Goswami
    Sep 8 '15 at 14:05











  • @NavikGoswami. I don't...If I did, I wouldn't have written a full book as an answer.

    – Marius
    Sep 8 '15 at 14:09
















I really appreciate your effort in answering my question. However, like my question suggests, I have been able to do this before using just the block..... But, it wouldn't work anymore? Do you have any ideas why?

– Navik Goswami
Sep 8 '15 at 14:05





I really appreciate your effort in answering my question. However, like my question suggests, I have been able to do this before using just the block..... But, it wouldn't work anymore? Do you have any ideas why?

– Navik Goswami
Sep 8 '15 at 14:05













@NavikGoswami. I don't...If I did, I wouldn't have written a full book as an answer.

– Marius
Sep 8 '15 at 14:09





@NavikGoswami. I don't...If I did, I wouldn't have written a full book as an answer.

– Marius
Sep 8 '15 at 14:09

















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%2f82321%2fdisplaying-all-products-on-the-home-page-new-featured-sale-basically-everythi%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

Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2

Nissan Patrol Зміст Перше покоління — 4W60 (1951-1960) | Друге покоління — 60 series (1960-1980) | Третє покоління (1980–2002) | Четверте покоління — Y60 (1987–1998) | П'яте покоління — Y61 (1997–2013) | Шосте покоління — Y62 (2010- ) | Посилання | Зноски | Навігаційне менюОфіційний український сайтТест-драйв Nissan Patrol 2010 7-го поколінняNissan PatrolКак мы тестировали Nissan Patrol 2016рвиправивши або дописавши її