HeJian Magento Template FAQ

November 18, 2008 by hejian

How to install HeJian Magento Template
Goto Admin Panel -> System -> Configuration -> Design -> Theme -> Setup the Default to template name.

How to add a block
Goto Admin Panel -> CMS -> Static Blocks -> Add New Block, put this code into the content:

<div class="block">
<h3><span>Put block title here</span></h3>
<div class="content">
Put block content here.
</div>
</div>

How to add a block into specific position
HeJian Magento template support a wide variety of block positions and variations. All blocks are fully collapsible. If there is no block published in a certain position, this block position will contract and dissappear:

You can add blocks from Admin Panel -> CMS -> Static Blocks, and setup the Identifier to position name, the template will display these blocks into correct position automatically.
These are valid block Identifier: toppanel, logo, header, nav, top1, top2, top3, left right, maintop, advert1, advert2, advert3, mainbottom, user1, user2, user3, banner1, banner2, banner3, banner4, bottom1, bottom2, footer1, footer2.

How to add a menu block into the “nav” position
Goto Admin Panel -> CMS -> Static Blocks -> Add New Block, Set “nav” as the Idenfifier and put this code into the content:

<div class="block block-nav">
<div class="content">
<ul class="menu">
<li class="home"><a href="{{store url=""}}">Home</a></li>
<li class="account"><a href="{{store url=""}}customer/account">My Account</a></li>
<li class="cart"><a href="{{store url=""}}checkout/cart">View Cart</a></li>
<li class="register right"><a href="{{store url=""}}customer/account/create">Register</a></li>
<li class="login right"><a href="{{store url=""}}customer/account/login">Login</a></li>
......
</ul>
</div>
</div>

Note: the “right” class will let the menu align to right.

How to add blocks into left and right sidebar
Goto Admin Panel -> CMS -> Static Blocks -> Add New Block, Set “left” or “right” as the Idenfifier, and here is the example content for block content:

{{block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml"}}
{{block type="core/template" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"}}
<div class="block block-payment">
<h3><span>Payment</span></h3>
<div class="content">
Put content here.
</div>
</div>
{{block type="newsletter/subscribe" name="right.newsletter" template="newsletter/subscribe.phtml"}}
{{block type="core/template" template="hejian/poll-activePoll.phtml}}

How can I add a xxx block

There are some common used blocks:

CMS static block

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

Catalog navigation

{{block type="catalog/navigation" name="catalog.topnav" template="catalog/navigation/top.phtml"}}

Catalog Search

{{block type="core/template" name="top.search" template="catalogsearch/form.mini.phtml"}}

Language Switcher

{{block type="page/switch" name="store_language" template="page/switch/flags.phtml"}}

Random products

<div class="block block-product-random">
<h3>Random products</h3>
<div class="content">
{{block type="catalog/product_list" category_id="17,19" template="hejian/catalog-product-list-random.phtml"}}
</div>
</div>

Leave a Reply

You must be logged in to post a comment.

Wordpress template made by HeJian