Important code for magento

Some important code for magento you use and enjoying with development 

css call in head
<link href=”<?php echo $this->getSkinUrl(‘css’)?>/style.css” rel=”stylesheet” type=”text/css” />

image call in header
<?php echo $this->getSkinUrl(‘images/logo.png’); ?>

call home page link
<?php echo $this->getUrl(”) ?>” title=”<?php echo $this->getLogoAlt() ?>

call top menu block
<?php echo $this->getChildHtml(‘topMenu’) ?>

call search block
<?php echo $this->getChildHtml(‘topSearch’) ?>

call new product in CMS page
{{block type=”catalog/product_new” name=”home.catalog.product.new” alias=”product_homepage” template=”catalog/product/new.phtml”}}

Advertisements

Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

WordPress.com.

Up ↑