|
Check Page Rank of your Web site pages instantly: |
|
This page rank checking tool is powered by Page Rank Checker service |
All posts by Pramod T P
Magento returns different ups shipping rates
Back to the previous page Javascript
<script>
window.history.back()
</script>
Show shopping cart items paypal express checkout Magento
Show shipping methods paypal express checkout Magento
Magento set the layout 2 column left Shared Wishlist View
Edit wishlist.xml and replace the code
<wishlist_shared_index translate=”label”>
<label>Customer Shared Wishlist View</label>
<!– Mage_Wishlist –>
<reference name=”content”>
<block type=”wishlist/share_wishlist” name=”customer.wishlist” template=”wishlist/shared.phtml” />
</reference>
</wishlist_shared_index>
with
<wishlist_shared_index translate=”label”>
<label>Customer Shared Wishlist View</label>
<!– Mage_Wishlist –>
<reference name=”content”>
<block type=”wishlist/share_wishlist” name=”customer.wishlist” template=”wishlist/shared.phtml” />
</reference>
<reference name=”root”>
<action method=”setTemplate”><template>page/2columns-left.phtml</template></action>
</reference>
</wishlist_shared_index>
Magento layered navigation does not show up on category page
Make sure that you set the value “Yes” to “Is Anchor” field .
Show category name along with product name on listing page Magento
<?php
$cat = $_product->getCategoryIds();
echo Mage::getModel(“catalog/category”)->load($cat[0])->getName();
?>
Get products based on category id Magento
<?php
$layer = Mage::getSingleton(“catalog/layer”);
$_category = $layer->getCurrentCategory();
$category = new Mage_Catalog_Model_Category();
$category->load($_category->getId());
$prodCollection = $category->getProductCollection();
foreach ($prodCollection as $product) {
}
?>
Get current category id Magento
<?php
$_category = Mage::registry(“current_category”);
echo $currentCategoryId= $_category->getId();
?>


