<?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; Magento</title>
	<atom:link href="http://blog.adin.pro/category/magento-2/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 change title, meta description &amp; keywords</title>
		<link>http://blog.adin.pro/2019-12-26/magento-change-title-meta-description-keywords/</link>
		<comments>http://blog.adin.pro/2019-12-26/magento-change-title-meta-description-keywords/#comments</comments>
		<pubDate>Thu, 26 Dec 2019 08:54:31 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[title]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=581</guid>
		<description><![CDATA[<p>Go on your Block class and do :</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2019-12-26/magento-change-title-meta-description-keywords/">Magento change title, meta description &#038; keywords</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>Go on your Block class and do :</p>
<pre class="brush: php; title: ; notranslate">
    public function _prepareLayout() {
        $head = $this-&gt;getLayout()-&gt;getBlock('head');
        $head-&gt;setTitle(&quot;Your Title&quot;);
        $head-&gt;setKeywords(&quot;keyword1, keyword2, keyword3&quot;);
        $head-&gt;setDescription(&quot;Your meta description&quot;);
        return parent::_prepareLayout();
    }
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2019-12-26/magento-change-title-meta-description-keywords/">Magento change title, meta description &#038; keywords</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/2019-12-26/magento-change-title-meta-description-keywords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; where is calculated available payment method ?</title>
		<link>http://blog.adin.pro/2018-12-28/magento-where-is-calculated-available-payment-method/</link>
		<comments>http://blog.adin.pro/2018-12-28/magento-where-is-calculated-available-payment-method/#comments</comments>
		<pubDate>Fri, 28 Dec 2018 14:12:41 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[payment method]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=575</guid>
		<description><![CDATA[<p>Available payment method for your order is calculated here : src/src/app/code/core/Mage/Payment/Helper/Data.php::getStoreMethods() And call src/src/app/code/core/Mage/Payment/Model/Method/Abstract.php::isAvailable() &#038;&#038; isApplicableToQuote()</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-12-28/magento-where-is-calculated-available-payment-method/">Magento &#8211; where is calculated available payment method ?</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>Available payment method for your order is calculated here :<br />
 src/src/app/code/core/Mage/Payment/Helper/Data.php::getStoreMethods()</p>
<p>And call<br />
 src/src/app/code/core/Mage/Payment/Model/Method/Abstract.php::isAvailable() &#038;&#038; isApplicableToQuote()</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-12-28/magento-where-is-calculated-available-payment-method/">Magento &#8211; where is calculated available payment method ?</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-12-28/magento-where-is-calculated-available-payment-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; All payment methods</title>
		<link>http://blog.adin.pro/2018-08-29/magento-all-payment-methods/</link>
		<comments>http://blog.adin.pro/2018-08-29/magento-all-payment-methods/#comments</comments>
		<pubDate>Wed, 29 Aug 2018 08:43:40 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[payment method]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=572</guid>
		<description><![CDATA[<p>Is there a function to get all available payment methods in magento ? YES app/code/core/Mage/Payment/Model/Config.php</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-08-29/magento-all-payment-methods/">Magento &#8211; All payment methods</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>Is there a function to get all available payment methods in magento ? YES</p>
<p>app/code/core/Mage/Payment/Model/Config.php</p>
<pre class="brush: php; title: ; notranslate">
public function getActiveMethods($store=null)
    {
        $methods = array();
        $config = Mage::getStoreConfig('payment', $store);
        foreach ($config as $code =&gt; $methodConfig) {
            if (Mage::getStoreConfigFlag('payment/'.$code.'/active', $store)) {
                if (array_key_exists('model', $methodConfig)) {
                    $methodModel = Mage::getModel($methodConfig['model']);
                    if ($methodModel &amp;&amp; $methodModel-&gt;getConfigData('active', $store)) {
                        $methods[$code] = $this-&gt;_getMethod($code, $methodConfig);
                    }
                }
            }
        }
        return $methods;
    }
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-08-29/magento-all-payment-methods/">Magento &#8211; All payment methods</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-08-29/magento-all-payment-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; get client&#8217;s IP</title>
		<link>http://blog.adin.pro/2018-07-03/magento-get-clients-ip/</link>
		<comments>http://blog.adin.pro/2018-07-03/magento-get-clients-ip/#comments</comments>
		<pubDate>Tue, 03 Jul 2018 13:50:50 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[IP]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=569</guid>
		<description><![CDATA[<p>To get customer&#8217;s IP, behind a proxy or not, you can use this build in function in magento refers to lib/Zend/Controller/Request/Http.php</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-07-03/magento-get-clients-ip/">Magento &#8211; get client&#8217;s IP</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 get customer&#8217;s IP, behind a proxy or not, you can use this build in function in magento</p>
<pre class="brush: php; title: ; notranslate">
 Mage::app()-&gt;getRequest()-&gt;getClientIp(true);
</pre>
<p>refers to lib/Zend/Controller/Request/Http.php</p>
<pre class="brush: php; title: ; notranslate">
 /**
     * Get the client's IP addres
     *
     * @param  boolean $checkProxy
     * @return string
     */
    public function getClientIp($checkProxy = true)
    {
        if ($checkProxy &amp;&amp; $this-&gt;getServer('HTTP_CLIENT_IP') != null) {
            $ip = $this-&gt;getServer('HTTP_CLIENT_IP');
        } else if ($checkProxy &amp;&amp; $this-&gt;getServer('HTTP_X_FORWARDED_FOR') != null) {
            $ip = $this-&gt;getServer('HTTP_X_FORWARDED_FOR');
        } else {
            $ip = $this-&gt;getServer('REMOTE_ADDR');
        }

        return $ip;
    }
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-07-03/magento-get-clients-ip/">Magento &#8211; get client&#8217;s IP</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-07-03/magento-get-clients-ip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; test abandoned cart email</title>
		<link>http://blog.adin.pro/2018-07-02/magento-test-abandoned-cart-email/</link>
		<comments>http://blog.adin.pro/2018-07-02/magento-test-abandoned-cart-email/#comments</comments>
		<pubDate>Mon, 02 Jul 2018 06:02:18 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[abandoned cart]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=566</guid>
		<description><![CDATA[<p>A test script to test abandoned cart email</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-07-02/magento-test-abandoned-cart-email/">Magento &#8211; test abandoned cart email</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>A test script to test abandoned cart email</p>
<pre class="brush: php; title: ; notranslate">
//test email abandonned cart
$storeId = 13;
$store = Mage::getSingleton('core/store')-&gt;load($storeId);
$quote = Mage::getModel('sales/quote')-&gt;setStore($store)-&gt;load(347453);
$email = &quot;test@adin.pro&quot;;
// send email
$senderid = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::SENDER, $storeId);
$sender = array('name' =&gt; Mage::getStoreConfig(&quot;trans_email/ident_$senderid/name&quot;, $storeId), 'email' =&gt; Mage::getStoreConfig(&quot;trans_email/ident_$senderid/email&quot;, $storeId));



$name = $quote-&gt;getCustomerFirstname() . ' ' . $quote-&gt;getCustomerLastname();
$unsubscribeUrl = Mage::getModel('core/url')-&gt;setStore($storeId)-&gt;getUrl() . 'ebizautoresponder/autoresponder/unsubscribe?list=abandonedcart&amp;email=' . $email . '&amp;store=' . $storeId;
$couponcode = '';

// if days have passed proceed to send mail
if (true) {
    $mailsubject = &quot;Abandonned cart relance&quot;;
    $templateId = 63;

    //$templateId = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::EMAIL_TEMPLATE_XML_PATH);
    $vars = array('quote' =&gt; $quote, 'url' =&gt; $url, 'unsubscribeurl' =&gt; $unsubscribeUrl, 'tags' =&gt; array(&quot;mandrilltag&quot;));


    $customer = Mage::getModel('customer/customer')
        -&gt;setStore(Mage::app()-&gt;getStore($storeId))
        -&gt;loadByEmail($email);
    if ($customer-&gt;getId() &amp;&amp; Mage::helper('sweetmonkey')-&gt;enabled()) {
        $tbtPoints = Mage::helper('ebizmarts_abandonedcart')-&gt;getTBTPoints($customer-&gt;getId());
        foreach ($tbtPoints as $key =&gt; $field) {
            if ($key == 'points') {
                if ($field &gt;= Mage::getStoreConfig('sweetmonkey/general/email_points', $storeId)) {
                    $vars[$key] = $field;
                }
            } else {
                $vars[$key] = $field;
            }
        }
    }

    Mage::app()-&gt;getTranslator()-&gt;init('frontend', true);
    $translate = Mage::getSingleton('core/translate');
    $mail = Mage::getModel('core/email_template')
        -&gt;setTemplateSubject($mailsubject)
        -&gt;sendTransactional($templateId, $sender, $email, $name, $vars, $storeId);
    echo &quot;==&gt; tpl&quot;. $templateId.&quot; email: &quot;.$email.&quot; name: &quot;.$name.&quot; store: &quot;.$storeId;
    $translate-&gt;setTranslateInLine(true);

    die('does it send ?'); 
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-07-02/magento-test-abandoned-cart-email/">Magento &#8211; test abandoned cart email</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-07-02/magento-test-abandoned-cart-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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; redirect to login page with referrer</title>
		<link>http://blog.adin.pro/2018-02-21/magento-redirect-to-login-page-with-referrer/</link>
		<comments>http://blog.adin.pro/2018-02-21/magento-redirect-to-login-page-with-referrer/#comments</comments>
		<pubDate>Wed, 21 Feb 2018 08:50:59 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[referrer]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=556</guid>
		<description><![CDATA[<p>You want to secure a page and customer login before access it ?</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-02-21/magento-redirect-to-login-page-with-referrer/">Magento &#8211; redirect to login page with referrer</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 want to secure a page and customer login before access it ?</p>
<pre class="brush: php; title: ; notranslate">
 Mage::getSingleton('customer/session')-&gt;setBeforeAuthUrl(Mage::helper('core/url')-&gt;getCurrentUrl());
 Mage::app()-&gt;getFrontController()-&gt;getResponse()-&gt;setRedirect(Mage::getUrl('customer/account/login'));
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-02-21/magento-redirect-to-login-page-with-referrer/">Magento &#8211; redirect to login page with referrer</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-21/magento-redirect-to-login-page-with-referrer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>magento get payment method from order</title>
		<link>http://blog.adin.pro/2018-02-06/magento-get-payment-method-from-order/</link>
		<comments>http://blog.adin.pro/2018-02-06/magento-get-payment-method-from-order/#comments</comments>
		<pubDate>Tue, 06 Feb 2018 07:31:22 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[payment method]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=552</guid>
		<description><![CDATA[<p>To get payment method from an order, you can do this :</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-02-06/magento-get-payment-method-from-order/">magento get payment method from order</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 get payment method from an order, you can do this :</p>
<pre class="brush: php; title: ; notranslate">
$order-&gt;getPayment()-&gt;getMethodInstance()-&gt;getCode();
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-02-06/magento-get-payment-method-from-order/">magento get payment method from order</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-06/magento-get-payment-method-from-order/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>
	</channel>
</rss>
