<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Agence de Développement Informatique du Nord &#187; adminhtml</title>
	<atom:link href="http://blog.adin.pro/tag/adminhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.adin.pro</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Thu, 26 Dec 2019 08:54:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>magento &#8211; get quote in admin</title>
		<link>http://blog.adin.pro/2018-05-25/magento-get-quote-in-admin/</link>
		<comments>http://blog.adin.pro/2018-05-25/magento-get-quote-in-admin/#comments</comments>
		<pubDate>Fri, 25 May 2018 08:28:08 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[adminhtml]]></category>
		<category><![CDATA[quote]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=563</guid>
		<description><![CDATA[<p>Getting the current or session quote on admin is different that on front office. I be sure to get the right one, use this :</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-05-25/magento-get-quote-in-admin/">magento &#8211; get quote in admin</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Getting the current or session quote on admin is different that on front office.<br />
I be sure to get the right one, use this :</p>
<pre class="brush: php; title: ; notranslate">
 if(Mage::app()-&gt;getStore()-&gt;isAdmin()) {
   $quote = Mage::getSingleton('adminhtml/session_quote')-&gt;getQuote();
 }else{
   $quote = Mage::getSingleton('checkout/session')-&gt;getQuote();
 }
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-05-25/magento-get-quote-in-admin/">magento &#8211; get quote in admin</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2018-05-25/magento-get-quote-in-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento: How to remove Secret Key from Admin URL?</title>
		<link>http://blog.adin.pro/2018-05-03/magento-how-to-disable-remove-secret-key-from-admin-url/</link>
		<comments>http://blog.adin.pro/2018-05-03/magento-how-to-disable-remove-secret-key-from-admin-url/#comments</comments>
		<pubDate>Thu, 03 May 2018 09:00:31 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[adminhtml]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=559</guid>
		<description><![CDATA[<p>It&#8217;s here : System -> Configuration -> ADVANCED -> Admin -> Security -> Add Secret Key to URLs</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-05-03/magento-how-to-disable-remove-secret-key-from-admin-url/">Magento: How to remove Secret Key from Admin URL?</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s here : System -> Configuration -> ADVANCED -> Admin -> Security -> Add Secret Key to URLs</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-05-03/magento-how-to-disable-remove-secret-key-from-admin-url/">Magento: How to remove Secret Key from Admin URL?</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2018-05-03/magento-how-to-disable-remove-secret-key-from-admin-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; are you in the adminhtml ?</title>
		<link>http://blog.adin.pro/2018-02-05/magento-are-you-in-the-adminhtml/</link>
		<comments>http://blog.adin.pro/2018-02-05/magento-are-you-in-the-adminhtml/#comments</comments>
		<pubDate>Mon, 05 Feb 2018 09:11:22 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[adminhtml]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=550</guid>
		<description><![CDATA[<p>To know if you are in the adminhtml or in another store, you can simply do :</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-02-05/magento-are-you-in-the-adminhtml/">Magento &#8211; are you in the adminhtml ?</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>To know if you are in the adminhtml or in another store, you can simply do :</p>
<pre class="brush: php; title: ; notranslate">
if(Mage::app()-&gt;getStore()-&gt;isAdmin()){
  //I'm in the admin
}
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-02-05/magento-are-you-in-the-adminhtml/">Magento &#8211; are you in the adminhtml ?</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2018-02-05/magento-are-you-in-the-adminhtml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; empty $_FILES while uploading files in adminhtml</title>
		<link>http://blog.adin.pro/2016-10-04/magento-empty-_files-while-uploading-files-in-adminhtml/</link>
		<comments>http://blog.adin.pro/2016-10-04/magento-empty-_files-while-uploading-files-in-adminhtml/#comments</comments>
		<pubDate>Tue, 04 Oct 2016 06:53:40 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[adminhtml]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=523</guid>
		<description><![CDATA[<p>You made a form in adminhtml with upload file but in the controller the $_FILES var is hopelessly empty ? You probably forgot to add &#8220;&#8216;enctype&#8217; => &#8216;multipart/form-data&#8217;,&#8221; on your form declaration example : file : /app/code/local/Adin/Shipping/Block/Adminhtml/Delivery/Cost/Import/Edit/Form.php</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2016-10-04/magento-empty-_files-while-uploading-files-in-adminhtml/">Magento &#8211; empty $_FILES while uploading files in adminhtml</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>You made a form in adminhtml with upload file but in the controller the $_FILES var is hopelessly empty ?<br />
You probably forgot to add &#8220;&#8216;enctype&#8217;   => &#8216;multipart/form-data&#8217;,&#8221; on your form declaration</p>
<p>example :<br />
file : /app/code/local/Adin/Shipping/Block/Adminhtml/Delivery/Cost/Import/Edit/Form.php</p>
<pre class="brush: php; title: ; notranslate">
protected function _prepareForm()
{
$form = new Varien_Data_Form(array(
            'id'        =&gt; 'edit_form',
            'action'    =&gt; $this-&gt;getUrl('*/*/save', array('id' =&gt; $this-&gt;getRequest()-&gt;getParam('id'))),
            'method'    =&gt; 'post',
            'enctype'   =&gt; 'multipart/form-data',
        ));

 $fieldset-&gt;addField('fichier', 'file', array(
            'label'     =&gt; $helper-&gt;__('Data file'),
            'value'	=&gt; 'upload',
            'name'  =&gt; 'fichier',
            'after_element_html'     =&gt; $helper-&gt;__('&lt;small&gt;File from carrier&lt;/small&gt;'),
            'required'  =&gt; true,
        ));
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2016-10-04/magento-empty-_files-while-uploading-files-in-adminhtml/">Magento &#8211; empty $_FILES while uploading files in adminhtml</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2016-10-04/magento-empty-_files-while-uploading-files-in-adminhtml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento : how to get current user ?</title>
		<link>http://blog.adin.pro/2014-09-24/magento-how-to-get-current-user/</link>
		<comments>http://blog.adin.pro/2014-09-24/magento-how-to-get-current-user/#comments</comments>
		<pubDate>Wed, 24 Sep 2014 12:49:14 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[adminhtml]]></category>
		<category><![CDATA[current user]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=407</guid>
		<description><![CDATA[<p>Need to get the current user in magneto ? Here how to. Frontend : Backend :</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2014-09-24/magento-how-to-get-current-user/">Magento : how to get current user ?</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Need to get the current user in magneto ?<br />
Here how to.</p>
<p>Frontend :</p>
<pre class="brush: php; title: ; notranslate">
if(Mage::getSingleton('customer/session')-&gt;isLoggedIn())
{
     Mage::getSingleton('customer/session')-&gt;getCustomer();
}
//or
Mage::helper('customer')-&gt;getCustomerName();
</pre>
<p>Backend :</p>
<pre class="brush: php; title: ; notranslate">
$user = Mage::getSingleton('admin/session')-&gt;getUser();
//bonus : roles
$uer-&gt;getRoles();
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2014-09-24/magento-how-to-get-current-user/">Magento : how to get current user ?</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2014-09-24/magento-how-to-get-current-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
