How to show wishlist products in magento's home page. Is there any way to bring it with custom block using static blocks.
Magento – how to show wishlist products in homepage
magento-1.8wishlist
Related Solutions
Yes This is the right template file to remove the price from the new product listing.
comment the code in the below template file:
template/catalog/product/new.phtml
<?php //echo $this->getPriceHtml($_product, true, '-new') ?>
But just make sure to refresh Magento's cache form the admin side.
Follow the steps to refresh the cache: Go to
System >> Cache Management
select all the cache and refresh them. now the result will be displayed
Note: if you are in development phase make all cache as disabled.
Instead of this:
$wishlistTotal = $wishlistTotal + ($_product->getPrice($_product, empty($options)) * $item->getQty());
Use this:
$wishlistTotal = $wishlistTotal + ($_product->getFinalPrice() * $item->getQty());
Final Result:
<?php
$columns = $this->getColumns();
$wishlistTotal = 0;
?>
<ol id="products-wishlist-list" class="products-list wishlist-list">
<?php if (count($this->getItems())): ?>
<?php foreach ($this->getItems() as $item): ?>
<li class="item" id="item_<?php echo $item->getId();?>">
<?php $i = 0; $count = count($columns);
foreach ($columns as $column):
$column->setItem($item);
if ($i === 1) :
echo '<div class="product-shop">';
endif;
echo $column->toHtml($item);
if (++$i === $count) :
echo '</div>';
$_product = $item->getProduct();
$wishlistTotal = $wishlistTotal + ($_product->getFinalPrice() * $item->getQty());
endif;
endforeach; ?>
</li>
<?php endforeach ?>
<?php else: ?>
<li class="wishlist-empty"><?php echo $this->__('This Wishlist has no Items');?></li>
<?php endif; ?>
<?php
echo '<li class="item even last"><div class="product-shop">';
echo '<h3 style="float:right;">Wishlist Total: $' .number_format($wishlistTotal, 2, '.', ','). '</h3>';
echo '</div></li>';
?>
</ol>
<?php foreach ($columns as $column): ?>
<?php echo $column->getAdditionalHtml();?>
<?php endforeach; ?>
<script type="text/javascript">
//<![CDATA[
decorateList('products-wishlist-list', 'none-recursive');
<?php foreach ($columns as $column): ?>
<?php echo $column->getJs();?>
<?php endforeach; ?>
//]]>
</script>
Best Answer
In your CMS page "HomePage" add
Or add in the Layout Update XML
Wishlist products are now in the HomePage.
If you want to change the look duplicate for example base/default/template/wishlist/sidebar.phtml to yourTheme/template/wishlist/sidebar.phtml and you are free to do what you want.
In case you want to remove wishlist products from sidebar, in yourTheme/layout/local.xml add :