Posts filed under ‘PHP’

Magento Remove Customer service

Its very easy to remove did you know customer service  from the Magento Home page.  Just follow the steps given below to remove it very easily.

(For your information, you can just click on the images in this post or any of the posts in this blog to get opened in a new tab or window and you can maximize it / zoom it. All the images used  in this post or any of the posts in this blog are high resolution images so that you can get a clear picture, If there are any discrepancies let me know through your comments )

1. In your magento store admin panel, Go to System-> Configuration and then select Design on the left side bar.

2. Check if your package is ‘default‘ or ‘somecustomethemename‘ . If its ‘default’ then go the following folder location


In case of custom theme go to the following location


3. Create layout folder if its not there

4. Create a new layout file called “local.xml” inside layout folder

and place the code below into it and save it.

<?xml version="1.0"?>
<layout version="0.1.0">
<reference name="left">
<block type="core/template" name="left.permanent.callout" template="callouts/left_col.phtml">
<!--   <action method="setImgSrc"><src>images/media/col_left_callout.jpg</src></action>
<action method="setImgAlt" translate="alt" module="catalog"><alt>Our customer service is available 24/7. Call us at (555) 555-0123.</alt></action>
<action method="setLinkUrl"><url>checkout/cart</url></action> -->

All i have done is Commented out the <action> nodes responsible to display the customer service image. Please use only HTML block comments <!– –>.

5. Go To System->cache management and refresh the cache types “Layouts
and “Block HTML output“. We ‘re done with this.

6. After refreshing just reload your page and find your “Customer Service” image has been removed from the left sidebar in all your magento pages.

If you want to remove it only from the specific pages then let me know, i can update my post.

By the way, Please ignore the following approach , which is no more recommended.

1. Go to yourStorename\app\design\frontend\base\default\layout

In this case its demostore\app\design\frontend\base\default\layout

and find the file “catalog.xml“.

2. We have to override this file by our default template. Create same directory structure what we had for catalog.xml inside base template.

Create Two folders named “template” and “layout” inside app/design/frontend/default/default

3. Copy the File “Catalog.xml” inside the layout folder what we have created inside the default folder.

4. Now open the catalog.xml file which we have copied just now inside default folder and comment out the code attached below which are inside the tag <reference name=”left”>.

magento remove customer service left

FYI :  Kindly use HTML comments <!– –>.


<action method=“setImgSrc”><src>images/media/col_left_callout.jpg</src></action>
<action method=“setImgAlt” translate=“alt” module=“catalog”><alt>Our customer service is available 24/7. Call us at (555) 555-0123.</alt></action>
<action method=“setLinkUrl”><url>checkout/cart</url></action>


5. Go to Varien / Cache directory and delete the files or flush your cache from the Magento admin panel. Now refesh the browser and see the Customer service did you know block has been removed successfully from the home page.

Cheers 🙂

If you have appreciations, suggestions, difficulties or discrepancies with this kindly let me know through your comments.

Catch you with another useful Magento article

You may also need this

Magento Remove Back To school

Magento remove Paypal logo


November 25, 2010 at 8:46 PM 8 comments

Magento Email Templates

Magento has a great set of options to manage the Email Templates. Here we are going to see how to create our own Email templates for forgot password and how to change the magento default Email Templates and change the Email Sender options etc. Lets see it straight away.

(For your information, you can just click on the images in this post or any of the posts in this blog to get opened in a new tab or window and you can maximize it / zoom it. All the images used  in this post or any of the posts in this blog are high resolution images so that you can get a clear picture, If there are any discrepancies let me know through your comments )

We are going to create a “New Forgot Password Template” and override the default forgot password template in just 8 easy steps.

1. Go to System -> Transactional Emails

2. You will get a new block called “Transactional Emails” with the list of email templates. By default you can find no one.

3. Click on  “Add New Template” to create our own Email Template.

4. Choose the template “New Password” from the available list of options in the first drop down menu.

5. Choose your “Locale” or “Language settings“. In this case it is “English (United States)”. And here i want to leave a note. In case if you select German (Germany) and not able to see the german email template then it means you have to change your store configuration locale to German. After changing this you can get the “Deutsch (Deutschland)”  and the email template for forgot password in german.

6. Now click on “Load Template” and you can see the template subject, template content and template styles. Make necessary changes to your template as you wish and give your template a name.

For example if you want to change the magento Email Logo. Just Copy your New Email Logo to the default skin\frontend\default\default\images location and replace the default magento logo ‘logo_email.gif‘ with your new email logo file name lets say ‘mystore_logo_email.png‘.

In this case “MyStore New Password” and preview the template  if it looks good for you then go ahead and save the template as “mystore new password”.

7. Its not over yet. So far we have created only a new email template for “forgot Password”. Still we have to assign this as the Forgot Email template instead of the default magento email template and change the email configurations. Lets see what we have to still to get our new email email template for forgot password.

Click on both the links “Configuration” and “Customer Configuration” to change the Magento Email settings.

At first let us see what we have to change in configuration.

Go to System -> Configuration -> Store Email Addresses and change the email addresses for the General, Customer support etc.

8. Then Go to System -> Configuration -> Customer Configuration.  Click on the “Password Options” and assign our new email template “mystore new password” as an email template for forgot password. And we can also choose the Email Sender too from the drop down last for Forgot Password emails.

And save the Configuration. Now we are all set just click on the forgot password link in the customer login option on front end (Don’t try with the forgot password for magento admin panel because we have created a new email template only for Customer new password not for Admin New Password). Here we get our own Forgot / New Password Email with our own Logo in our own fashion and colours. Cheers 🙂 Hope this is clear. If you have any difficulties or discrepancies let me know through your comments.

Catch you with one another useful magento article.

November 24, 2010 at 8:41 PM 20 comments

First PHP Program

Now its time to code and run your first PHP program. We have learned how to install XAMPP on your environment in the previous article.

So we have successfully installed xampp and now it’s time for PHP. 

i. Open notepad and copy paste the following PHP code into it or just use the attached file and copy it in htdocs folder inside xampp (eg:c:\\xampp\htdocs\).


 echo "<center><b>Kudos !!! You have successfully run your first PHP scrip on Windows</b></center>";
 echo "<br/><center><b>Welcome to <h2>PHP</h2> the language of web</b></center>";
 echo "<br/><center>For any PHP queries Contact :<a href=''>haijerome</a></center> ";


ii Save the file as “haiphp.php” into htdocs folder of xampp server (eg: c:\\xampp\htdocs\) and select save as type “All Files”.


If you don’t save your file type as ‘all files’ then you won’t get your PHP script running. Just because of this small issue, I have got a number of emails in my inbox and believe it or not, it forced me to write this article.  And I have to thank this issue, because i have got  a quite number of clients who turned into my friends later, all because of this little issue. So save you file type as ‘All Files’

And my kind suggestion is to use Notepad++ or if you want to be very professional then download Net Beans or buy Dream Weaver.

iii. Now type the url “http://localhost/haiphp.php” and see the PHP script running like a cake on your localhost web browser.

If you have followed the step ii of step 2 then type the URL like this http://localhost:81/haiphp.php assumed that your port number is 81.  If not, give the port number that you have saved as listen port number in the httpd.conf file.


If you get any page not found or object not found or 404 error, then try with this http://localhost/xampp and conform whether you’re getting the xampp home page.  If it displays the XAMPP home page then verify that you have saved your PHP file inside htdocs folder and the file name as haiphp.php and file type as ‘all files’.

If you don’t even get the xampp home page, then make sure Apache is running.  Follow the article how to install xampp to get xampp or apache running on your  localhost to resolve object not found or object not found error no : 404.

August 2, 2010 at 6:47 PM Leave a comment

Installing Xampp

Download XAMPP,  an opensource package that holds Apache, PHP, MySQL, PERL (very old but powerful) which makes our work easier. Read more here (I mean the installation and configuration of PHP, Apache and MySQL on windows).  Download XAMPP self extracting RAR archive .EXE file which in turn is an easy way rather than a zipped archive. Install it on your top level folder / directory of any drive Eg : C:\xampp or D:\xampp. The instructions on the XAMPP web page are very clear with good screenshots.

A few words about XAMPP ingredients,

Apache – A powerful and popular Web server to run server side scripts like PHP, ASP, JSP, CFML etc. Read More

PHP – A simple, flexible, powerful and easy to learn and get help server side scripting language with huge community support. Read More

MySQL – An open source RDBMS (database management system) with great set of features and very compatible with PHP. Read More

PERL –  A 22 year-old powerful scripting language — perhaps a pioneer of PHP or server side scripting.   A person with the basics of ‘C’ and ‘UNIX’ finds it easier to work with.Read More

Now just open your folder where you have installed XAMPP and run the xampp control panel by running xampp-control.exe inside your xampp folder.

If you find the running… label highlighted in green color next to Apache and MySql then it is time to script your first PHP program, and our environment is ready.  If not, just click the check boxes near to Apache and MySQL to install them as Windows services and click start button.  (Wait for a while, don’t lose your temper — don’t click the start button again and again which you more likely to do as a beginner.)

At this point, some  get struck — they find Apache / xampp not running on localhost even after this.  Most of the times it is because the IIS (Microsoft’s web server) runs by default and occupied the HTTP port  : 80, which Apache demands by default. There are two ways to resolve this.

The easy way:
Type services.msc in the run window.  In other words Windows Key + R and type services.msc and click OK.  Find the IIS admin in the list of services shown in the window below.  If you find its status ‘started’ and startup type ‘automatic’ then right click on IIS admin and select Properties option in the pop up screen and stop the IIS service and change its startup type to disabled from the drop down list.  And click OK.

Now find Apache in the same list of services right click on it start the service and change its property as default start up type as ‘automatic’. Now click xampp-control.exe inside your xampp folder and start the MySql service.  That’s all.

OR…. the other way
The next way is to open ‘httpd.conf’ in the following location YOURDRIVE:\xampp\apache\conf. It is ia simple text file.   Change ‘Listen 80’ to Listen 81 or Listen 8085 or the port number you wish (but don’t use the reserved port numbers).

And restart your Apache and MySQL.

You can follow either of these two options as per your wish.  I don’t recommend or insist that you choose only one of them rather than the other one.

July 19, 2010 at 5:05 PM 2 comments

An Introduction to PHP

PHP commonly known as  Hypertext PreProcessor. And some of them expand it in other way Personal home Page. PHP is a the most popular open source scripting. Even some developers call it as The Language of web. It is the easiest server-side script to learn and to work with. To know more about the origin of PHP and who created it and who are all contributed to it, click here

What is a server-side scripting ?

A program resides in the server to respond the web client (browser) with a dynamic web content. Here’s a real time example, the Gmail’s sign in  form. In the login form you give your credentials (username and password) and click the submit button.  If you are valid user it will get you to your inbox otherwise ask you to enter your valid credentials. Well How Gmail validate your credentials. Yeah here server side scripting comes into the picture.  There is a piece of computer s/w program which resides in google mail server to validate your credentials and return you with a dynamic web content. And that s/w program is called as server side script or a server side program.

Why PHP ?

Even though there are many server side languages available like ASP, JSP, CFML, RoR, Python , PHP gains much more popularity than any of these. Its all because of its simplicity to learn and code. And also there are huge number of communities and forums are available on the web for PHP. Most of its syntaxes are borrowed from perl and C. Thats why its very robust and most people prefer it. Ok whats the orgin of php and who created it? Click here for the history of php.

Advantages of PHP

The following are the advantages of PHP over other languages.

  1. PHP is open source and license free. So it is cost-effectiveto develop a project using PHP.
  2. PHP is light weight. It doesn’t require much memory or system configuration to run.
  3. PHP runs on nearly every modern platform (operating system) in existence. So it is platform independent.
  4. PHP runs on both IIS and apache, the two most widely used web browsers.
  5. PHP has a huge community support and more number of learning resources available on the web.
  6. PHP has a big library of classes for all the common things needed for a web applicaiton like paging, csv export, reporting etc.
  7. PHP is faster than and JSP in both processing and rendering web pages.
  8. PHP is easier to integrate with HTML

Besides these there are many advantages of PHP over other languages. If you want to know, Click here

December 31, 2009 at 7:22 PM 1 comment

Most Searched Keywords

magento PHP


Recent Posts

Blog Stats

  • 93,006 hits