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

Why does the UK parliament need a vote on the political declaration?

How did people program for Consoles with multiple CPUs?

Make solar eclipses exceedingly rare, but still have new moons

Is micro rebar a better way to reinforce concrete than rebar?

Do I need to enable Dev Hub in my PROD Org?

Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?

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

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

How to count occurrences of text in a file?

What is the result of assigning to std::vector<T>::begin()?

How do I reset passwords on multiple websites easily?

WOW air has ceased operation, can I get my tickets refunded?

Why do professional authors make "consistency" mistakes? And how to avoid them?

Would a galaxy be visible from outside, but nearby?

How to start emacs in "nothing" mode (`fundamental-mode`)

Sending manuscript to multiple publishers

Why don't programming languages automatically manage the synchronous/asynchronous problem?

How to safely derail a train during transit?

Bold, vivid family

Inappropriate reference requests from Journal reviewers

Complex fractions

Plot of histogram similar to output from @risk

Multiple labels for a single equation

What does "Its cash flow is deeply negative" mean?



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 30 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

Nidaros erkebispedøme

Birsay

Was Woodrow Wilson really a Liberal?Was World War I a war of liberals against authoritarians?Founding Fathers...