How to view Particular Category List in Home Page from Magento?

Go to Magento Cms Page Inside, Put Blow Code then view in your page :
{{block type=”catalog/product_list” category_id=”98″ template=”catalog/product/list.phtml”}}

(OR)

Open in your Magento theme page layout, There you can past below code

<?php     echo $this->getLayout()->createBlock(‘catalog/product_list’)->setCategoryId(98)->setTemplate(‘catalog/product/list.phtml’)->toHtml()     ?>

(OR)

Open Magento Static Block, Create Magento New Static Block, Then Past Below Code :

{{block type=”catalog/product_list” category_id=”98″ template=”catalog/product/list.phtml”}}

Once you placed above code in Magento Staic block inside, You can write below code in your Magento .phtml file inside,

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId(IDENTIFIER)->toHtml() ?>

Here you change "IDENTIFIER" in your Magento Static Block identified number.
Now you refresh your site will show your custom Magento Style Theme.

Thanks,
J.
echo $this->getLayout()->createBlock('catalog/product_list')->setCategoryId(10)->setTemplate('catalog/product/list.phtml')->toHtml()

How to add Magento CMS static blocks inside CMS Page?

1. You simply add below code in your cms template :

{{block type="cms/block" block_id="IDENTIFIER"}}

2. You want add static Block in xml file inside :
  <block type="cms/block" name="BLOCK_NAME" after="cart_sidebar">
    <action method="setBlockId"><block_id>IDENTIFIER</block_id></action>
  </block>

3. You want add static Block in page inside :

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId(IDENTIFIER)->toHtml() ?>

its is the method of static block in your cms page...

How to Add contact form inside CMS Page in Magento?

You Add Below code in your cms page :

<p>{{block type=”core/template” name=”contactForm” form_action=”/contacts/index/post” template=”contacts/form.phtml”}}</p>

Then when you click the Submit that is going contact page. So, there you can view the contact form again. So, this time we can do this below css, put in your style.css

.contacts-index-index .col-main .page-title, .contacts-index-index .col-main #contactForm{
display:none;
}
.contacts-index-index .col-main #messages_product_view{
margin:70px auto 0 auto;
width:450px;
}

this is one of my method. If any prober way kindly inform me.

How to call Navigation in Magento CMS Page inside?

Just write inside magento cms page below code :

{{block type=”catalog/navigation” name=”catalog.vertnav” alias=”navigation_homepage” template=”catalog/navigation/vert_nav.phtml”}}

How to call Tag’s inside Magento CMS Page?

Just write below type :

{{block type=”tag/popular” template=”tag/popular.phtml”}}

How to call Magento images and Scripts in inside CMS Page?

This is the path of  “{{skin url=” for magento root directory.
1. Example for Images Load :
{{skin url=’images/welcome.jpg’}}

2. Example for Scripts Load :
{{skin url=’js/onLoad.js’}}

3. Example for Direct Scripts Load :
<script type=”text/javascript”>// <![CDATA[
document.write(‘<center><iframe width=”190″ height=”172″ src=”http://www.youtube.com” frameborder=”0″ allowfullscreen></iframe></center>’);
// ]]></script>

How to View Product in magento?

1. Go to Catalog
2. Create Product or Manage Product
3. Select your Correct Product Attributes
4. Go to Inventory => Select Stock Availability => Select In Stock

Other information what you want add here.

That is All 🙂

http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/cms_and_home_page/add_featured_products_to_home_page

http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/catalog/add-attributes-to-product-grid

http://www.siteground.com/tutorials/magento/magento_product.htm

How to Display Static Blocks in Particular Category from Magento?

1. Go To Admin Panel
2. Click Catalog => Select Manage Categories
3. Add Categorie OR Edit Categorie
4. Select Display Settings
5. Choose Your Display Mode (Static Block only or what you want)
6. Choose CMS Block Name
And other details what you want you select and your faviour.

that’s all 🙂

© 2020 Spirituality