<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6716966977665203128</id><updated>2026-08-30T03:48:38.281+05:30</updated><category term="How to setup multiple currencies for website"/><category term="Magento"/><category term="multicurrency shop in magento"/><title type='text'>Important Magento</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>55</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-3174034791835899989</id><published>2017-02-14T18:48:00.000+05:30</published><updated>2017-02-14T18:48:18.564+05:30</updated><title type='text'>How to download a Magento extension directly</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Note:&lt;/b&gt; This post is written for Magento version 1.x.x. This post does not target Magento versions 2.x.x.&lt;br /&gt;
&lt;br /&gt;
Sometimes there are situations when we can&#39;t install extension via Magento Connect Manager in Magento. In such situations we may need to download the extension&#39;s files directly.&lt;br /&gt;
&lt;br /&gt;
Below are some easy ways by which we can download Magento extension directly (without Magento Connect Manager):&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Freegento.com (&lt;a href=&quot;http://freegento.com/ddl-magento-extension.php&quot;&gt;http://freegento.com/ddl-magento-extension.php&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://mage.artem.im/&quot;&gt;http://mage.artem.im&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;The last one is ultimate 😋. If above both websites go down and you need a direct URL to download magento extension directly, try below URL trick:&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;http://connect20.magentocommerce.com/community/{PACKAGE NAME}/{VERSION}/{PACKAGE NAME}-{VERSION}.tgz&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
where {PACKAGE NAME} can be found from extension&#39;s key&#39;s last part and {VERSION} can be found under release notes tab on extension&#39;s page.&lt;br /&gt;
&lt;br /&gt;
For example, you want to download the &quot;Order Delivery Date&quot; module as TGZ (.tar.gz) archive from Magento Connect.&lt;br /&gt;
&lt;br /&gt;
1. Open Magento Connect page of the module: &lt;a href=&quot;https://www.magentocommerce.com/magento-connect/order-delivery-date.html&quot;&gt;https://www.magentocommerce.com/magento-connect/order-delivery-date.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
2. Note down last release version number from the &#39;&lt;b&gt;Release Notes&lt;/b&gt;&#39; tab.&lt;br /&gt;
&lt;br /&gt;
In our sample last version of the module is &quot;0.1.9&quot;.&lt;br /&gt;
&lt;br /&gt;
3. Check an Extension key for &quot;&lt;b&gt;Magento Connect 2.0&lt;/b&gt;&quot;.&lt;br /&gt;
&lt;br /&gt;
For our module the Extension key is:&lt;br /&gt;
http://connect20.magentocommerce.com/community/order_delivery_date&lt;br /&gt;
&lt;br /&gt;
4. Configure URL for downloading and open it in your browser: &lt;a href=&quot;http://connect20.magentocommerce.com/community/order_delivery_date/0.1.9/order_delivery_date-0.1.9.tgz&quot;&gt;http://connect20.magentocommerce.com/community/order_delivery_date/0.1.9/order_delivery_date-0.1.9.tgz&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Please try above ways and let me know if you find any trouble.&lt;br /&gt;
&lt;br /&gt;
Thanks for visiting 😊&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/3174034791835899989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/3174034791835899989?isPopup=true' title='38 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/3174034791835899989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/3174034791835899989'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2017/02/how-to-download-magento-extension.html' title='How to download a Magento extension directly'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>38</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-5553329037481595033</id><published>2017-01-12T15:49:00.000+05:30</published><updated>2017-01-12T15:49:12.854+05:30</updated><title type='text'>Custom CMS field showing widget calling code in frontend in Magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;b&gt;Scenario:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;I added custom field for CMS pages and wanted to show its value in sidebar.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;b&gt;Field type:&lt;/b&gt; Textarea&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;b&gt;Wysiwyg:&lt;/b&gt; Enabled&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;b&gt;Field Name:&lt;/b&gt; c&lt;/span&gt;&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;ontent_custom&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: Helvetica Neue, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;I wanted to call a widget in content of this custom field.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: Helvetica Neue, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: Helvetica Neue, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;For reference, I added below code to call widget:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: Helvetica Neue, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: red; font-family: Helvetica Neue, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;{{widget type=&quot;cms/widget_page_link&quot; anchor_text=&quot;My Custom Link&quot; title=&quot;My Custom Link&quot; template=&quot;cms/widget/link/link_block.phtml&quot; page_id=&quot;153&quot;}}&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: Helvetica Neue, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: Helvetica Neue, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;When I tried to show field&#39;s value in frontend, it displayed content as it was inputted from cms page:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: Helvetica Neue, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;{{widget type=&quot;cms/widget_page_link&quot; anchor_text=&quot;My Custom Link&quot; title=&quot;My Custom Link&quot; template=&quot;cms/widget/link/link_block.phtml&quot; page_id=&quot;153&quot;}}&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;instead of rendering its html.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: Helvetica Neue, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;Solution: To render html instead of code calling widget, use below code:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;echo Mage::helper(&#39;cms&#39;)-&amp;gt;getBlockTemplateProcessor()-&amp;gt;filter(Mage::getBlockSingleton(&#39;cms/page&#39;)-&amp;gt;getPage()-&amp;gt;getContentCustom());&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;Please try this code and let me know if you find any problem.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #2a2e2e; font-family: &amp;quot;Helvetica Neue&amp;quot;, arial, sans-serif; font-size: 15px;&quot;&gt;Thanks for visiting.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/5553329037481595033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/5553329037481595033?isPopup=true' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/5553329037481595033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/5553329037481595033'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2017/01/custom-cms-field-showing-widget-calling.html' title='Custom CMS field showing widget calling code in frontend in Magento'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-4783089406784271243</id><published>2016-07-04T11:47:00.000+05:30</published><updated>2016-07-04T11:48:36.958+05:30</updated><title type='text'>How to add a datetime picker input field in admin module form in magento 1.x</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;noto serif&amp;quot; , serif; font-size: 16px; line-height: 28.8px;&quot;&gt;To add a date/time input field in admin form in magento 1.x, you need to simply use code like below:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9jhejN7GtdaBJ1yF_f_t47J30pbS2FGNBFO8SSBXOiJgUFH8K-6S7BGHMfGRifY4RJqV34VWg966jhVaWLHwk6dEfZurldtEm8chTpbvKSHbAJ0xpkMP5BvGoNG6flu3xZ4SvvF_K7yc/s1600/magento_datetime.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9jhejN7GtdaBJ1yF_f_t47J30pbS2FGNBFO8SSBXOiJgUFH8K-6S7BGHMfGRifY4RJqV34VWg966jhVaWLHwk6dEfZurldtEm8chTpbvKSHbAJ0xpkMP5BvGoNG6flu3xZ4SvvF_K7yc/s1600/magento_datetime.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;noto serif&amp;quot; , serif; font-size: 16px; line-height: 28.8px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: &amp;quot;noto serif&amp;quot;, serif; font-size: 16px; line-height: 1.8em; margin-bottom: 20px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;$dateFormatIso = Mage::app()-&amp;gt;getLocale()-&amp;gt;getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: &amp;quot;noto serif&amp;quot;, serif; font-size: 16px; line-height: 1.8em; margin-bottom: 20px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;$fieldset-&amp;gt;addField(‘time_from’, ‘date’, array(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;‘name’ =&amp;gt; ‘time_from’,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;‘class’ =&amp;gt; ‘required-entry’,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;‘required’ =&amp;gt; true,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;‘label’ =&amp;gt; Mage::helper(‘event’)-&amp;gt;__(‘Time From’),&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;‘image’ =&amp;gt; $this-&amp;gt;getSkinUrl(‘images/grid-cal.gif’),&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;‘input_format’ =&amp;gt; Varien_Date::DATETIME_INTERNAL_FORMAT,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;‘format’ =&amp;gt; $dateFormatIso,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;‘time’ =&amp;gt; true, &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;//&lt;span style=&quot;font-family: &amp;quot;noto serif&amp;quot; , serif; line-height: 28.8px;&quot;&gt;if you don’t want time, then simply set ‘time’ =&amp;gt; false,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;));&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/4783089406784271243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/4783089406784271243?isPopup=true' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/4783089406784271243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/4783089406784271243'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2016/07/how-to-add-datetime-picker-input-field.html' title='How to add a datetime picker input field in admin module form in magento 1.x'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9jhejN7GtdaBJ1yF_f_t47J30pbS2FGNBFO8SSBXOiJgUFH8K-6S7BGHMfGRifY4RJqV34VWg966jhVaWLHwk6dEfZurldtEm8chTpbvKSHbAJ0xpkMP5BvGoNG6flu3xZ4SvvF_K7yc/s72-c/magento_datetime.png" height="72" width="72"/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-2091502482096852037</id><published>2016-01-01T12:29:00.003+05:30</published><updated>2016-01-01T12:29:30.805+05:30</updated><title type='text'>Eliminate render-blocking JavaScript and CSS in above-the-fold content in Magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To remove render-blocking JavaScript issue in Magento using layout xml directly simply add either &lt;b&gt;&amp;lt;params&amp;gt;defer&amp;lt;/params&amp;gt;&lt;/b&gt; or &lt;b&gt;&amp;lt;params&amp;gt;defer&amp;lt;/params&amp;gt;&lt;/b&gt; before &lt;b&gt;&amp;lt;/action&amp;gt;&lt;/b&gt; tag.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;lt;action method=&quot;addJs&quot;&amp;gt;&amp;lt;script&amp;gt;prototype/prototype.js&amp;lt;/script&amp;gt;&amp;lt;/action&amp;gt;&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
Replace it with following:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;lt;action method=&quot;addJs&quot;&amp;gt;&amp;lt;script&amp;gt;prototype/prototype.js&amp;lt;/script&amp;gt;&amp;lt;params&amp;gt;defer&amp;lt;/params&amp;gt;&amp;lt;/action&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;lt;action method=&quot;addJs&quot;&amp;gt;&amp;lt;script&amp;gt;prototype/prototype.js&amp;lt;/script&amp;gt;&amp;lt;params&amp;gt;async&amp;lt;/params&amp;gt;&amp;lt;/action&amp;gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/2091502482096852037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/2091502482096852037?isPopup=true' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/2091502482096852037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/2091502482096852037'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2016/01/eliminate-render-blocking-javascript.html' title='Eliminate render-blocking JavaScript and CSS in above-the-fold content in Magento'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-7996377087189927540</id><published>2015-12-26T15:02:00.002+05:30</published><updated>2015-12-26T15:02:35.006+05:30</updated><title type='text'>Delete mysql user and revoke all privileges properly in mysql</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you want to remove all the privileges and start totally from scratch do the following:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Revoke all privileges on database level:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt; REVOKE ALL PRIVILEGES ON dbname.* FROM &#39;username&#39;@&#39;hostname&#39;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop the user:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;DROP USER &#39;username&#39;@&#39;hostname&#39;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Above procedure will entirely remove mysql user from your instance, this means you can recreate him from scratch.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/7996377087189927540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/7996377087189927540?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/7996377087189927540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/7996377087189927540'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2015/12/delete-mysql-user-and-revoke-all.html' title='Delete mysql user and revoke all privileges properly in mysql'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-3004860023278634314</id><published>2015-12-16T16:22:00.002+05:30</published><updated>2015-12-16T16:22:45.145+05:30</updated><title type='text'>Attribute options are not deleting in magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
It may happen due to lesser php value of&amp;nbsp;&lt;span style=&quot;background-color: #eeeeee; color: #222426; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; line-height: 16.9px; white-space: pre-wrap;&quot;&gt;max_input_variable.&lt;/span&gt;&lt;br /&gt;
&lt;code style=&quot;background-color: #eeeeee; border: 0px; color: #222426; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/code&gt;
&lt;code style=&quot;background-color: #eeeeee; border: 0px; color: #222426; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;&quot;&gt;To fix this problem open .htaccess&lt;/code&gt;&lt;span style=&quot;background-color: white; color: #222426; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&amp;nbsp;file of magento&#39;s document root and write this in it:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222426; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 0px; color: #222426; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;php_value max_input_vars 2500&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 0px; color: #222426; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;You can also do the same by adding/changing &lt;span style=&quot;line-height: 16.9px; white-space: pre-wrap;&quot;&gt;max_input_vars value from active php.ini of your server.&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 0px; color: #222426; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;span style=&quot;line-height: 16.9px; white-space: pre-wrap;&quot;&gt;example:&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 0px; color: #222426; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;pre style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;span style=&quot;line-height: 16.9px; white-space: pre-wrap;&quot;&gt;max_input_vars = 2500&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/3004860023278634314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/3004860023278634314?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/3004860023278634314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/3004860023278634314'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2015/12/attribute-options-are-not-deleting-in.html' title='Attribute options are not deleting in magento'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-2003858130842536351</id><published>2015-09-10T19:35:00.000+05:30</published><updated>2015-09-10T19:35:22.155+05:30</updated><title type='text'>Add link to category page by id from cms static block/cms page in Magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you want to add a link for category page from cms page or cms static block, simply use&amp;nbsp;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19px;&quot;&gt;the category link widget inline link code:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: red; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 19px;&quot;&gt;{{widget type=&quot;catalog/category_widget_link&quot; anchor_text=&quot;Displayed Text&quot; title=&quot;Title attribute text&quot; template=&quot;catalog/category/widget/link/link_block.phtml&quot; id_path=&quot;category/22&quot;}}&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19px;&quot;&gt;There is no need to add &amp;lt;a&amp;gt; tag from cms pages or static blocks.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/2003858130842536351/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/2003858130842536351?isPopup=true' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/2003858130842536351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/2003858130842536351'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2015/09/add-link-to-category-page-by-id-from.html' title='Add link to category page by id from cms static block/cms page in Magento'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-3735628929225689362</id><published>2014-07-06T09:47:00.004+05:30</published><updated>2014-07-06T09:47:51.178+05:30</updated><title type='text'>Magento: Set page layout on specific pages programmatically</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you want to set page layout on specific pages programmatically; for example you need to change layout from 1column.phtml to 2columns-left.phtml in some condition or so, then you need to create a simple module for it.&lt;br /&gt;
&lt;br /&gt;
Steps to do so are given below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Under&lt;b&gt; app/etc/modules &lt;/b&gt;folder create your module&#39;s definition file&lt;b&gt; (Package_Module.xml)&lt;/b&gt; and put this code in it:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot;?&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;config&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;modules&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;Package_Module&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;codePool&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;local&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/codePool&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;active&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/active&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/Package_Module&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/modules&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/config&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;Now create &lt;b&gt;config.xml&lt;/b&gt; file under &lt;/span&gt;&lt;/code&gt;
&lt;code&gt;&lt;b&gt;app/code/local/Your/Module/etc&lt;/b&gt; folder and put this code in it&lt;/code&gt;:&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;lt;config&amp;gt;
    &amp;lt;modules&amp;gt;
        &amp;lt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;Package_Module&lt;/span&gt;&lt;/code&gt;&amp;gt;
            &amp;lt;version&amp;gt;0.1.0&amp;lt;/version&amp;gt;
        &amp;lt;/&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;Package_Module&lt;/span&gt;&lt;/code&gt;&amp;gt;
    &amp;lt;/modules&amp;gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;    &amp;lt;global&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;        &amp;lt;models&amp;gt;
            &amp;lt;m&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;odule&lt;/span&gt;&lt;/code&gt;&amp;gt;
                &amp;lt;class&amp;gt;Package_M&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;odule&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;_Model&amp;lt;/class&amp;gt;
            &amp;lt;/&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;m&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;odule&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&amp;gt;
        &amp;lt;/models&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;        &amp;lt;events&amp;gt;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;            &amp;lt;controller_action_layout_generate_blocks_after&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;observers&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;any_unique_name&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
                        &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;type&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;singleton&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/type&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
                        &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;class&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;Module/Observer&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/class&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;    &amp;lt;method&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;controllerActionLayoutGenerateBlocksAfter&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/method&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/any_&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;unique_name&lt;/span&gt;&lt;/code&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;    &amp;lt;/observers&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/controller_action_layout_generate_blocks_after&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;        &amp;lt;/events&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;    &amp;lt;/global&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/config&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;Now create &lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;&lt;code&gt;&lt;b&gt;Observer.php&lt;/b&gt; under &lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;&lt;code&gt;&lt;b&gt;app/code/local/Your/Module/Model&lt;/b&gt; folder and put this&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;&lt;code&gt;code in it:&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;tag&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;php
&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; Package&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;_Module_Model_Observer&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; controllerActionLayoutGenerateBlocksAfter &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;$observer&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
        $controller &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; $observer&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;getAction&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

        &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;$controller&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;getFullActionName&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;catalog_product_view&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
            $layout &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; $controller&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;getLayout&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
            $rootBlock &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; $layout&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;getBlock&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;root&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

            &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Mage&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;getSingleton&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;customer/session&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)-&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;isLoggedIn&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;())&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
                $rootBlock&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;setTemplate&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;page/1-column.html&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
                $rootBlock&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;setTemplate&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;page/2-columns.html&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;pun&quot;&gt;That&#39;s it. Cheers.. :) &lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/3735628929225689362/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/3735628929225689362?isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/3735628929225689362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/3735628929225689362'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2014/07/magento-set-page-layout-on-specific.html' title='Magento: Set page layout on specific pages programmatically'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-7068657744968033138</id><published>2014-05-30T19:32:00.000+05:30</published><updated>2014-05-30T19:32:23.271+05:30</updated><title type='text'>Magento: admin/admin in path in magento admin</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Are you facing problem of getting &#39;&lt;a href=&quot;http://url/index.php/admin/admin/&quot; target=&quot;_blank&quot;&gt;admin/admin/&lt;/a&gt;&#39; instead of &#39;&lt;a href=&quot;http://url/index.php/admin/&quot; target=&quot;_blank&quot;&gt;admin/&lt;/a&gt;&#39; in Magento admin URLs. Don&#39;t worry..&lt;br /&gt;
&lt;br /&gt;
Here are some easy steps to get your admin URLs back to original.&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Check the values in &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;/magentofolder/app/etc/local.xml&lt;/span&gt;&lt;/b&gt; and ensure all 
is good.&lt;/li&gt;
&lt;li&gt;Log in and check the values at &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;System &amp;gt; configuration &amp;gt; Web &amp;gt; 
Unsecure URL (and Secure URL)&lt;/span&gt;&lt;/b&gt; - make sure they are good (they should be,
 otherwise you’d not be able to log in very easily.&lt;/li&gt;
&lt;li&gt;Go to &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;System &amp;gt; configuration &amp;gt; Advanced &amp;gt; Admin&lt;/span&gt;&lt;/b&gt; and set the value of &lt;span style=&quot;color: red;&quot;&gt;‘&lt;b&gt;use custom admin url&lt;/b&gt;’&lt;/span&gt; to &#39;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;No&lt;/span&gt;&lt;/b&gt;&#39; and remove any values, if any, in the URL box underneath it. Then save config.&lt;/li&gt;
&lt;li&gt;If all these settings are correct, and you’re seeing admin/admin, then check:&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;System &amp;gt; Configuration &amp;gt; General &amp;gt; Web &amp;gt; URL options &amp;gt; Add store code to URL&lt;/b&gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
There you must have set its value &#39;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Yes&lt;/b&gt;&lt;/span&gt;&#39;.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
What this does is on the front end it includes the store code (actually 
store view code) to the URL for mutli-store setups, so that you can 
access a store like this : &lt;a href=&quot;http://url/index.php/storecode1/&quot; target=&quot;_blank&quot;&gt;http://url/index.php/storecode1/&lt;/a&gt; or &lt;a href=&quot;http://url/index.php/storecode2/&quot; target=&quot;_blank&quot;&gt;http://url/index.php/storecode2/&lt;/a&gt; ... etc.&lt;br /&gt;
&lt;br /&gt;
But unfortunately it also does it for the admin (which has store code admin) - therefore, 
the path to your admin is now admin/admin - the first being the store 
code, the second being the path to serve the application. And so, some 
extensions that don’t use dynamic admin URL path won’t work - probably you’ll get a 404 where you expect your content to be in the main body of the page.&lt;br /&gt;
&lt;br /&gt;
Enabling the second option in that admin (&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;System &amp;gt; configuration &amp;gt; General &amp;gt; Web &amp;gt; URL options&lt;/span&gt;&lt;/b&gt;), i.e. &quot;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Redirect to Base URL if requested URL doesn’t match it&lt;/span&gt;&lt;/b&gt;&quot; should fix all the problem.&lt;br /&gt;
&lt;br /&gt;
If it still does not fix your problem then the last option to fix it to turn &lt;span style=&quot;color: red;&quot;&gt;&#39;&lt;b&gt;No&lt;/b&gt;&#39;&lt;/span&gt; for &lt;span style=&quot;color: red;&quot;&gt;&#39;&lt;b&gt;Add Store Code to URLs&lt;/b&gt;&#39;&lt;/span&gt;&amp;nbsp; option.&lt;br /&gt;
&lt;br /&gt;
Hope this will help.. :)&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/7068657744968033138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/7068657744968033138?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/7068657744968033138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/7068657744968033138'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2014/05/magento-adminadmin-in-path-in-magento.html' title='Magento: admin/admin in path in magento admin'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-2924189759085187500</id><published>2014-05-28T23:40:00.004+05:30</published><updated>2014-05-28T23:40:58.721+05:30</updated><title type='text'>How to reset admin password in Magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:DontVertAlignCellWithSp/&gt;
   &lt;w:DontBreakConstrainedForcedTables/&gt;
   &lt;w:DontVertAlignInTxbx/&gt;
   &lt;w:Word11KerningPairs/&gt;
   &lt;w:CachedColBalance/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val=&quot;Cambria Math&quot;/&gt;
   &lt;m:brkBin m:val=&quot;before&quot;/&gt;
   &lt;m:brkBinSub m:val=&quot;--&quot;/&gt;
   &lt;m:smallFrac m:val=&quot;off&quot;/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val=&quot;0&quot;/&gt;
   &lt;m:rMargin m:val=&quot;0&quot;/&gt;
   &lt;m:defJc m:val=&quot;centerGroup&quot;/&gt;
   &lt;m:wrapIndent m:val=&quot;1440&quot;/&gt;
   &lt;m:intLim m:val=&quot;subSup&quot;/&gt;
   &lt;m:naryLim m:val=&quot;undOvr&quot;/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;

&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;If you have forgot your admin login
password in Magento, there is an easy way to reset it.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Let&#39;s first find all users in &#39;&lt;span style=&quot;color: red;&quot;&gt;admin_user&lt;/span&gt;&#39; table.To do so, either you can view &#39;&lt;span style=&quot;color: red;&quot;&gt;admin_user&lt;/span&gt;&#39; table contents or fire below query:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;SELECT * FROM admin_user;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Now to change password, you need to
fire below query:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;UPDATE `admin_user` SET `password` =
CONCAT(MD5(&#39;qXpassword&#39;), &#39;:qX&#39;) WHERE `username` = &#39;USERNAME&#39;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;where &#39;qX&#39; is salt value for encryption and it can be any
other string and&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&#39;USERNAME&#39; is the desired user name for which you want to
reset password.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;For example:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;user name is &#39;&lt;span style=&quot;color: red;&quot;&gt;admin&lt;/span&gt;&#39; for
which you want to reset password.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Suppose after reset you want to set password &lt;span style=&quot;color: red;&quot;&gt;123456&lt;/span&gt; and salt value you like is &#39;&lt;span style=&quot;color: red;&quot;&gt;mK&lt;/span&gt;&#39;,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;then query to be fired will be:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;UPDATE admin_user SET
password=CONCAT(MD5(&#39;mK123456&#39;), &#39;:mK&#39;) WHERE username=&#39;admin&#39;;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Hope it will help. :) &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;true&quot;
  DefSemiHidden=&quot;true&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;267&quot;&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; Name=&quot;Default Paragraph Font&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;59&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Table Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Placeholder Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Revision&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;List Paragraph&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; Name=&quot;Bibliography&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-qformat:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin-top:0in;
 mso-para-margin-right:0in;
 mso-para-margin-bottom:10.0pt;
 mso-para-margin-left:0in;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-fareast-font-family:&quot;Times New Roman&quot;;
 mso-fareast-theme-font:minor-fareast;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;}
&lt;/style&gt;
&lt;![endif]--&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/2924189759085187500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/2924189759085187500?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/2924189759085187500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/2924189759085187500'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2014/05/how-to-reset-admin-password-in-magento.html' title='How to reset admin password in Magento'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-800257384965519081</id><published>2013-06-04T22:56:00.000+05:30</published><updated>2013-06-04T22:56:34.236+05:30</updated><title type='text'>Catalog Search not returning expected results in Magento</title><content type='html'>Many customers complain about Magento&#39;s default catalog search results. Here is the solution to get better results from Magento Catalog Search.&lt;br /&gt;
&lt;br /&gt;
&lt;div id=&quot;yiv2290033853&quot;&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;yui_3_7_2_1_1370366002126_7952&quot;&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_9122&quot;&gt;
1.&lt;span class=&quot;yiv2290033853&quot; id=&quot;yui_3_7_2_1_1370366002126_9136&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Copy
 &lt;span style=&quot;color: red;&quot;&gt;app/code/core/Mage/CatalogSearch/Model/Resource/Fulltext.php&lt;/span&gt; to 
&lt;span style=&quot;color: red;&quot;&gt;app/code/local/Mage/CatalogSearch/Model/Resource/&lt;/span&gt; folder and open file.&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_9118&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_9025&quot;&gt;
2.&lt;span class=&quot;yiv2290033853&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Navigate to function &lt;span style=&quot;color: red;&quot;&gt;prepareResult()&lt;/span&gt; and find below set of code:&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_9123&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_9117&quot;&gt;
&lt;span class=&quot;yiv2290033853&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;$words = Mage::helper(&#39;core/string&#39;)-&amp;gt;splitWords($queryText, true, $query-&amp;gt;getMaxQueryWords());&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;
&lt;/span&gt;&lt;div id=&quot;yui_3_7_2_1_1370366002126_9024&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;yiv2290033853&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;foreach ($words as $word) {&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_9128&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;yiv2290033853&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;$like[] = $helper-&amp;gt;getCILike(&#39;s.data_index&#39;, $word, array(&#39;position&#39; =&amp;gt; &#39;any&#39;));&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;
&lt;/span&gt;&lt;div id=&quot;yui_3_7_2_1_1370366002126_7969&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;yiv2290033853&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7968&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7967&quot;&gt;
&lt;span class=&quot;yiv2290033853&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;and replace it with:&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7966&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7965&quot;&gt;
&lt;span class=&quot;yiv2290033853&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;$like[] = &#39;`s`.`data_index` LIKE :likew&#39;;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;
&lt;/span&gt;&lt;div id=&quot;yui_3_7_2_1_1370366002126_7964&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;yiv2290033853&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$bind[&#39;:likew&#39;] = &#39;%&#39; . $queryText . &#39;%&#39;;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7963&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7962&quot;&gt;
&lt;span class=&quot;yiv2290033853&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Next replace&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7961&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7960&quot;&gt;
&lt;span class=&quot;yiv2290033853&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;$likeCond = &#39;(&#39; . join(&#39; OR &#39;, $like) . &#39;)&#39;;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7959&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7958&quot;&gt;
&lt;span class=&quot;yiv2290033853&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;with&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7957&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7956&quot;&gt;
&lt;span class=&quot;yiv2290033853&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;$likeCond = &#39;(&#39; . join(&#39; AND &#39;, $like) . &#39;)&#39;;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7955&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7951&quot;&gt;
3.&lt;span class=&quot;yiv2290033853&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Login to Admin Panel of your magento. Navigate to &lt;span style=&quot;color: red;&quot;&gt;System --&amp;gt; Configuration&lt;/span&gt;.&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7970&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7971&quot;&gt;
4.&lt;span class=&quot;yiv2290033853&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Now click on &amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Catalog --&amp;gt; Catalog tab&lt;/span&gt; on left. In &lt;b&gt;Catalog Search&lt;/b&gt; panel, set &lt;span style=&quot;color: red;&quot;&gt;Search Type&lt;/span&gt; to &lt;span style=&quot;color: red;&quot;&gt;like&lt;/span&gt;.&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7972&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7973&quot;&gt;
5.&lt;span class=&quot;yiv2290033853&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Just reindex all data and your store&#39;s search should be working fine now.&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7973&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;yui_3_7_2_1_1370366002126_7973&quot;&gt;
This process was tested on magento version 1.7.0 and&amp;nbsp; above.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/800257384965519081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/800257384965519081?isPopup=true' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/800257384965519081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/800257384965519081'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2013/06/catalog-search-not-returning-expected.html' title='Catalog Search not returning expected results in Magento'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-7378307462847722431</id><published>2013-02-16T21:10:00.000+05:30</published><updated>2013-02-16T21:10:01.912+05:30</updated><title type='text'>Magento: Redirect to login page if user not login</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here is simple magento code to redirect to login page, if user is not logged in:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&amp;nbsp; &amp;nbsp; $redirect_url = Mage::getUrl(&#39;customer/account/login/&#39;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $current_url = Mage::helper(&#39;core/url&#39;)-&amp;gt;getCurrentUrl();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if((!$this-&amp;gt;helper(&#39;customer&#39;)-&amp;gt;isLoggedIn()) &amp;amp;&amp;amp; ($current_url != $redirect_url)){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mage::app()-&amp;gt;getFrontController()-&amp;gt;getResponse()-&amp;gt;setRedirect($redirect_url);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use this code and enjoy.. :)&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/7378307462847722431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/7378307462847722431?isPopup=true' title='24 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/7378307462847722431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/7378307462847722431'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2013/02/magento-redirect-to-login-page-if-user.html' title='Magento: Redirect to login page if user not login'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>24</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-1518387268534406873</id><published>2012-12-05T18:18:00.002+05:30</published><updated>2012-12-06T18:44:59.389+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="How to setup multiple currencies for website"/><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><category scheme="http://www.blogger.com/atom/ns#" term="multicurrency shop in magento"/><title type='text'>Magento: How to setup multiple currency shop</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To setup Multiple currencies for magento store is very easy. To do so, just follow below steps:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Login to admin panel of your website.&lt;br /&gt;
2.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Go to System --&amp;gt; Configuration, then select Currency Setup from General tab.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKXvnEVbp3A7jIwzVR-daRmxhP27isU3cVwsI1Jg675sBuXgqFIWuawGI8aHPzdGQB7XgohwBzSJ4hP2BBchyphenhyphensd9FAW5_EwXgyTrCwsLWMdaP2BiOZTiAAX4yrbYT5qWnAWlFYU8lHOQA/s1600/system-config-menu.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKXvnEVbp3A7jIwzVR-daRmxhP27isU3cVwsI1Jg675sBuXgqFIWuawGI8aHPzdGQB7XgohwBzSJ4hP2BBchyphenhyphensd9FAW5_EwXgyTrCwsLWMdaP2BiOZTiAAX4yrbYT5qWnAWlFYU8lHOQA/s640/system-config-menu.PNG&quot; height=&quot;262&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Then select values for &lt;b&gt;Base currency&lt;/b&gt;, &lt;b&gt;Default display currency&lt;/b&gt; and &lt;b&gt;Allowed currencies&lt;/b&gt; and &lt;b&gt;Save Config&lt;/b&gt; button.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYHxa3PTFqyRsKz1K8ILv6yrkj_IUR67OUZege4eTymaA0cmkleCPAq1-6WNhNUYkgibjYl3rULqEkDfIvk0YKYAulwPx31JmaajDV4hjTV4Xhdwwt-Z0cXn3KymbS2SCdcKEIu5X_IzQ/s1600/currency+selection+section.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYHxa3PTFqyRsKz1K8ILv6yrkj_IUR67OUZege4eTymaA0cmkleCPAq1-6WNhNUYkgibjYl3rULqEkDfIvk0YKYAulwPx31JmaajDV4hjTV4Xhdwwt-Z0cXn3KymbS2SCdcKEIu5X_IzQ/s640/currency+selection+section.PNG&quot; height=&quot;338&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;b&gt;Note:&lt;/b&gt;&amp;nbsp;Press &lt;b&gt;Control key&lt;/b&gt; of key board while selecting multiple options from Allowed Currencies section.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Magento still does not know about currency rates for newly selected currencies. To let magento know about currency interchange rates, follow step #3.&lt;br /&gt;
&lt;br /&gt;
3.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Go to &lt;b&gt;System&lt;/b&gt; --&amp;gt; &lt;b&gt;Manage Currency&lt;/b&gt; --&amp;gt; &lt;b&gt;Rates&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTkLezEUm9GJIaG7LKz1Yak0AG4WGX8Zb4wXmpR6IuSBmahOBZ7TDcDIH0nk9c4nszmTAp1QTyNyZxZzevKV8g1xtv3iwx038UgVviUxGM5PGHjor4le7B0lfi_sCQ1kHbz46f0yr0ims/s1600/manage-currency-rates-menu.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTkLezEUm9GJIaG7LKz1Yak0AG4WGX8Zb4wXmpR6IuSBmahOBZ7TDcDIH0nk9c4nszmTAp1QTyNyZxZzevKV8g1xtv3iwx038UgVviUxGM5PGHjor4le7B0lfi_sCQ1kHbz46f0yr0ims/s400/manage-currency-rates-menu.bmp&quot; height=&quot;297&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Just click on Import button on top right side. Now click on &lt;b&gt;Save Currency Rates&lt;/b&gt; button.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-hiMQDMnNWblTcye842Osf0hyzGmpDEpepTPsjJsWOyFwyRDu4Pg6HzPiURTQGf38rYO6ZWBd6CW3p7O1j_G68y3NS8JfiliGJA1Ki8faa84K-WnZRduJE0ViH7OVHG4Ykn8A9u7OzqU/s1600/manage-currency-rates.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-hiMQDMnNWblTcye842Osf0hyzGmpDEpepTPsjJsWOyFwyRDu4Pg6HzPiURTQGf38rYO6ZWBd6CW3p7O1j_G68y3NS8JfiliGJA1Ki8faa84K-WnZRduJE0ViH7OVHG4Ykn8A9u7OzqU/s640/manage-currency-rates.PNG&quot; height=&quot;86&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;b&gt;Note:&lt;/b&gt;&amp;nbsp;You can provide values manually also, but it is recommended to import rates from web service.&lt;br /&gt;
&lt;br /&gt;
That&#39;s all.. refresh magento cache and you are done. Now on frontend prices of products can be displayed in the currencies you configured.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/1518387268534406873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/1518387268534406873?isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/1518387268534406873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/1518387268534406873'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2012/12/magento-how-to-setup-multiple-currency.html' title='Magento: How to setup multiple currency shop'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKXvnEVbp3A7jIwzVR-daRmxhP27isU3cVwsI1Jg675sBuXgqFIWuawGI8aHPzdGQB7XgohwBzSJ4hP2BBchyphenhyphensd9FAW5_EwXgyTrCwsLWMdaP2BiOZTiAAX4yrbYT5qWnAWlFYU8lHOQA/s72-c/system-config-menu.PNG" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-7639648587535818107</id><published>2012-12-05T16:09:00.000+05:30</published><updated>2012-12-05T16:09:36.703+05:30</updated><title type='text'>Magento: How To Set Up Multiple Languages in Magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
In order to configure a different language for your store, you need to follow a simple procedure:&lt;br /&gt;
&lt;br /&gt;
1.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;First go to &lt;a href=&quot;http://www.magentocommerce.com/translations&quot;&gt;http://www.magentocommerce.com/translations&lt;/a&gt;, where you will find various language translations packs for default Magento interface.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Download the language pack for the desired language, extract and paste the extracted files to respective places in your Magento directory.&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;or&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;You can install it directly by searching and installing through Magento Connect.&lt;br /&gt;
&lt;br /&gt;
2.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Now go to Admin Panel, then go to &lt;b&gt;System&lt;/b&gt; --&amp;gt; &lt;b&gt;Manage Stores&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1xsNU76J7Iy2c3FY1sRFyhmp7Ngrbx17Zv3vdeI1EheXXXkoXR5oCExih_wOmerKyP1v4oNhMKgs2sSsOfO5YLrMynSzAHjm0KZ2e7eYeTcnFtGjka4E4A6OVZGXhSN4e4vXey8LeLcs/s1600/manage-stores-menu.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;284&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1xsNU76J7Iy2c3FY1sRFyhmp7Ngrbx17Zv3vdeI1EheXXXkoXR5oCExih_wOmerKyP1v4oNhMKgs2sSsOfO5YLrMynSzAHjm0KZ2e7eYeTcnFtGjka4E4A6OVZGXhSN4e4vXey8LeLcs/s640/manage-stores-menu.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Click on &lt;b&gt;Create Store View&lt;/b&gt; button.&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Select Store, provide appropriate value for Name and code, and select Enabled from Status dropdown. Click on &lt;b&gt;Save Store View&lt;/b&gt; button.&lt;br /&gt;
&lt;br /&gt;
3.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Now go to &lt;b&gt;System&lt;/b&gt; --&amp;gt; &lt;b&gt;Configuration&lt;/b&gt; and Select Store View (which you created in step #2).&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Clicking on &lt;b&gt;General&lt;/b&gt; tab (on left side), you will see &lt;b&gt;Locale Options&lt;/b&gt; on right side. Select installed Language from &lt;b&gt;Locale&lt;/b&gt; dropdown. Save Config.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxcqL_L0ppYIvERb7DBcvshbn8rjWptBAf3jjbNY85u7QpL9PgoxZOR6OR8X1c-QW5gBtGvaUgvoSXUnMF9O0cT4PagKFIU_u6Y2qQ_K6-aAIA7y-JYdei_O_nFJNfLJpxLVt7R2TT29I/s1600/choose-store-from-config.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;206&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxcqL_L0ppYIvERb7DBcvshbn8rjWptBAf3jjbNY85u7QpL9PgoxZOR6OR8X1c-QW5gBtGvaUgvoSXUnMF9O0cT4PagKFIU_u6Y2qQ_K6-aAIA7y-JYdei_O_nFJNfLJpxLVt7R2TT29I/s640/choose-store-from-config.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;and you are done. Just Clear Magento Cache Storage and see reflection on frontend of you website.&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/7639648587535818107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/7639648587535818107?isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/7639648587535818107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/7639648587535818107'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2012/12/magento-how-to-set-up-multiple.html' title='Magento: How To Set Up Multiple Languages in Magento'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1xsNU76J7Iy2c3FY1sRFyhmp7Ngrbx17Zv3vdeI1EheXXXkoXR5oCExih_wOmerKyP1v4oNhMKgs2sSsOfO5YLrMynSzAHjm0KZ2e7eYeTcnFtGjka4E4A6OVZGXhSN4e4vXey8LeLcs/s72-c/manage-stores-menu.PNG" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-8183551413825972768</id><published>2012-12-03T18:13:00.000+05:30</published><updated>2012-12-03T18:13:02.823+05:30</updated><title type='text'>Magento: Upgrading mysql setup of module</title><content type='html'>&lt;br /&gt;
Suppose, you are working on a module, and you need to:&lt;br /&gt;
&lt;br /&gt;
*&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Add a new table, or&lt;br /&gt;
*&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Modify current tables, or&lt;br /&gt;
*&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Insert some default data in existing table, or&lt;br /&gt;
*&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Add/ modify some attributes&lt;br /&gt;
&lt;br /&gt;
In every case, either you will&lt;br /&gt;
1.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;goto core_resource table&lt;br /&gt;
2.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;delete module&#39;s entry&lt;br /&gt;
3.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;and delete current tables of module&lt;br /&gt;
&lt;br /&gt;
which is a poor solution, because sometimes, you don&#39;t have direct access to database, so you can&#39;t delete/ modify data in db in that case.&lt;br /&gt;
There is a simple solution for this. You can do it by simply upgrading you module version and write a new mysql upgrade file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Suppose, you have a module named Mymodule. Its version is 0.1.1. You have the mysql setup file (mysql install file) mysql4-install-0.1.1.php in Mymodule/sql/mymodule_setup folder of your module.&lt;br /&gt;
&lt;br /&gt;
You don’t need to make direct changes to database. To fulfill any of the above tasks in your module,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1) First create a new mysql upgrade file inside Mymodule/sql/mymodule_setup folder.&lt;br /&gt;
&lt;br /&gt;
Let us suppose that you are going to change the version of your module from 0.1.1 to 0.1.2.&lt;br /&gt;
&lt;br /&gt;
The name of mysql upgrade file should be mysql4-upgrade-0.1.1-0.1.2.php&lt;br /&gt;
&lt;br /&gt;
2) Write necessary sql statements in this mysql upgrade file.&lt;br /&gt;
&lt;br /&gt;
3) Now, you have to change the version in config.xml in Mymodule/etc folder as well.&lt;br /&gt;
&lt;br /&gt;
Change the version like 0.1.2. Which is the new version for our module.&lt;br /&gt;
&lt;br /&gt;
4) Reload your site. And you are done!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: The upgrade format is like mysql4-upgrade-CURRENT_VERSION-UPGRADED_VERSION.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy.. :)&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/8183551413825972768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/8183551413825972768?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/8183551413825972768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/8183551413825972768'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2012/12/magento-upgrading-mysql-setup-of-module.html' title='Magento: Upgrading mysql setup of module'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-1835772260454373210</id><published>2012-10-29T20:00:00.002+05:30</published><updated>2012-10-29T20:00:37.021+05:30</updated><title type='text'>Magento: How to remove parent category path from sub category url in Magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Hi friends,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Today I would like to tell you, how you can remove&amp;nbsp;parent category path from sub category url in Magento.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;To do so,&amp;nbsp;&lt;span style=&quot;background-color: white; color: #333333; line-height: 23px;&quot;&gt;Go to:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 23px;&quot;&gt;&lt;b&gt;app/code/core/Mage/Catalog/Model&lt;/b&gt; folder and copy &lt;b&gt;Url.php&lt;/b&gt; file to override it in your local package&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 23px;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; line-height: 23px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #333333; line-height: 23px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Open this file (&lt;b&gt;Url.php&lt;/b&gt;) and find the following:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 23px;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;public function getCategoryRequestPath($category, $parentPath)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 23px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333; font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 23px;&quot;&gt;With in this function, find the following code:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 23px;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; if (null === $parentPath) {&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 23px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $parentPath = $this-&amp;gt;getResource()-&amp;gt;getCategoryParentPath($category);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 23px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 23px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; elseif ($parentPath == &#39;/&#39;) {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 23px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $parentPath = &#39;&#39;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 23px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #333333; font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 23px;&quot;&gt;and comment it like this:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 23px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;// &amp;nbsp; &amp;nbsp; if (null === $parentPath) {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;// &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $parentPath = $this-&amp;gt;getResource()-&amp;gt;getCategoryParentPath($category);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;// &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;// &amp;nbsp; &amp;nbsp; elseif ($parentPath == &#39;/&#39;) {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $parentPath = &#39;&#39;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;// &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: inherit;&quot;&gt;and save the file.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; margin: 0px; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: #333333; line-height: 23px;&quot;&gt;&lt;b&gt;Note:&lt;/b&gt;&amp;nbsp;It should be noted that the code&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; line-height: 23px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;$parentPath = &#39;&#39;;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt; in else part should not be commented.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; line-height: 19px; margin: 0px; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: inherit; line-height: 23px;&quot;&gt;Now login to admin panel of your site, and go to:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; line-height: 19px; margin: 0px; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;line-height: 23px; margin: 0px; padding: 0px;&quot;&gt;System-&amp;gt;Config-&amp;gt;Index Management&lt;/b&gt;&lt;span style=&quot;line-height: 23px;&quot;&gt;&amp;nbsp;and click on &quot;select all&quot; then select Reindex Data from the Action Dropdown, then click on submit.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; line-height: 19px; margin: 0px; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;line-height: 23px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; line-height: 19px; margin: 0px; outline: none; padding: 0px;&quot;&gt;
&lt;span style=&quot;line-height: 23px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;That&#39;s all.. Enjoy.. :)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: verdana, Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 23px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/1835772260454373210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/1835772260454373210?isPopup=true' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/1835772260454373210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/1835772260454373210'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2012/10/magento-how-to-remove-parent-category.html' title='Magento: How to remove parent category path from sub category url in Magento'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-175916548792250135</id><published>2012-10-23T17:58:00.001+05:30</published><updated>2012-10-23T17:58:21.245+05:30</updated><title type='text'>Magento: How to view Magento version</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Hi friends,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Have you faced problem when you were working on a complete&amp;nbsp;customized&amp;nbsp;theme and you were unable to know current magento version.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Just try this solution to find current Magento version of your website:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Create file&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;versionTest.php&lt;/span&gt; parallel to &lt;span style=&quot;color: red;&quot;&gt;index.php&amp;nbsp;&lt;/span&gt;in root folder.&lt;/span&gt;&lt;br /&gt;
Now copy and paste following code in&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;versionTest.php:&lt;/span&gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;


&amp;nbsp; &amp;nbsp; &amp;nbsp; include_once(‘App/Mage.php’);&lt;br /&gt;


&amp;nbsp; &amp;nbsp; &amp;nbsp; Mage::app();&lt;br /&gt;


&amp;nbsp; &amp;nbsp; &amp;nbsp; echo Mage::getVersion();&lt;br /&gt;


&lt;span style=&quot;font-family: Calibri, sans-serif; line-height: 115%;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Now just access this file using browser. Enjoy.. :)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/175916548792250135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/175916548792250135?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/175916548792250135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/175916548792250135'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2012/10/magento-how-to-view-magento-version.html' title='Magento: How to view Magento version'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-6639275108583656788</id><published>2012-10-23T17:51:00.001+05:30</published><updated>2012-10-23T17:51:35.061+05:30</updated><title type='text'>Magento: Difference between Mage::getSingleton() and Mage::getModel() in Magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Hi friends,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Some people ask about the difference between&amp;nbsp;Mage::getModel()&amp;nbsp;and&amp;nbsp;Mage::getSingleton()&amp;nbsp;in Magento.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Here is the difference between these two:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Mage::getModel(&#39;module/model&#39;) will create a new instance of the model&amp;nbsp;object&amp;nbsp;(if such object exists in configuration)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
So if we write:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Mage::getModel(&#39;catalog/product&#39;), it will create new instance
of the object product each time. So,&lt;/div&gt;
&lt;br /&gt;


$p1 =&amp;nbsp;Mage::getModel(&#39;catalog/product&#39;);&lt;br /&gt;


$p2 =&amp;nbsp;Mage::getModel(&#39;catalog/product&#39;);&lt;br /&gt;


Then $p1 is a one instance of product and $p2 is another instance of product.&lt;br /&gt;
&lt;br /&gt;


&lt;div class=&quot;MsoNormal&quot;&gt;
While Mage::getSingleton(&#39;catalog/product&#39;) will create reference
on existing object (if object does not exist then this method will create an instance using ::getModel() and returns reference to it).&lt;/div&gt;
So, if&lt;br /&gt;


$p1 =&amp;nbsp;Mage::getSingleton(&#39;catalog/product&#39;);&lt;br /&gt;


$p2 =&amp;nbsp;Mage::getSingleton(&#39;catalog/product&#39;);&lt;br /&gt;
Then $p1 and $p2 both refer to the same instance of product as reference $p2.&lt;br /&gt;
&lt;br /&gt;
That&#39;s all.. Cheers.. :)&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/6639275108583656788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/6639275108583656788?isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/6639275108583656788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/6639275108583656788'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2012/10/magento-difference-between.html' title='Magento: Difference between Mage::getSingleton() and Mage::getModel() in Magento'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-8954093110566796680</id><published>2012-08-10T23:13:00.003+05:30</published><updated>2012-08-10T23:14:46.293+05:30</updated><title type='text'>Magento: Get all related products of current product</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Obviously, we can get all related products of current product by calling related.phtml. But there are many cases, in which we can not call related.phtml. For example:let us assume that we are showing two or more products on a page and we may want to show small image and name of these two products at a time.&lt;br /&gt;
&lt;br /&gt;
Many other situations can be there, when we may not have option, but to write custom code to get related products of currently loaded product.&lt;br /&gt;
&lt;br /&gt;
For such situations, try this code:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;color: blue;&quot;&gt;$collection = Mage::getModel(&#39;catalog/product_link&#39;)&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;color: blue;&quot;&gt;                    -&amp;gt;getCollection()&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;color: blue;&quot;&gt;                    -&amp;gt;addFieldToFilter(&#39;product_id&#39;,$product_id)&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;color: blue;&quot;&gt;                    -&amp;gt;addFieldToFilter(&#39;link_type_id&#39;,&#39;1&#39;);&lt;/span&gt;
&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;color: blue;&quot;&gt;$related_products = $collection-&amp;gt;getData();&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;This will give you list of all related products of a product.&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;b&gt;Note:&lt;/b&gt; Here &lt;span style=&quot;color: red;&quot;&gt;$product_id&lt;/span&gt; is the id of currently loaded product.&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;That&#39;s all.. Cheers.. :)&lt;/pre&gt;
&lt;pre&gt;
&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small; white-space: normal;&quot;&gt;&lt;b style=&quot;background-color: white; color: #3c3c3c; line-height: 18px;&quot;&gt;COURTESY:&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Arial, Helvetica, sans-serif; font-size: x-small; white-space: normal;&quot;&gt;Mr.&amp;nbsp;&lt;i&gt;Neeraj Gupta&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small; white-space: normal;&quot;&gt;&lt;i style=&quot;background-color: white; color: #3c3c3c; line-height: 18px;&quot;&gt;(My dear Friend)&lt;/i&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/8954093110566796680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/8954093110566796680?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/8954093110566796680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/8954093110566796680'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2012/08/magento-get-all-related-products-of.html' title='Magento: Get all related products of current product'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-4996476752224603379</id><published>2012-08-08T21:53:00.000+05:30</published><updated>2012-08-08T21:53:03.840+05:30</updated><title type='text'>Magento: How to get last order id</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;There are many ways to get last order id:&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;1.  From checkout session:&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;    &lt;span style=&quot;color: blue;&quot;&gt;$lastOrderId = Mage::getSingleton(&#39;checkout/session&#39;)
                   -&amp;gt;getLastRealOrderId();&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;
    $orderId = Mage::getModel(&#39;sales/order&#39;)
               -&amp;gt;loadByIncrementId($lastOrderId)
               -&amp;gt;getEntityId();&lt;/span&gt;
&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;Above solution will not work, if you want to get last order id in admin.&lt;/pre&gt;
&lt;pre&gt;For this you can try this solution:&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;2.  From model:&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre style=&quot;color: blue;&quot;&gt;$orders = Mage::getModel(&#39;sales/order&#39;)-&amp;gt;getCollection()
     -&amp;gt;setOrder(&#39;increment_id&#39;,&#39;DESC&#39;)
     -&amp;gt;setPageSize(1)
     -&amp;gt;setCurPage(1);&lt;/pre&gt;
&lt;pre style=&quot;color: blue;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;color: blue;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;color: blue;&quot;&gt;$orderId = $orders-&amp;gt;getFirstItem()-&amp;gt;getEntityId();&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
But this method will not work, if there are multi store in a single magento setup. So a better solution would be:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;color: blue;&quot;&gt;$orders = Mage::getModel(&#39;sales/order&#39;)-&amp;gt;getCollection()
     -&amp;gt;setOrder(&#39;created_at&#39;,&#39;DESC&#39;)
     -&amp;gt;setPageSize(1)
     -&amp;gt;setCurPage(1);&lt;/pre&gt;
&lt;pre style=&quot;color: blue;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;color: blue;&quot;&gt;$orderId = $orders-&amp;gt;getFirstItem()-&amp;gt;getEntityId();&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;That&#39;s all.. Enjoy.. :) &lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/4996476752224603379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/4996476752224603379?isPopup=true' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/4996476752224603379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/4996476752224603379'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2012/08/magento-how-to-get-last-order-id.html' title='Magento: How to get last order id'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-7204842661507119351</id><published>2012-08-02T23:01:00.006+05:30</published><updated>2012-08-02T23:01:58.034+05:30</updated><title type='text'>Magento: Debug Layout within Controller&#39;s Action</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Hi,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;I found a magical code to debug layout from controller&#39;s action.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: blue; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;var_dump(Mage::getSingleton(&#39;core/layout&#39;)-&amp;gt;getUpdate()-&amp;gt;getHandles());&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: blue; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;exit(&quot;Your Layout Path is &quot;.__LINE__.&quot; in &quot;.__FILE__);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: blue; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;span style=&quot;color: black; font-size: small;&quot;&gt;Just add this code and you can debug your layout.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;span style=&quot;color: black; font-size: small;&quot;&gt;Enjoy.. :)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Arial,Helvetica,sans-serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b style=&quot;background-color: white; color: #3c3c3c; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;COURTESY:&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt;Mr. &lt;i&gt;Ankur Singhania&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i style=&quot;background-color: white; color: #3c3c3c; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;(My dear Friend)&lt;/i&gt;&lt;/span&gt; &lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/7204842661507119351/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/7204842661507119351?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/7204842661507119351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/7204842661507119351'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2012/08/magento-debug-layout-within-controllers.html' title='Magento: Debug Layout within Controller&#39;s Action'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-5540806550977019691</id><published>2012-08-02T22:53:00.002+05:30</published><updated>2012-08-02T22:53:39.246+05:30</updated><title type='text'>Magento: Catalog Search not working in magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;If quick search is not working in your magento store, don&#39;t worry. Here is a simple solution for this problem.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp; Login to Admin Panel.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp; Go to &lt;span style=&quot;color: red;&quot;&gt;System &lt;span style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/span&gt; Configuration &lt;span style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/span&gt; Catalog &lt;span style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: small;&quot;&gt;Catalog&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt; Search&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp; You will find an option there, &lt;span style=&quot;color: red;&quot;&gt;Search Type&lt;/span&gt;. Just change it to &lt;span style=&quot;color: red;&quot;&gt;Like &amp;amp; Full Text&lt;/span&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;That&#39;s done.. Now just flush Magento Cache and enjoy.. :)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Note:&lt;/b&gt;&amp;nbsp; This solution has been tested on Magento version 1.7.0&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/5540806550977019691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/5540806550977019691?isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/5540806550977019691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/5540806550977019691'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2012/08/magento-catalog-search-not-working-in.html' title='Magento: Catalog Search not working in magento'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-510047213168740163</id><published>2012-07-30T21:59:00.003+05:30</published><updated>2012-07-30T21:59:51.135+05:30</updated><title type='text'>Hide Attributes which have no value in Magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;If you don&#39;t provide a value of attribute for a product in Magento, it displays as &#39;No&#39; rather than hiding that attribute. This means attributes that aren&#39;t relevant for a product will still appear confusing the user. Which is a bad impression of your website.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;To hide these unnecessary attributes, do the following:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Open&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;attribute.phtml&lt;/span&gt;, which is located in&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;app/design/frontend/[your package]/[your theme]/template/catalog/product/view&lt;/span&gt; folder, and find code like this:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;lt;?php foreach ($_additional as $_data): ?&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;th&amp;gt;&amp;lt;?php echo $this-&amp;gt;htmlEscape($this-&amp;gt;__($_data[&#39;label&#39;])) ?&amp;gt;&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;?php echo $_helper-&amp;gt;productAttribute($_product, $_data[&#39;value&#39;], $_data[&#39;code&#39;]) ?&amp;gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;lt;?php endforeach; ?&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Now replace this by:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;lt;?php foreach ($_additional as $_data): ?&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;?php $_attribute = $_product-&amp;gt;getResource()-&amp;gt;getAttribute($_data[&#39;code&#39;]);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; if (!is_null($_product-&amp;gt;getData($_attribute-&amp;gt;getAttributeCode())) &amp;amp;&amp;amp; ((string)$_attribute-&amp;gt;getFrontend()-&amp;gt;getValue($_product) != &quot;)) { ?&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;th&amp;gt;&amp;lt;?php echo $this-&amp;gt;htmlEscape($this-&amp;gt;__($_data[&#39;label&#39;])) ?&amp;gt;&amp;lt;/th&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;?php echo $_helper-&amp;gt;productAttribute($_product, $_data[&#39;value&#39;], $_data[&#39;code&#39;]) ?&amp;gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;?php } ?&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;lt;?php endforeach; ?&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;and you are done.. enjoy.. :)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/510047213168740163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/510047213168740163?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/510047213168740163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/510047213168740163'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2012/07/hide-attributes-which-have-no-value-in.html' title='Hide Attributes which have no value in Magento'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-6781820822590400316</id><published>2012-07-30T21:29:00.001+05:30</published><updated>2012-07-30T21:29:13.796+05:30</updated><title type='text'>Get The Current Category in Magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: small;&quot;&gt;Try below code to get currently loaded product id:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #eeeeee; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;$category_id&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;line-height: 18px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;Mage::getSingleton(&#39;catalog/layer&#39;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;getCurrentCategory&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; line-height: 18px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 18px; margin: 0px; padding: 0px;&quot;&gt;getId&lt;/span&gt;&lt;span style=&quot;line-height: 18px; margin: 0px; padding: 0px;&quot;&gt;();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #efeff4; color: #38394b; font-size: small; line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #007700; font-family: Times, &#39;Times New Roman&#39;, serif; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38394b; font-family: Times, &#39;Times New Roman&#39;, serif; font-size: small; line-height: 18px;&quot;&gt;When you don’t have access to $this, you can use Magento registry:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #fcfcfc; color: #38394b; font-family: Times, &#39;Times New Roman&#39;, serif; font-size: small; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #eeeeee; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;$category_id&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;Mage&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;registry&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;current_&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-style: inherit; line-height: 1.08em; text-align: -webkit-auto;&quot;&gt;category&lt;/span&gt;&lt;span style=&quot;line-height: 18px; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;line-height: 18px; margin: 0px; padding: 0px;&quot;&gt;)-&amp;gt;&lt;/span&gt;&lt;span style=&quot;line-height: 18px; margin: 0px; padding: 0px;&quot;&gt;getId&lt;/span&gt;&lt;span style=&quot;line-height: 18px; margin: 0px; padding: 0px;&quot;&gt;();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #fcfcfc; color: #38394b; font-size: small; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #efeff4;&quot;&gt;&lt;span style=&quot;color: #007700; font-family: Times, &#39;Times New Roman&#39;, serif; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38394b; font-size: small; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span style=&quot;color: #007700; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: black; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Enjoy.. :)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/6781820822590400316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/6781820822590400316?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/6781820822590400316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/6781820822590400316'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2012/07/get-current-category-in-magento.html' title='Get The Current Category in Magento'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6716966977665203128.post-6734754103006514661</id><published>2012-07-30T21:20:00.001+05:30</published><updated>2012-07-30T21:20:09.649+05:30</updated><title type='text'>Get Last Order ID From The Session in Magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;If you want to get last order Id from session, just use this code:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Mage::getSingleton(&#39;checkout/session&#39;)-&amp;gt;getLastOrderId();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;This will give you last order id.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;That&#39;s all.. :)&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://importantmagento.blogspot.com/feeds/6734754103006514661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6716966977665203128/6734754103006514661?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/6734754103006514661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6716966977665203128/posts/default/6734754103006514661'/><link rel='alternate' type='text/html' href='http://importantmagento.blogspot.com/2012/07/get-last-order-id-from-session-in.html' title='Get Last Order ID From The Session in Magento'/><author><name>Mohit Kumar Arora</name><uri>http://www.blogger.com/profile/06491364601817412253</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>