As an FYI, on the new version of Magento 1.1.1, the new.phtml / new.php (and in this forum, the homepage.phtml / homepage.php) pages don’t load up product quantities. isSaleable() always returns NO. Ideas on how to fix this?
Is there really nobody who knows how to enable a pagination toolbar for the homepage? I used exactly the same code as posted in the first posts but I need a pagination toolbar because we have too many products we would like to show on the frontpage.
I give my successful code as below: (can show X products/row * Y row)
1. find app\code\core\Mage\Catalog\Block\Product\New.php
change ‘setPageSize(20)’ such as 20, that is the total products you would show at homepage
2. find app\design\frontend\default\yourtemplate\template\catalog\product\new.phtml
change all the data as my show
<?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?> <div class="box recently"> <h3><?php echo $this->__('New Products') ?></h3> <table cellspacing="0" class="recently-list" id="recently-compared-list-table"> <tr> <?php $i=0; foreach ($_products->getItems() as $_product): ?> <?php if ($i%4==0): ?> <!--these three lines control add '<tr>' per row--> <tr> <?php endif ?>
I’m displaying products from one selected category on my home page. It works, but doesn’t look so nice. Need to tweak the look. I think I’ll create a category call “Featured Products” and then select that category to be display on the homepage.
Hyteckit: Loved your site. I see you’re using the Modern theme, as am I. I’m attempting to to show a specific category on the home page and I’m having no luck. Perhaps you or someone can point me in the right direction. I’ve followed the instructions to the letter and and still I don’t see anything on the home page. I inserted the following code in the CMS:
“Featured Products” shows up, but nothing else. The category is valid. The items are in-stock and show up when I view the category directly. It simply will not display them on the home page, whether I use Modern or Default themes.
Can anyone suggest a solution? The learning curve with Magento is very steep, but I feel it is the best eCommerce solution I’ve yet used - it blows OSCommerce away.
As an FYI, on the new version of Magento 1.1.1, the new.phtml / new.php (and in this forum, the homepage.phtml / homepage.php) pages don’t load up product quantities. isSaleable() always returns NO. Ideas on how to fix this?
Hi, it’s maybe a bug. The solution is to replace the line: