<?php $currentUrl = $this->helper('core/url')->getCurrentUrl(); // Displays URL of the current page ?>
<?php $currentUrl = $this->helper('core/url')->getCurrentUrl(); // Displays URL of the current page ?>
<?php $obj = new Mage_Catalog_Block_Navigation(); $store_cats = $obj->getStoreCategories(); $current_cat = $obj->getCurrentCategory(); $current_cat = (is_object($current_cat) ? $current_cat->getName() : '');?> <?php foreach ($store_cats as $cat) { if ($cat->getName() == $current_cat) { echo '<li style="padding-left:5px;"> <a href="'.$this->getCategoryUrl($cat).'">'.$cat->getName()." </a>n<ul>n"; foreach ($obj->getCurrentChildCategories() as $subcat) { echo '<li style="padding-left:15px;"> <a href="'.$this->getCategoryUrl($subcat).'">'.$subcat->getName()."</a> </li>n"; } echo "</ul>n</li>n"; } else { echo '<li><a href="'.$this->getCategoryUrl($cat).'">'.$cat->getName()." </a></li>n"; }} ?>
Remove the following code from /app/design/frontend/your_package/yourtheme/layout/checkout.xml
<block type=”checkout/cart_shipping” name=”checkout.cart.shipping” as=”shipping” template=”checkout/cart/shipping.phtml”/>
Remove the following code from /app/design/frontend/your_package/yourtheme/layout/checkout.xml
<block type=”checkout/cart_coupon” name=”checkout.cart.coupon” as=”coupon” template=”checkout/cart/coupon.phtml”/>
<?php echo $_product->getShortDescription(); // for printing short description echo $_product->getDescription(); // for printing description //For displaying description, Go to the admin pannel //Catalod->Attributes-> Manage Attributes and edit the description attribute. //Set "Used in product listing" to "Yes". ?>
<reference name="left"> <block type="catalog/navigation" name="catalog.leftnav" template="catalog/navigation/left_nav.phtml" /> </reference> Please create file with the given name "left_nav.phtml " and put it in the corresponding location eg : /app/design/frontend/your_package/yourtheme/template/catalog/navigation/left_nav.phtml
{{block type=”catalog/product_list” category_id=”12″ template=”catalog/product/list.phtml”}}
It will list all the products under the category id “12” .
{{store url=’mypage.html’}} will return the full sitr ur l . ie http://sitename.com/mypage.html/
and
{{store direct_url=’mypage.html’}} will return the full sitr ur l . ie http://sitename.com/mypage.html
The below given code will display the the content added in “newPage.phtml”
{{block type=”core/template” name=”list-categories” template=”catalog/category/newPage.phtml”}}
<?php //The following code will load the block with the given "identifier" // on the phtml page echo $this->getLayout()->createBlock('cms/block')-> setBlockId('identifier')->toHtml() ?>