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

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

Should I tutor a student who I know has cheated on their homework?

If the heap is initialized for security, then why is the stack uninitialized?

Written every which way

Why do we use the plural of movies in this phrase "We went to the movies last night."?

Make solar eclipses exceedingly rare, but still have new moons

How to avoid supervisors with prejudiced views?

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

Preparing Indesign booklet with .psd graphics for print

Real integral using residue theorem - why doesn't this work?

Received an invoice from my ex-employer billing me for training; how to handle?

Does it take more energy to get to Venus or to Mars?

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

Why do remote companies require working in the US?

Why do airplanes bank sharply to the right after air-to-air refueling?

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?

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

How did people program for Consoles with multiple CPUs?

Plot of histogram similar to output from @risk

Is there a difference between "Fahrstuhl" and "Aufzug"

Can I equip Skullclamp on a creature I am sacrificing?

Several mode to write the symbol of a vector

sp_blitzCache results Memory grants

Why didn't Khan get resurrected in the Genesis Explosion?



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

“%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

變成蝙蝠會怎樣? 參考資料 外部連結 导航菜单Thomas Nagel, "What is it like to be a...