Magento: change format url languages switcher - magento

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) ?>

Related

Joomla taks works with Friendly url OFF but do not with Friendly url ON

I have trouble with joomla 3.3.3 site. When my Firendly url is off this url with task works fine
<?php echo JText::_('EZWATCHLISTS_DELETE')?>
but when i turn ON Friendly url task is ignored.
NOTICE: When I look in file inspector I see link like this:
and when copy paste that link then task works fine.
Please help.
With Joomla, you should use the JRoue class which will take care of all your URLs for you, whether you have SEF enabled or disabled. So change you code to the following:
<a href="<?php echo JRoute::_('index.php?option=com_ezwatchlists&task=delete&rowid=' . $row->id); ?>">
<?php echo JText::_('EZWATCHLISTS_DELETE'); ?>
</a>
For more information, have a read of the following:
https://docs.joomla.org/Supporting_SEF_URLs_in_your_component
Hope this helps

call magento dashboard using php anchor

How do I call the magento dashobard using an anchor? I need to call the magento dashboard when I put it in an anchor?
<a href="<?php //what do I add here? ?>">
Below is the code which is working in my one of custom extension in magento custom grid.
you can use like below.
<a href="<?php echo Mage::helper('adminhtml')->getUrl("adminhtml/dashboard/index");?>" target="_blank">
test
</a>
hope this will sure work for you. let me know if i can help you further.

how to add Home menu in magento home page

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.

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.

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