9/14/2010

change My Cart text in magento

To Chnage the text of My Cart in top links you need to go app/code/core/Mage/Checkout/Block/ there you will find Links.php .there will be below function


public function addCartLink()
{
if ($parentBlock = $this->getParentBlock()) {
$count = $this->helper(’checkout/cart’)->getSummaryCount();

if( $count == 1 ) {
$text = $this->__(’My Cart (%s item)’, $count);
} elseif( $count > 0 ) {
$text = $this->__(’My Cart (%s items)’, $count);
} else {
$text = $this->__(’My Cart’);
}

$parentBlock->addLink($text, ‘checkout/cart’, $text, true, array(), 50, null, ‘class="top-link-cart"’);
}
return $this;
}

Change “My Cart” to your required text and Upload it to server.then clear the catche to see the effect

9/06/2010

how to change theme in magento

To change theme of Magento you need to login to your admin panel.There is two way to change it
1) Go to System->Design .Click on Add Design Change ,there from Custom Design click on the DropDown to select your Design , then save it to change your theme
Change theme in Magento

2) Go to System->Configuration then click on Design,there from Themes Tab you can change your theme.Write your theme name in Templates and Skin (Images / CSS) Field. then click on save Config to save your theme.

Change theme in Magento

If you don't know you theme name then it is beter to choose First option,Because it is much easier than the second one.One more thing that if you have two store and you want to make 2 different Theme for that two store than you have to follow the first process.

difference between append() and html() in jquery

.aapend() and .html() is the most usefull method in jQuery.But these are far different from one another, .append() add some value with the existing one.whether .html() do the same but it removes the old value
Here is an example is given

<ul id="test">
<li>test</li>
</ul>

Now I will use .append() to add one <li>, For that I will write
<script type="text/javascript>"
jQuery("#test").append("<li>test1</li>");
</script>


The output of this jQuery will be
<ul id="test">
<li>test</li>
<li>test1</li>
</ul>

Now if I use .html() to add one <li>, For that I will write
<script type="text/javascript>"
jQuery("#test").html("<li>test1</li>");
</script>

The output of this Script will be
<ul id="test">
<li>test1</li>
</ul>

Here in this example .append() add one extra <li>, whether .html() removes the old one with new one. This is the main difference between .append() and .html() in Jquery

hide subcategory menu in magento

There is two way to hide subcategory menu.One is from admin panel and other is by css.


1) From Admin Panel :-
Login to admin panel of your magento site then go to System->Configuration. from the left hand side panel click on Catalog, then click on Category Top Navigation tab.Default the value written in the Maximal Depth is 0 , make it 1 to hide the submenu.


Hide Subcategory Menu

2) From Css :-
go to your ...

9/01/2010

Magento connect manager internal server error

This is the most common problem for all Magento User.This problem is only for the File Permission in the server.To solve this Problem first you need to login to your FTP(File Transfer Protocol), then go to your magento installation path their you will find downloader Change the file permission to 755 , Again goto the index.php file inside downloader folder and change the file permission to 755.Now refresh the page you will see the effect.