Lays or Pringles ? :P

How to remove callout section from magento?

Posted by: milansaha on: July 6, 2009

For the modification of this block there are two ways in magento layout. They are pretty simple. Just try to follow the steps below.

1.To remove left callout follow the following steps:

  • Open app/design/frontend/default/default/layout/catalog.xml
  • Search for col_left_callout (default line 53)
  • Remove all of the following code:
<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 (800) DEMO-NUMBER.</alt></action>
<action method=”setLinkUrl”><url>checkout/cart</url></action>
</block>
</reference>

2.Or To remove right callout you can follow the following steps:

  • Open app/design/frontend/default/default/template/callouts/right_col.phtml
  • Remove all of the following code:

<div class=”box”>
<img src=”<?php  echo $this->getSkinUrl(’images/media/col_right_callout.jpg’) ?>” width=”195″
alt=”<?php echo __(’Keep your eyes open for our special Back to School items and save A LOT!’) ?>”
style=”display:block;” />
</div>

Changing the www root directory of Apache server in wamp ?

Posted by: milansaha on: July 3, 2009

When it’s necessary to change your current www root folder to another folder,it needs some changes in your apache configuration file.

The file which is responsible for Apache configuration is called httpd.conf. if u already stared your wamp server, you will see wamp icon on start up.To get accees to httpd.conf file just click on the wamp icon then go to config files and select httpd.conf. WAMP provides quick access to certain important files, one of them being httpd.conf.

Now follow the steps below :

  • Find the documentroot in the file.
  • You should find a line that looks like DocumentRoot “C:/Program Files/wamp/www/”.
  • Copy that line then put a # in front of it: #DocumentRoot “C:/Program Files/wamp/www/”.
  • We put the # character to comment this line.
  • Now paste this line and customize the root folder(www) path to  DocumentRoot “D:/Projects/”In this case let us assume that the root folder is in the “Projects” folder of your “D” drive.
  • If you search again as above you’ll find another line like: <Directory “C:/Program Files/wamp/www/”>.
  • Again copy the line, put a # in front, paste copied line below and adjust it to  <Directory “D:/Projects/”.
  • Now save the file and restart your Apache server to make the changes in action.

Hope it works :D

how to hide wishlist link in magento?

Posted by: milansaha on: June 18, 2009

In magento i think most of you are familiar with the top links section where wish list,my cart,log in etc are shown.But what if you need to hide one of the links. Usually is magento its being shown dynamically. Still it is possible to hide the link without editing the codes or any programming.

The trick is You must edit the wishlist.xml file in order to avoid the link to appear in the upper menu.

Now the question is how you will get that xml file,right? Well if you are familiar with the directory structure of  magento then its pretty easy to find it out.

Go here :  app/design/frontend/deafult/Your Theme Name/layout/wishlist.xml

Now comment out the following lines like below :

<!—-<reference name=”top.links”>

<block type=”wishlist/links” name=”wishlist_link”>

<action method=”addWishlistLink”></action>

</block>

</reference>

<reference name=”right”>

<block type=”wishlist/customer_sidebar” name=”wishlist_sidebar” as=”wishlist” after=”cart_sidebar” template=”wishlist/sidebar.phtml”/>

</reference> —->

Thats it !