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.
Related
I am using magento 1.9.1 and trying to create a product link directly on cms page.I have created a custombutton.phtml file and add button code here.
<?php $formKey = Mage::getSingleton('core/session')->getFormKey(); ?>
<a class="animated infinite swing btn btn-yellow btn-lg m-r-2" role="button" href="abc.com/checkout/cart/add?product=401&qty=1&form_key=<?php echo $formKey ?>">Add to cart</a>
Now i am calling this phtml file as block on cms page.
{{block type="core/template" name="custombutton" template="custombutton.phtml"}}
But sometimes it is showing button and sometimes not. Not getting the issue.
Please give rights to block goto->system->permissions->block
and add your block name. Hope this helps
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
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) ?>
I have the following href on a page /example/index.php that I want to take me to my magento shopping cart:
href="/example/catalog/index.php/checkout/cart/"
However, it always redirects to /example/catalog/
When I am on /example/catalog/ and I trigger the same href it goes to the correct page but not from my main page.
Can someone please explain how to fix this?
Is your Magento installation inside /example/catalog/?
If yes, then you can
href="<?php echo $this->getUrl('checkout/cart') ?>"
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.