Magento themes and extensions

BestSeller Products Slider

Posted on July 29th, 2011 | Posted by admin

Thanks you for purchasing this extension.

  1. I. Installation Guide
    Please make sure your Magento store comes ready before you integrate our extensions. If your store has not been available yet, get it quickly following Magento Installation Guide

    You just need follow steps below to get our extensions ready for your Magento store:

  2. 1. Upload folders app, js and skin from our download package to your Web server’s document root (from here on, referenced as{docroot}). These files will overwrite default folders app, js and skin in your Magento folder, you should see a directory layout like this:

{docroot} /magento/app/

Form validation in magento

Posted on July 29th, 2011 | Posted by admin

As you know, Magento uses Prototype as javascript library.  It provides a simple way to validate html form values.

Below is an example:

<form name=”my-form” id=”my-form” method=”post”>
<label for=”firstname”>
< ?php echo $this->__(‘First name’) ?> <span>*</span></label><br />
<input  id=”firstname” name=”firstname” class="input-text required-entry"/>

<label for=”lastname”>
< ?php echo $this->__(‘Last name’) ?> <span>*</span></label><br />
<input  id=”lastname” name=”lastname” class="input-text required-entry"/>


<script type=”text/javascript”>
//< ![CDATA[
var customForm = new VarienForm('my-form');

How to get a block in any where?

Posted on July 29th, 2011 | Posted by admin

By the normal way, you can get a block by using object Layout.

For example,  in a controller:


It is the same with a block or a template file.

But if you want to get a block in a helper, model or any where, what way?

In this case, you can use: Mage::app()->getBlockSingleton(‘module_name/block_name’);

· ·

No comments yet.

Configure server to install Magento (Example xampp) enable InnoDB store Engine

Posted on July 29th, 2011 | Posted by admin

Magento is a script which requires high configuration of your server. Therefore, many people have encountered difficulties when installing Magento. I would like to guide you how to configure your server to use Magento Script step by step.
First, we make the same analysis of the System Requirements (requirements of the system) of Magento as follows:

Supported Operating Systems: OS is the best to run Magento (optional)

* Linux x86, x86-64

Supported Web Servers: The best Webserver to run Magento (optional)

* Apache 1.3.x
* Apache 2.0.x
* Apache 2.2.x
Supported Browsers: The browser which can be used

Show a static block in html

Posted on July 29th, 2011 | Posted by admin

In one of my previous posts, I wrote about how to show a block in a .phtml file but some people asked me about the static block. So here is the solution:
Please put this piece of code into a correct place of the .phtml file that you want to show a static block.

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('my-new-block')->toHtml()
Page 1 of 1612345»10...Last »