how to add Home menu in magento home page - magento

How to add Home menu in magento home page. I add the code In this location
magento\app\design\frontend\default\grayscale\template\catalog\navigation
<li>
<a href="<?php echo $this->getUrl('') ?>">
<?php echo $this->__('Home'); ?>
</a>
</li>
But home menu not displayed on the home page of Magento

You have to keep the categories you want to display in menu under the root directory.
There may be more cases possible on why menu is not appearing.
Please consider following these guides :
http://www.magentocommerce.com/wiki/3_-_store_setup_and_management/catalog/enable_top_menu_navigation
http://www.atwix.com/magento/how-to-add-a-new-item-to-the-navigation-menu/
http://www.youtube.com/watch?v=w4z1RyyFHhU

Are you sure this is the template you're store is using?
You can check by enabling template hints in the developer section of the admin area.
this will hiliight all the blocks/templates for you and show the path to each file used. You will be able to check if the template you have modified is the template being used.

Related

Magento: change format url languages switcher

Whene i change the languages in magento , the url displayed is bellow :
http://xxxxxx.xx/?___store=english&___from_store=default , so my question is change this to
be like this http://xxxxx.xx/en/.......
Please can you propose me how to do this in magento ?
Firstly go to admin panel System -> Configuration
Under Configuration -> Web -> Url options and change ‘Add Store Code to Urls’ to ‘Yes’.
Then change template file app/design/frontend/enterprise/default/template/page/switch/languages.phtml line 50 (or similar destination for your custom theme)
<a href="<?php echo $_lang->getCurrentUrl() ?>
to
<a href="<?php echo $_lang->getCurrentUrl(false) ?>

Adding magento menu to custom page

I have a magento custom page which is the homepage for our site - the guy before me however for some reason did not add the main menu to this page. How would I go about doing this?
The way i work with menus in Magento is:
First, i create a custom block, from the cms menu, in that block i add the li:
<li>Home</li>
Then in your template, edit the following file: app/desing/frontend/yourtheme/default/page/html/topmenu.phtml
you will see: <?php echo $_menu ?> before it add:
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('yourblockname')->toHtml() ?>
And then you will be able to manage the menu option from your admin panel in your custom block.
I hope this help.

How to edit footer part in magento framework?

I am new in magento.I want to change footer part.
my footer file path: D:\wamp\www\magento\app\design\frontend\base\default\template\page\html\footer.phtml.
<div class="footer-container">
<div class="footer">
<?php echo $this->getChildHtml() ?>
<p class="bugs"><?php echo $this->__('Help Us to Keep Magento Healthy') ?> - <strong><?php echo $this->__('Report All Bugs') ?></strong> <?php echo $this->__('(ver. %s)', Mage::getVersion()) ?></p>
<address><?php echo $this->getCopyright() ?></address>
</div>
Now I want to remove Help us to keep sentence.
please tell me how to remove this
I have deleted fulll then also it is shown in frontend.
Go to admin section System>Configuration>Advanced>Developer>Debug Then enable Template path hints. After this refresh your site frontend.
You will get the correct information from which theme your file is being loaded.
Then change the correct footer.phtml file.
This message will go.
I think you are new to magento.
For better knowledge read Design Packages
This is a cache issue.
Navigate to your site's cache:
public_html/var/cache //Or where ever the route of your Magento cart is.
Then Delete all the things in the var directory!
Refresh your site and your changes should appear.

Advanced search result is not coming in magento on home page

i added advanced search option on my home page by placing this code in
/app/design/frontend/default/hellowired/template/page/2columns-right.phtml
<div>
<?php echo
$this->getLayout()->createBlock('catalogsearch/advanced_form')->setTemplate('catalogsearch/advanced/form.phtml')->toHtml()
?>
</div>
when press submit button then it giving me nothing. so result are not showing... please help
Check if you are getting the post url of the form as {{base-url}}/catalogsearch/advanced/result/

How to add "add to wishlist" button on product detail page in Magento

I am new to Magento.I am learning it.
I want to add a button "Add to Wishlist" near to "add to cart" button in Magento product detail page.
How can I do this so that the selected product will be added to wishlist.
Please Help
Thanks.
This feature already exist in Magento.
If you want to check this feature via Code than check this out -
<div class="add-to-box">
<?php echo $this->getChildHtml('addto') ?>
</div>
This Code you can find within [Theme]/template/catelog/product/view.phtml.
This code causes to call "Add to wishlist" button in Product Detail Page and this button comes from [Theme]/template/catelog/product/view/addto.phtml.
From here you can manage this Button.
You can also enable or disable this feature via Admin Section -
To control the display of the Add to Wishlist link:
From the Admin panel, select System > Configuration.
In the Configuration panel on the left, under Customers, select the Wishlist tab.
Click to expand the General Options section and do one of the following:
Set Enabled to Yes to display the Add to Wishlist link on category pages and product pages.
Set Enabled to No to remove the Add to Wishlist link from category pages and product pages.
Hope it'll be helpful.
Thanks!
Simple go to: ...catalog/product/view/addto.phtml and then:
<a href="<?php echo $this->
helper('wishlist')->getAddUrl($_product) ?>">
<?php echo $this->__('Add to Wishlist') ?></a>
Use the following code for 'Add to wishlist' button
<a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>"
class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a>
Use the following code for 'Add to cart' button
<button type="button" title="<?php echo $this->__('Add to Cart') ?>"
class="button btn-cart"
onclick="setLocation('<?php echo $this->helper('checkout/cart')->getAddUrl($_product) ?>')">
<span>
<span><?php echo $this->__('Add to Cart') ?></span>
</span>
</button>
I would have written this as a comment on Anx's answer but I don't have 50 reputation yet (funny system, surely comments are more trivial than answers?) so I'm adding another answer instead.
If you still have trouble after following Anx's advice then maybe you've got the same odd situation that I had - no entry in the core_config_data table for the config setting "wishlist/general/active". Even though it was marked as active in the admin panel. To fix it, I simply went to System > Configuration > Wishlist and clicked "Save Config" without changing anything. Presto, the entry appeared in core_config_data (along with "wishlist/email/email_template", "wishlist/email/email_identity" and "wishlist/wishlist_link/use_qty").

Resources