Magento configuration to change site URL
In magento by deafult the configuration information for site management is kept in database table. The name of the table is ‘core_config_data’. If we analyze the tables we get that magento keeps its data in the following table. So if we want to develop our application in our localhost and then deploy the site in the hosting server we might need to change the path accordingly to run the site from that server.
Here we see that magento keeps its base url as below
(2, ‘websites’, 2, ‘web/unsecure/base_url’, ‘http://192.167.3.7/magento/’)
So here we can change that url easily as we need to. This way we can configure multiple URL for multiple site also. In my case this tricks worked fine with Magento 1.3.1
CREATE TABLE `core_config_data` (
`config_id` int(10) unsigned NOT NULL auto_increment,
`scope` enum(‘default’,'websites’,’stores’,'config’) NOT NULL default ‘default’,
`scope_id` int(11) NOT NULL default ‘0′,
`path` varchar(255) NOT NULL default ‘general’,
`value` text NOT NULL,
PRIMARY KEY (`config_id`),
UNIQUE KEY `config_scope` (`scope`,`scope_id`,`path`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=28 ;
–
– Dumping data for table `core_config_data`
–
INSERT INTO `core_config_data` (`config_id`, `scope`, `scope_id`, `path`, `value`) VALUES
(1, ‘default’, 0, ‘catalog/category/root_id’, ‘2′),
(2, ‘websites’, 2, ‘web/unsecure/base_url’, ‘http://192.167.3.7/magento/’),
(3, ‘websites’, 2, ‘web/unsecure/base_link_url’, ‘{{unsecure_base_url}}ucc/’),
(4, ‘websites’, 2, ‘web/secure/base_url’, ‘https://192.167.3.7/magento/’),
(5, ‘websites’, 2, ‘web/secure/base_link_url’, ‘{{secure_base_url}}ucc/’),
(6, ‘websites’, 2, ‘web/default/front’, ‘cms’),
(7, ‘websites’, 2, ‘web/default/cms_home_page’, ‘home’),
(8, ‘websites’, 3, ‘web/unsecure/base_url’, ‘http://192.167.3.7/magento/’),
(9, ‘websites’, 3, ‘web/unsecure/base_link_url’, ‘{{unsecure_base_url}}technocare/’),
(10, ‘websites’, 3, ‘web/secure/base_url’, ‘https://192.167.3.7/magento/’),
(11, ‘websites’, 3, ‘web/secure/base_link_url’, ‘{{secure_base_url}}technocare/’),
How to remove callout section from magento?
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:
<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>
how to hide wishlist link in magento?
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 !
-
Archives
- September 2009 (1)
- August 2009 (2)
- July 2009 (3)
- June 2009 (2)
- May 2009 (3)
- April 2009 (2)
- March 2009 (11)
- February 2009 (6)
- August 2008 (1)
- May 2008 (2)
- March 2008 (1)
-
Categories
-
RSS
Entries RSS
Comments RSS