<?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-4773392443943823979</id><updated>2024-09-17T15:20:46.718-07:00</updated><title type='text'>Magento Solution  </title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://magentosolutionsbydvs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default'/><link rel='alternate' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04315417384295813674</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>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4773392443943823979.post-1264000247925306919</id><published>2017-06-06T04:32:00.002-07:00</published><updated>2017-06-06T04:32:22.368-07:00</updated><title type='text'>Best Seller product magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;lt;?php&lt;br /&gt;
$storeId = Mage::app()-&amp;gt;getStore()-&amp;gt;getId();&lt;br /&gt;
&amp;nbsp;$products = Mage::getResourceModel(&#39;reports/product_collection&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;addOrderedQty()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;addAttributeToSelect(&#39;*&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;addAttributeToSelect(array(&#39;name&#39;, &#39;price&#39;, &#39;small_image&#39;))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;setStoreId($storeId)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;addStoreFilter($storeId)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;setOrder(&#39;ordered_qty&#39;, &#39;desc&#39;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Mage::getSingleton(&#39;catalog/product_status&#39;)-&amp;gt;addVisibleFilterToCollection($products);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Mage::getSingleton(&#39;catalog/product_visibility&#39;)-&amp;gt;addVisibleInCatalogFilterToCollection($products);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if($categoryId=$this-&amp;gt;getData(&#39;category_id&#39;)){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $category = Mage::getModel(&#39;catalog/category&#39;)-&amp;gt;load($categoryId);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $products-&amp;gt;addCategoryFilter($category);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp;//$products-&amp;gt;setPageSize(5)-&amp;gt;setCurPage(1); // change the Page Size to how many products you want to show per category&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;$this-&amp;gt;setProductCollection($products); &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php if (($_products = $this-&amp;gt;getProductCollection())): ?&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;page-title&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h2&amp;gt;&amp;lt;?php echo $this-&amp;gt;__(&#39;Our Top Selling Product&#39;) ?&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;top-products owl-carousel&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;?php foreach ($_products-&amp;gt;getItems() as $_product): ?&amp;gt; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;a href=&quot;&amp;lt;?php echo $_product-&amp;gt;getProductUrl() ?&amp;gt;&quot; title=&quot;&amp;lt;?php echo $this-&amp;gt;stripTags($this-&amp;gt;getImageLabel($_product, &#39;small_image&#39;), null, true) ?&amp;gt;&quot; class=&quot;product-image&quot;&amp;gt;&amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;helper(&#39;catalog/image&#39;)-&amp;gt;init($_product, &#39;small_image&#39;)-&amp;gt;resize(300); ?&amp;gt;&quot; width=&quot;300&quot; height=&quot;300&quot; alt=&quot;&amp;lt;?php echo $this-&amp;gt;stripTags($this-&amp;gt;getImageLabel($_product, &#39;small_image&#39;), null, true) ?&amp;gt;&quot; /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;?php endforeach; ?&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;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;
&amp;lt;?php endif; ?&amp;gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://magentosolutionsbydvs.blogspot.com/feeds/1264000247925306919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/06/best-seller-product-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/1264000247925306919'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/1264000247925306919'/><link rel='alternate' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/06/best-seller-product-magento.html' title='Best Seller product magento'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04315417384295813674</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-4773392443943823979.post-3837338294643294308</id><published>2017-06-01T00:20:00.002-07:00</published><updated>2017-06-01T00:20:05.858-07:00</updated><title type='text'>Email test script php</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;lt;?php&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ini_set( &#39;display_errors&#39;, 1 );&lt;br /&gt;
&amp;nbsp; &amp;nbsp; error_reporting( E_ALL );&lt;br /&gt;
&amp;nbsp; &amp;nbsp; $from = &quot;test@test.com&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; $to = &amp;nbsp; &quot;test@test.com&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; $subject = &quot;PHP Mail Test script&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; $message = &quot;This is a test to check the PHP Mail functionality&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; $headers = &quot;From:&quot; . $from;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; mail($to,$subject,$message, $headers);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; echo &quot;Test email sent&quot;;&lt;br /&gt;
?&amp;gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://magentosolutionsbydvs.blogspot.com/feeds/3837338294643294308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/06/email-test-script-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/3837338294643294308'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/3837338294643294308'/><link rel='alternate' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/06/email-test-script-php.html' title='Email test script php'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04315417384295813674</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-4773392443943823979.post-981810630151881266</id><published>2017-05-31T23:04:00.003-07:00</published><updated>2017-05-31T23:04:38.595-07:00</updated><title type='text'>create csv from array in php</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
$myarray = array( &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;array(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[&#39;sku&#39;] =&amp;gt;&#39;asdfa&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;array(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;array([&#39;sku&#39;] =&amp;gt;&#39;asdfa&#39; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;br /&gt;
&lt;br /&gt;
like this array&lt;br /&gt;
&lt;br /&gt;
$productArray = array();&lt;br /&gt;
$productArray[0][&#39;code&#39;] = &quot;Code&quot;;&lt;br /&gt;
$productArray[0][&#39;name&#39;] = &quot;name&quot;;&lt;br /&gt;
$productArray[0][&#39;product_group_description&#39;] = &quot;Product Group Description&quot;;&lt;br /&gt;
$productArray[0][&#39;actual_quantity&#39;] = &quot;Actual Quantity&quot;;&lt;br /&gt;
$productArray[0][&#39;cost&#39;] = &quot;Cost&quot;;&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;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$i = 1;&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;&lt;br /&gt;
foreach($myArray as $products){&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;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$productArray[$i][&#39;code&#39;] = $products[&#39;sku&#39;];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$productArray[$i][&#39;name&#39;] = &quot;&quot;;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$productArray[$i][&#39;product_group_description&#39;] = &quot;&quot;;&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;$productArray[$i][&#39;actual_quantity&#39;] &amp;nbsp;= $products[&#39;qty&#39;];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$productArray[$i][&#39;cost&#39;] = $products[&#39;price&#39;];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$i++;&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;br /&gt;
&lt;br /&gt;
/* echo &#39;&amp;lt;pre&amp;gt;&#39;;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;print_r($productArray);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;exit; */&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$remote_file_name = &#39;productbody/Powerbody.csv&#39;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$fp = fopen($remote_file_name, &#39;w&#39;);&lt;br /&gt;
&lt;br /&gt;
foreach ($productArray as $row) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; fputcsv($fp, $row);&lt;br /&gt;
}&lt;br /&gt;
//rewind($fp);&lt;br /&gt;
//ftp_fput($ftp_conn, $remote_file_name, $fp, FTP_ASCII);&lt;br /&gt;
&lt;br /&gt;
fclose($fp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://magentosolutionsbydvs.blogspot.com/feeds/981810630151881266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/create-csv-from-array-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/981810630151881266'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/981810630151881266'/><link rel='alternate' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/create-csv-from-array-in-php.html' title='create csv from array in php'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04315417384295813674</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-4773392443943823979.post-7335028798351526146</id><published>2017-05-31T22:26:00.003-07:00</published><updated>2017-05-31T22:26:27.366-07:00</updated><title type='text'>How to Display the most recently added products first 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;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, Arial, sans-serif; font-size: 14px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
Step 1: To Achieve this copy the file Toolbar.php&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, Arial, sans-serif; font-size: 14px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
from&amp;nbsp;&lt;strong style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php&lt;/strong&gt;. Create a Directory Structure in local and paste the Toolbar.php&lt;br /&gt;as shown below&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, Arial, sans-serif; font-size: 14px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;strong style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;app/code/local/Mage/Catalog/Block/Product/List/Toolbar.php&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, Arial, sans-serif; font-size: 14px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
Step 2: Around line 232 you should see the below code in setCollection&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, Arial, sans-serif; font-size: 14px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;function&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Open Sans, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;if ($this-&amp;gt;getCurrentOrder()) {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Open Sans, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp; &amp;nbsp; $this-&amp;gt;collection-&amp;gt;setOrder($this-&amp;gt;getCurrentOrder(), $this-&amp;gt;getCurrentDirection());&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Open Sans, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Open Sans, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, Arial, sans-serif; font-size: 14px;&quot;&gt;Replace the above code with the new code given below&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Open Sans, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;if ($this-&amp;gt;getCurrentOrder()) {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Open Sans, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp; &amp;nbsp; if(($this-&amp;gt;getCurrentOrder())==&#39;position&#39;){&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Open Sans, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;_collection-&amp;gt;setOrder(&#39;entity_id&#39;,&#39;desc&#39;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Open Sans, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Open Sans, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp; &amp;nbsp; else {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Open Sans, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$this-&amp;gt;_collection-&amp;gt;setOrder($this-&amp;gt;getCurrentOrder(),$this-&amp;gt;getCurrentDirection());&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Open Sans, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Open Sans, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Open Sans, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;blockquote style=&quot;-webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, Arial, sans-serif; font-size: 14px; font-stretch: inherit; font-style: italic; font-variant-caps: normal; font-variant-ligatures: normal; font-variant-numeric: inherit; font-weight: normal; letter-spacing: normal; line-height: inherit; margin: 0px 0px 1.571em; orphans: 2; padding: 0px; quotes: none; text-align: start; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #333333; display: block; font-family: &amp;quot;Open Sans&amp;quot;, Arial, sans-serif; font-size: 14px; font-stretch: inherit; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-variant-numeric: inherit; font-weight: normal; letter-spacing: normal; line-height: inherit; margin: 0px 0px 1em; orphans: 2; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Now the newly added products will be displayed first in your magento store.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://magentosolutionsbydvs.blogspot.com/feeds/7335028798351526146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/how-to-display-most-recently-added.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/7335028798351526146'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/7335028798351526146'/><link rel='alternate' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/how-to-display-most-recently-added.html' title='How to Display the most recently added products first in magento '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04315417384295813674</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-4773392443943823979.post-5874219703771955516</id><published>2017-05-31T01:56:00.003-07:00</published><updated>2017-05-31T01:56:39.670-07:00</updated><title type='text'>Payment Method dispaly only in admin order magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
/app/code/core/Mage/Payment/Model/Method/ &amp;nbsp; your file&lt;br /&gt;
&lt;br /&gt;
protected $_canUseInternal = true;&lt;br /&gt;
protected $_canUseCheckout = false;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://magentosolutionsbydvs.blogspot.com/feeds/5874219703771955516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/payment-method-dispaly-only-in-admin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/5874219703771955516'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/5874219703771955516'/><link rel='alternate' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/payment-method-dispaly-only-in-admin.html' title='Payment Method dispaly only in admin order magento'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04315417384295813674</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-4773392443943823979.post-7376738645954886699</id><published>2017-05-15T23:14:00.003-07:00</published><updated>2017-05-15T23:29:13.659-07:00</updated><title type='text'>Magento: How to get controller, module, action and router name?</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;b style=&quot;font-family: arial, helvetica; font-size: 12.936px;&quot;&gt;You can easily get controller name, action name, router name and module name in any template file or class file.&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot;; font-size: 12.936px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: arial, helvetica; font-size: 12.936px; margin-bottom: 15px; padding: 0px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;IN TEMPLATE FILES&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: arial, helvetica; font-size: 12.936px; margin-bottom: 15px; padding: 0px;&quot;&gt;
&lt;b&gt;&lt;span id=&quot;more-483&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: arial, helvetica; font-size: 12.936px; margin-bottom: 15px; padding: 0px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;$this-&amp;gt;getRequest()&lt;/span&gt;&amp;nbsp;can be used in template (phtml) files.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: arial, helvetica; font-size: 12.936px; margin-bottom: 15px; padding: 0px;&quot;&gt;
&lt;b&gt;Here is the code:&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089be859598798-1&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;/**&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: inherit; font-size: inherit; font-style: italic;&quot;&gt; get Controller name&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: inherit; font-size: inherit; font-style: italic;&quot;&gt; */&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089be859598798-4&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getRequest&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getControllerName&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089be859598798-5&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089be859598798-6&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;/**&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089be859598798-7&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; * get Action name, i.e. the function inside the controller&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089be859598798-8&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; */&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089be859598798-9&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getRequest&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getActionName&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089be859598798-10&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089be859598798-11&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;/**&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089be859598798-12&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; * get Router name&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089be859598798-13&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; */&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089be859598798-14&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getRequest&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getRouteName&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089be859598798-15&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089be859598798-16&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;/**&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089be859598798-17&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; * get module name&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089be859598798-18&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; */&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089be859598798-19&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getRequest&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getModuleName&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089be859598798-20&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089be859598798-21&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;/**&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089be859598798-22&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; * get namespace &amp;amp; module name&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089be859598798-23&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; * for example, if you are in checkout page &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089be859598798-24&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; * then, this will return Mage_Checkout&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089be859598798-25&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; */&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089be859598798-26&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getRequest&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getControllerModule&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Helvetica; font-size: 12.936px; margin-bottom: 15px; padding: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: arial, helvetica; font-size: 12.936px; margin-bottom: 15px; padding: 0px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;IN CLASS FILES&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: arial, helvetica; font-size: 12.936px; margin-bottom: 15px; padding: 0px;&quot;&gt;
&lt;b&gt;Here is the code:&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089cc788512827-1&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;/**&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089cc788512827-2&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; * get Controller name&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089cc788512827-3&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; */&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089cc788512827-4&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;Mage::&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;app&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getRequest&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getControllerName&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089cc788512827-5&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089cc788512827-6&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;/**&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089cc788512827-7&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; * get Action name, i.e. the function inside the controller&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089cc788512827-8&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; */&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089cc788512827-9&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;Mage::&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;app&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getRequest&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getActionName&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089cc788512827-10&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089cc788512827-11&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;/**&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089cc788512827-12&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; * get Router name&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089cc788512827-13&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; */&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089cc788512827-14&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;Mage::&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;app&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getRequest&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getRouteName&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089cc788512827-15&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089cc788512827-16&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;/**&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089cc788512827-17&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; * get module name&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089cc788512827-18&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; */&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089cc788512827-19&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;Mage::&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;app&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getRequest&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getModuleName&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089cc788512827-20&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089cc788512827-21&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;/**&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089cc788512827-22&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; * get namespace &amp;amp; module name&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089cc788512827-23&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; * for example, if you are in checkout page &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089cc788512827-24&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; * then, this will return Mage_Checkout&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-591a8c0d089cc788512827-25&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-c&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; font-style: italic; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt; */&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089cc788512827-26&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;Mage::&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;app&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getRequest&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;getControllerModule&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089cc788512827-26&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;span class=&quot;crayon-sy&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-591a8c0d089cc788512827-26&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px 5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: arial, helvetica; font-size: 12.936px; margin-bottom: 15px; padding: 0px; white-space: normal;&quot;&gt;
&lt;span class=&quot;crayon-sy&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;The above functions&amp;nbsp;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;(getControllerName, getActionName, getRouteName, getModuleName)&lt;/span&gt;&amp;nbsp;are present in the class&amp;nbsp;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;Mage_Core_Model_Url&lt;/span&gt;.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;
&lt;/span&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: arial, helvetica; font-size: 12.936px; margin-bottom: 15px; padding: 0px; white-space: normal;&quot;&gt;
&lt;span class=&quot;crayon-sy&quot; style=&quot;background-color: white; font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;You can explore all requests with&amp;nbsp;&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;print_r&lt;/span&gt;.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: arial, helvetica; font-size: 12.936px; margin-bottom: 15px; padding: 0px; white-space: normal;&quot;&gt;
&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;b&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: arial, helvetica; font-size: 12.936px; margin-bottom: 15px; padding: 0px; white-space: normal;&quot;&gt;
&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span class=&quot;crayon-k &quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;echo&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-s&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;&quot;&amp;lt;pre&amp;gt;&quot;&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;print_r&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;Mage::&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;app&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;getRequest&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;font-family: &amp;quot;monaco&amp;quot; , &amp;quot;monacoregular&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; height: inherit; line-height: inherit; margin: 0px; padding: 0px; white-space: pre-wrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;crayon-sy&quot; style=&quot;font-family: inherit; font-size: inherit; height: inherit; line-height: inherit; margin: 0px; padding: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: ghostwhite; color: #333333; font-weight: inherit;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: ghostwhite;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://magentosolutionsbydvs.blogspot.com/feeds/7376738645954886699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/magento-how-to-get-controller-module.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/7376738645954886699'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/7376738645954886699'/><link rel='alternate' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/magento-how-to-get-controller-module.html' title='Magento: How to get controller, module, action and router name?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04315417384295813674</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-4773392443943823979.post-883940676402669656</id><published>2017-05-15T23:10:00.001-07:00</published><updated>2017-05-15T23:31:25.791-07:00</updated><title type='text'>MAGENTO: SORT BY PRICE: LOW TO HIGH AND HIGH TO LOW</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background-color: white; border: 0px; font-family: bitter, sans-serif; font-size: 14px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;em style=&quot;border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/app/design/frontend/default/your-theme/template/catalog/product/list/toolbar.phtml file.&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;font-family: bitter, sans-serif; font-size: 14px; font-style: italic;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: bitter, sans-serif; font-size: 14px; font-style: italic;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; border: 0px; font-family: bitter, sans-serif; font-size: 14px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;Find:&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; border: 0px; font-family: bitter, sans-serif; font-size: 14px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;code class=&quot;php plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;option value=&lt;/code&gt;&lt;code class=&quot;php string&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&quot;&amp;lt;?php echo $this-&amp;gt;getOrderUrl($_key, &#39;asc&#39;) ?&amp;gt;&quot;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;?php &lt;/code&gt;&lt;code class=&quot;php keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;if&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;php variable&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$this&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;-&amp;gt;isOrderCurrent(&lt;/code&gt;&lt;code class=&quot;php variable&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$_key&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;)): ?&amp;gt; selected=&lt;/code&gt;&lt;code class=&quot;php string&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&quot;selected&quot;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;?php &lt;/code&gt;&lt;code class=&quot;php keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;endif&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;; ?&amp;gt;&amp;gt;&lt;/code&gt;&lt;code class=&quot;php spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;?php &lt;/code&gt;&lt;code class=&quot;php functions&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;echo&lt;/code&gt; &lt;code class=&quot;php variable&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$this&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;-&amp;gt;__(&lt;/code&gt;&lt;code class=&quot;php variable&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$_order&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;) ?&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;code class=&quot;php plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;/option&amp;gt;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;span style=&quot;border: 0px; font-family: bitter, sans-serif; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: normal;&quot;&gt;&lt;b&gt;And Replace with:&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: bitter, sans-serif; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: bitter, sans-serif; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: normal;&quot;&gt;&lt;br /&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;?php &lt;/code&gt;&lt;code class=&quot;php keyword&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;if&lt;/code&gt; &lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;php variable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$_order&lt;/code&gt; &lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;!= &lt;/code&gt;&lt;code class=&quot;php string&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&#39;Price&#39;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;): ?&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;option value=&lt;/code&gt;&lt;code class=&quot;php string&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&quot;&amp;lt;?php echo $this-&amp;gt;getOrderUrl($_key, &#39;asc&#39;) ?&amp;gt;&quot;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;?php &lt;/code&gt;&lt;code class=&quot;php keyword&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;if&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;php variable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$this&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;-&amp;gt;isOrderCurrent(&lt;/code&gt;&lt;code class=&quot;php variable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$_key&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;)): ?&amp;gt; selected=&lt;/code&gt;&lt;code class=&quot;php string&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&quot;selected&quot;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;?php &lt;/code&gt;&lt;code class=&quot;php keyword&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;endif&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;; ?&amp;gt;&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;code class=&quot;php spaces&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;?php &lt;/code&gt;&lt;code class=&quot;php functions&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;echo&lt;/code&gt; &lt;code class=&quot;php variable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$this&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;-&amp;gt;__(&lt;/code&gt;&lt;code class=&quot;php variable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$_order&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;) ?&amp;gt;&lt;/code&gt;&lt;br /&gt;&amp;lt;/option&amp;gt;&lt;br /&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;?php &lt;/code&gt;&lt;code class=&quot;php keyword&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;else&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;: ?&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;option value=&lt;/code&gt;&lt;code class=&quot;php string&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&quot;&amp;lt;?php echo $this-&amp;gt;getOrderUrl($_key, &#39;asc&#39;) ?&amp;gt;&quot;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;?php &lt;/code&gt;&lt;code class=&quot;php keyword&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;if&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;php variable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$this&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;-&amp;gt;isOrderCurrent(&lt;/code&gt;&lt;code class=&quot;php variable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$_key&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;) &amp;amp;&amp;amp; &lt;/code&gt;&lt;code class=&quot;php variable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$this&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;-&amp;gt;getCurrentDirection() == &lt;/code&gt;&lt;code class=&quot;php string&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&#39;asc&#39;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;): ?&amp;gt; selected=&lt;/code&gt;&lt;code class=&quot;php string&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&quot;selected&quot;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;?php &lt;/code&gt;&lt;code class=&quot;php keyword&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;endif&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;; ?&amp;gt;&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;code class=&quot;php spaces&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;?php &lt;/code&gt;&lt;code class=&quot;php functions&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;echo&lt;/code&gt; &lt;code class=&quot;php variable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$this&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;-&amp;gt;__(&lt;/code&gt;&lt;code class=&quot;php variable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$_order&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;) . &lt;/code&gt;&lt;code class=&quot;php string&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&#39;: Low to High&#39;&lt;/code&gt; &lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;?&amp;gt;&lt;/code&gt;&lt;br /&gt;&amp;lt;/option&amp;gt;&lt;br /&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;option value=&lt;/code&gt;&lt;code class=&quot;php string&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&quot;&amp;lt;?php echo $this-&amp;gt;getOrderUrl($_key, &#39;desc&#39;) ?&amp;gt;&quot;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;?php &lt;/code&gt;&lt;code class=&quot;php keyword&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;if&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;(&lt;/code&gt;&lt;code class=&quot;php variable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$this&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;-&amp;gt;isOrderCurrent(&lt;/code&gt;&lt;code class=&quot;php variable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$_key&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;) &amp;amp;&amp;amp; &lt;/code&gt;&lt;code class=&quot;php variable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$this&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;-&amp;gt;getCurrentDirection() == &lt;/code&gt;&lt;code class=&quot;php string&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&#39;desc&#39;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;): ?&amp;gt; selected=&lt;/code&gt;&lt;code class=&quot;php string&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&quot;selected&quot;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;?php &lt;/code&gt;&lt;code class=&quot;php keyword&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;endif&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;; ?&amp;gt;&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;code class=&quot;php spaces&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;?php &lt;/code&gt;&lt;code class=&quot;php functions&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;echo&lt;/code&gt; &lt;code class=&quot;php variable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$this&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;-&amp;gt;__(&lt;/code&gt;&lt;code class=&quot;php variable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;$_order&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;) . &lt;/code&gt;&lt;code class=&quot;php string&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&#39;: High to Low&#39;&lt;/code&gt; &lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;?&amp;gt;&lt;/code&gt;&lt;br /&gt;&amp;lt;/option&amp;gt;&lt;br /&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;lt;?php &lt;/code&gt;&lt;code class=&quot;php keyword&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;endif&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;; ?&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code class=&quot;php plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;code class=&quot;php plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;span style=&quot;border: 0px; font-family: bitter, sans-serif; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: normal;&quot;&gt;Magento sort by special price (disounted product) on product list page dropdown (toolbar.phtml)&lt;/span&gt;&lt;/code&gt;&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong style=&quot;background-color: white; border: 0px; color: #666666; font-family: Bitter, sans-serif; font-size: 14px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background: none white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: #777777; direction: ltr !important; float: none !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;strong style=&quot;border: 0px; color: #666666; font-family: Bitter, sans-serif; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: normal;&quot;&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong style=&quot;border: 0px; color: #666666; font-family: Bitter, sans-serif; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: normal;&quot;&gt;














&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://magentosolutionsbydvs.blogspot.com/feeds/883940676402669656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/magento-sort-by-price-low-to-high-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/883940676402669656'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/883940676402669656'/><link rel='alternate' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/magento-sort-by-price-low-to-high-and.html' title='MAGENTO: SORT BY PRICE: LOW TO HIGH AND HIGH TO LOW'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04315417384295813674</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-4773392443943823979.post-376911066210674992</id><published>2017-05-08T06:20:00.001-07:00</published><updated>2017-06-29T00:18:10.451-07:00</updated><title type='text'>Create category attribute in magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
require_once &#39;app/Mage.php&#39;;&lt;br /&gt;
Mage::app();&lt;br /&gt;
&lt;br /&gt;
$setup = new Mage_Eav_Model_Entity_Setup(&#39;core_setup&#39;);&lt;br /&gt;
&lt;br /&gt;
/*$setup-&amp;gt;startSetup();&lt;br /&gt;
$setup-&amp;gt;removeAttribute(&#39;catalog_category&#39;, &#39;categorytarget&#39;);&lt;br /&gt;
$setup-&amp;gt;endSetup();*/&lt;br /&gt;
&lt;br /&gt;
function createNewAttributeSet($name) {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Mage::app(&#39;default&#39;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$modelSet = Mage::getModel(&#39;eav/entity_attribute_set&#39;)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;-&amp;gt;setEntityTypeId(4) // 4 == &quot;catalog/product&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;-&amp;gt;setAttributeSetName($name);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$modelSet-&amp;gt;save();&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$modelSet-&amp;gt;initFromSkeleton(4)-&amp;gt;save(); // same thing&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//Mage::app()-&amp;gt;startSetup();&lt;br /&gt;
$setup-&amp;gt;addAttribute(&#39;catalog_category&#39;, &#39;gemstone_image_hover&#39;, array(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &#39;type&#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &#39;varchar&#39;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &#39;label&#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &#39;Gemstone Image Hover&#39;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &#39;input&#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &#39;image&#39;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &#39;backend&#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &#39;catalog/category_attribute_backend_image&#39;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &#39;required&#39; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; false,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &#39;sort_order&#39; &amp;nbsp; &amp;nbsp;=&amp;gt; 99,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &#39;global&#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &#39;group&#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &#39;General Information&#39;&lt;br /&gt;
));&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
echo &quot;Success&quot;;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://magentosolutionsbydvs.blogspot.com/feeds/376911066210674992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/create-category-attribute-in-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/376911066210674992'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/376911066210674992'/><link rel='alternate' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/create-category-attribute-in-magento.html' title='Create category attribute in magento'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04315417384295813674</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-4773392443943823979.post-3968150548559812336</id><published>2017-05-08T06:14:00.001-07:00</published><updated>2017-05-15T23:31:58.581-07:00</updated><title type='text'>Re-index magento via ssh / putty</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;You are running this command from ROOT and&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;&quot;&gt;indexer.php&lt;/code&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;&amp;nbsp;is located under&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;&quot;&gt;shell&lt;/code&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;&amp;nbsp;directory. So try this commands instead:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;border: 0px; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; font-size: 13px; line-height: 1.2; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 10px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background-color: white; border: 0px; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;php shell&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;indexer&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;php &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;reindex catalog_product_attribut&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;border: 0px; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; font-size: 13px; line-height: 1.2; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 10px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: white; border: 0px; margin: 0px; padding: 0px;&quot;&gt;For re-indexing all indexes :&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;border: 0px; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; font-size: 13px; line-height: 1.2; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 10px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;border: 0px; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; line-height: 1.2; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 10px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background-color: white; border: 0px; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;php &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;f shell&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;indexer&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;php reindexall&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;border: 0px; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; line-height: 1.2; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 10px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: white; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;div style=&quot;border: 0px; clear: both; font-family: roboto, arial, sans-serif; font-size: 15px; margin-bottom: 1em; padding: 0px; white-space: normal;&quot;&gt;
Listing all commands :&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;border: 0px; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; line-height: 1.2; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 10px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;php shell&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;indexer&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;php &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;reindex catalog_product_attribute
php shell&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;indexer&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;php &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;reindex catalog_product_price
php shell&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;indexer&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;php &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;reindex catalog_url
php shell&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;indexer&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;php &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;reindex catalog_product_flat
php shell&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;indexer&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;php &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;reindex catalog_category_flat
php shell&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;indexer&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;php &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;reindex catalog_category_product
php shell&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;indexer&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;php &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;reindex catalogsearch_fulltext
php shell&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;indexer&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;php &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;reindex cataloginventory_stock
php shell&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;indexer&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;php &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;reindex tag_summary&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;span style=&quot;color: #393318;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://magentosolutionsbydvs.blogspot.com/feeds/3968150548559812336/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/re-index-magento-via-ssh-putty.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/3968150548559812336'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/3968150548559812336'/><link rel='alternate' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/re-index-magento-via-ssh-putty.html' title='Re-index magento via ssh / putty'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04315417384295813674</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-4773392443943823979.post-1972702284680574515</id><published>2017-05-08T06:03:00.001-07:00</published><updated>2017-05-15T23:32:11.864-07:00</updated><title type='text'>Check how Many extention will overright into 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;
# Create New admin User programmatically.&lt;br /&gt;
&lt;br /&gt;
require_once(&#39;./app/Mage.php&#39;);&lt;br /&gt;
umask(0);&lt;br /&gt;
Mage::app();&lt;br /&gt;
&lt;br /&gt;
$folders = array(&#39;app/code/local/&#39;, &#39;app/code/community/&#39;);//folders to parse&lt;br /&gt;
$configFiles = array();&lt;br /&gt;
foreach ($folders as $folder){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; $files = glob($folder.&#39;*/*/etc/config.xml&#39;);//get all config.xml files in the specified folder&lt;br /&gt;
&amp;nbsp; &amp;nbsp; $configFiles = array_merge($configFiles, $files);//merge with the rest of the config files&lt;br /&gt;
}&lt;br /&gt;
$rewrites = array();//list of all rewrites&lt;br /&gt;
&lt;br /&gt;
foreach ($configFiles as $file){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; $dom = new DOMDocument;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; $dom-&amp;gt;loadXML(file_get_contents($file));&lt;br /&gt;
&amp;nbsp; &amp;nbsp; $xpath = new DOMXPath($dom);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $path = &#39;//rewrite/*&#39;;//search for tags named &#39;rewrite&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $text = $xpath-&amp;gt;query($path);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach ($text as $rewriteElement){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $type = $rewriteElement-&amp;gt;parentNode-&amp;gt;parentNode-&amp;gt;parentNode-&amp;gt;tagName;//what is overwritten (model, block, helper)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $parent = $rewriteElement-&amp;gt;parentNode-&amp;gt;parentNode-&amp;gt;tagName;//module identifier that is being rewritten (core, catalog, sales, ...)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $name = $rewriteElement-&amp;gt;tagName;//element that is rewritten (layout, product, category, order)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach ($rewriteElement-&amp;gt;childNodes as $element){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $rewrites[$type][$parent.&#39;/&#39;.$name][] = $element-&amp;gt;textContent;//class that rewrites it&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
echo &quot;&amp;lt;pre&amp;gt;&quot;;print_r($rewrites);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://magentosolutionsbydvs.blogspot.com/feeds/1972702284680574515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/check-how-many-extention-will-overright.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/1972702284680574515'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/1972702284680574515'/><link rel='alternate' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/check-how-many-extention-will-overright.html' title='Check how Many extention will overright into magento'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04315417384295813674</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-4773392443943823979.post-3472426845570165425</id><published>2017-05-08T05:45:00.000-07:00</published><updated>2017-05-15T23:32:18.772-07:00</updated><title type='text'>Create magento admin username and password</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;background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, &amp;quot;Bitstream Charter&amp;quot;, serif; font-size: 16px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
require_once(‘app/Mage.php’);&lt;br /&gt;
umask(0);&lt;br /&gt;
Mage::app();&lt;/div&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, &amp;quot;Bitstream Charter&amp;quot;, serif; font-size: 16px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
try {&lt;br /&gt;
$user = Mage::getModel(‘admin/user’)&lt;br /&gt;
-&amp;gt;setData(array(&lt;br /&gt;
‘username’ =&amp;gt; ‘admin’,&lt;br /&gt;
‘firstname’ =&amp;gt; ‘Admin’,&lt;br /&gt;
‘lastname’ =&amp;gt; ‘Admin’,&lt;br /&gt;
’email’ =&amp;gt; ‘test@test.com’,&lt;br /&gt;
‘password’ =&amp;gt;’admin@123′,&lt;br /&gt;
‘is_active’ =&amp;gt; 1&lt;br /&gt;
))-&amp;gt;save();&lt;/div&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, &amp;quot;Bitstream Charter&amp;quot;, serif; font-size: 16px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
} catch (Exception $e) {&lt;br /&gt;
echo $e-&amp;gt;getMessage();&lt;br /&gt;
exit;&lt;br /&gt;
}&lt;/div&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, &amp;quot;Bitstream Charter&amp;quot;, serif; font-size: 16px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
//Assign Role Id&lt;br /&gt;
try {&lt;br /&gt;
$user-&amp;gt;setRoleIds(array(1)) //Administrator role id is 1 ,Here you can assign other roles ids&lt;br /&gt;
-&amp;gt;setRoleUserId($user-&amp;gt;getUserId())&lt;br /&gt;
-&amp;gt;saveRelations();&lt;/div&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, &amp;quot;Bitstream Charter&amp;quot;, serif; font-size: 16px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
} catch (Exception $e) {&lt;br /&gt;
echo $e-&amp;gt;getMessage();&lt;br /&gt;
exit;&lt;br /&gt;
}&lt;/div&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, &amp;quot;Bitstream Charter&amp;quot;, serif; font-size: 16px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
echo “User created successfully”;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://magentosolutionsbydvs.blogspot.com/feeds/3472426845570165425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/create-magento-admin-username-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/3472426845570165425'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4773392443943823979/posts/default/3472426845570165425'/><link rel='alternate' type='text/html' href='https://magentosolutionsbydvs.blogspot.com/2017/05/create-magento-admin-username-and.html' title='Create magento admin username and password'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04315417384295813674</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></feed>