<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="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" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-1902127076886608446</atom:id><lastBuildDate>Sun, 01 Sep 2024 08:52:49 +0000</lastBuildDate><category>Magento</category><category>php</category><category>ecommerce</category><category>Session</category><category>Cookie</category><category>Magento debugging</category><category>htaccess</category><category>init.d</category><category>javascript</category><category>magento product collection</category><category>mysql</category><category>php5</category><category>Admin</category><category>Associated product</category><category>Browser Cookie Removal</category><category>Configurable product</category><category>Core</category><category>Customer</category><category>Frontend</category><category>Get ID</category><category>Get User Id</category><category>Get product ids</category><category>Invoice Generation</category><category>Magento Log file</category><category>Magento block hints</category><category>Magento sessions</category><category>Magento template hints</category><category>New Order Id</category><category>Order</category><category>PHP Cookie</category><category>PHP Session</category><category>PHP arrays</category><category>Related product</category><category>Singleton</category><category>Transaction table</category><category>Use of arrays</category><category>WC_Order</category><category>Woocommerce</category><category>Wordpress</category><category>add custom css</category><category>add custom js</category><category>additional data</category><category>apache</category><category>apache restart</category><category>apache rewrite</category><category>apache start</category><category>apache stop</category><category>array</category><category>array_map</category><category>array_pop</category><category>array_push</category><category>array_shift</category><category>array_unshift</category><category>atrribute values</category><category>attributeToFilter</category><category>banner image</category><category>block</category><category>call block</category><category>catalog search</category><category>catalog_category_flat</category><category>catalog_category_product</category><category>catalog_product_attribute</category><category>catalog_product_flat</category><category>catalog_product_price</category><category>catalog_url</category><category>cataloginventory_stock</category><category>catalogsearch_fulltext</category><category>categories</category><category>change default search engine</category><category>change magento banner image</category><category>change php value</category><category>cms</category><category>cms static block</category><category>create local.xml in custom theme</category><category>create user</category><category>css</category><category>deployment</category><category>deployment configuration</category><category>dropdown options</category><category>echo</category><category>error reporting</category><category>fatal error</category><category>file permission</category><category>folder permission</category><category>get all options</category><category>get associated product ids</category><category>get configurable associated product</category><category>get configurable related product</category><category>get option id</category><category>get related product ids</category><category>getCollection</category><category>home image</category><category>host</category><category>identifier</category><category>if else</category><category>innodb</category><category>isam</category><category>jquery</category><category>local.xml</category><category>location</category><category>magento admin</category><category>magento attribute filter</category><category>magento call block in phtml</category><category>magento child block</category><category>magento cms</category><category>magento current theme</category><category>magento custom filter by attribute</category><category>magento default permission for folders</category><category>magento get dropdown values</category><category>magento get option id</category><category>magento get option values</category><category>magento layout</category><category>magento log product collection</category><category>magento log query</category><category>magento modify banner image</category><category>magento payment</category><category>magento permission</category><category>magento phtml</category><category>magento print collection query</category><category>magento product collection filter</category><category>magento product collection query</category><category>magento product filter</category><category>magento query</category><category>magento remove block</category><category>magento update handles</category><category>magento updates</category><category>magento2</category><category>multiple ids</category><category>multiple product attributes</category><category>myisam</category><category>mysql restart</category><category>mysql service</category><category>mysql start</category><category>mysql stop</category><category>mysql storage engines</category><category>mysqli</category><category>nested array</category><category>options list</category><category>origin</category><category>overrriding update handles</category><category>payment additional data field</category><category>payment gateway</category><category>payment method</category><category>php 5</category><category>php array_map</category><category>php error messages</category><category>php log</category><category>php version</category><category>phpinfo()</category><category>port</category><category>print</category><category>product collection</category><category>protocol</category><category>recursive array search</category><category>redirect</category><category>redirect http to https</category><category>reindex</category><category>remove</category><category>remove block name</category><category>remove child block name</category><category>rewrite</category><category>rewriterule</category><category>search engine</category><category>setup:config:set</category><category>simple product</category><category>static block</category><category>storage engines</category><category>sub categories</category><category>switch</category><category>tag_summary</category><category>type of magento sessions</category><category>updateAction</category><category>url parse</category><category>use of local.xml</category><category>window</category><title>ShareInfo2All</title><description>Blog and Tips for web developments in Magento, Drupal, ecommerce, opensource, CMS</description><link>http://shareinfo2all.blogspot.com/</link><managingEditor>noreply@blogger.com (Venkat)</managingEditor><generator>Blogger</generator><openSearch:totalResults>45</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-1481817314415557127</guid><pubDate>Sun, 11 Oct 2020 17:48:00 +0000</pubDate><atom:updated>2020-10-11T10:48:06.624-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">deployment</category><category domain="http://www.blogger.com/atom/ns#">deployment configuration</category><category domain="http://www.blogger.com/atom/ns#">Magento</category><category domain="http://www.blogger.com/atom/ns#">setup:config:set</category><title>Magento2 deployment configuration is absent</title><description>&lt;p&gt;[ Magento\Setup\Exception]&lt;/p&gt;&lt;p&gt;&lt;i&gt;Can&#39;t run this operation: deployment configuration is absent. Run &#39;magento setup:config:set --help&#39;&amp;nbsp; for options. setup:upgrade&lt;/i&gt;&lt;/p&gt;&lt;p&gt;Check &lt;b&gt;app/etc/env.php&lt;/b&gt; is created&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Also this message show because of&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;app/etc/config.php&lt;/b&gt; is missing.&lt;/p&gt;&lt;p&gt;Check magento folder permission for app/etc&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description><link>http://shareinfo2all.blogspot.com/2020/10/magento2-deployment-configuration-is.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-1843715952047440031</guid><pubDate>Sat, 10 Oct 2020 16:28:00 +0000</pubDate><atom:updated>2020-10-10T09:34:43.552-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">catalog search</category><category domain="http://www.blogger.com/atom/ns#">change default search engine</category><category domain="http://www.blogger.com/atom/ns#">magento2</category><category domain="http://www.blogger.com/atom/ns#">search engine</category><title>Magento2 - Change Catalog Search Engine</title><description>&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Logon to Magento admin site.&lt;/li&gt;&lt;li&gt;Navigate to &lt;b&gt;Stores -&amp;gt; Configuration&lt;/b&gt;&lt;/li&gt;&lt;li&gt;In left panel, find &lt;b&gt;Catalog&lt;/b&gt; section&lt;/li&gt;&lt;li&gt;In Catalog, &lt;b&gt;Catalog -&amp;gt; Catalog Search&lt;/b&gt;&lt;/li&gt;&lt;li&gt;In Search Engine choose the desired value from dropdown&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&amp;nbsp;Then Save Configuration&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Thanks&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;</description><link>http://shareinfo2all.blogspot.com/2020/10/magento2-change-catalog-search-engine.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-4739732937649323248</guid><pubDate>Mon, 04 Jan 2016 13:34:00 +0000</pubDate><atom:updated>2016-01-04T05:36:42.707-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">host</category><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">location</category><category domain="http://www.blogger.com/atom/ns#">origin</category><category domain="http://www.blogger.com/atom/ns#">port</category><category domain="http://www.blogger.com/atom/ns#">protocol</category><category domain="http://www.blogger.com/atom/ns#">url parse</category><category domain="http://www.blogger.com/atom/ns#">window</category><title>Javascript URL parse</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3&gt;
Javascript URL parse
&lt;/h3&gt;
window.location.host : &lt;b&gt;example.com:80&lt;/b&gt;&lt;br /&gt;
window.location.hostname : &lt;b&gt;example.com&lt;/b&gt;&lt;br /&gt;
window.location.protocol : &lt;b&gt;http:&lt;/b&gt;&lt;br /&gt;
window.location.port : &lt;b&gt;8080 or 80&lt;/b&gt;&lt;br /&gt;
window.location.origin : &lt;b&gt;http://example.com *&lt;/b&gt;&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2016/01/javascript-url-parse.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-1761588591423116425</guid><pubDate>Tue, 13 Jan 2015 17:36:00 +0000</pubDate><atom:updated>2015-01-13T09:36:28.017-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">innodb</category><category domain="http://www.blogger.com/atom/ns#">isam</category><category domain="http://www.blogger.com/atom/ns#">myisam</category><category domain="http://www.blogger.com/atom/ns#">mysql</category><category domain="http://www.blogger.com/atom/ns#">mysql storage engines</category><category domain="http://www.blogger.com/atom/ns#">storage engines</category><title>MySQL storage engines</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3&gt;
MySQL storage engines&lt;/h3&gt;
&lt;br /&gt;
MySQL storage engines&lt;br /&gt;
InnoDB&lt;br /&gt;
MyISAM&lt;br /&gt;
ISAM&lt;br /&gt;
MEMORY(HEAP)&lt;br /&gt;
BLACKHOLE&lt;br /&gt;

&lt;br /&gt;&lt;br /&gt;

You want to know all storage engines. Login to mysql terminal window using mysql credentails
&lt;br /&gt;
Just type the commane
&lt;br /&gt;
&lt;pre&gt;show engines;
&lt;/pre&gt;
you get the list of all storage engines.
&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2015/01/mysql-storage-engines.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-8511488812200157738</guid><pubDate>Thu, 25 Dec 2014 05:03:00 +0000</pubDate><atom:updated>2015-01-17T05:57:27.454-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">magento call block in phtml</category><category domain="http://www.blogger.com/atom/ns#">magento child block</category><category domain="http://www.blogger.com/atom/ns#">magento phtml</category><title>Magento how to call other block in phtml file</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2&gt;
Magento how to call other block in phtml file&lt;/h2&gt;
To get the block in your template, other than child block.
&lt;br /&gt;
When you want to call the block other than specified xml child blocks. 
&lt;br /&gt;
&lt;pre class=&quot;code&quot; name=&quot;php&quot;&gt;$this-&amp;gt;getLayout()-&amp;gt;getBlock(&#39;block_name&#39;)-&amp;gt;toHtml();
&lt;/pre&gt;
For example
&lt;br /&gt;
&lt;pre class=&quot;code&quot; name=&quot;php&quot;&gt;$this-&amp;gt;getLayout()-&amp;gt;getBlock(&#39;top.links&#39;)-&amp;gt;toHtml();    
&lt;/pre&gt;
&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/12/magento-how-to-call-other-block-in.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-4778340055905238827</guid><pubDate>Sat, 20 Dec 2014 20:18:00 +0000</pubDate><atom:updated>2014-12-27T06:14:59.017-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">if else</category><category domain="http://www.blogger.com/atom/ns#">php</category><category domain="http://www.blogger.com/atom/ns#">php5</category><category domain="http://www.blogger.com/atom/ns#">switch</category><title>Alternate to if else use switch statement</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h2&gt;
Alternate to if else use switch statement&lt;/h2&gt;
If you execute the if else statements which multiple conditions
&lt;br /&gt;
its go throw each condition and check with those condition is matching.

For example you written if else condition
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt; 
 if($i == 15)
 elseif($i == 25)
 elseif($i == 35)
 elseif($i == 45)
 elseif($i == 55)
 else
&lt;/pre&gt;
You want to match 45 value,while executing this above script variable matches with each if and else condition 
&lt;br /&gt;
and finally matches 45 value, so condition executed above with unmatched value then it took the execution time.
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Alternative Switch statement&lt;/h4&gt;
Suppose you are using the swithc statement for the above case.
Example
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt; 
 switch($i) {
   case 15:
     break;
   case 25:
     break;
   case 35:
     break;
   case 45:
     break;
   case 55:
     break;
 }
&lt;/pre&gt;
In this above switch statement, if the $i values was 45 then execute 45 matched values and go through the further process.
&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/12/alternate-to-if-else-use-switch.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-994963932343061116</guid><pubDate>Sat, 20 Dec 2014 19:31:00 +0000</pubDate><atom:updated>2014-12-20T11:31:04.941-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">error reporting</category><category domain="http://www.blogger.com/atom/ns#">php error messages</category><category domain="http://www.blogger.com/atom/ns#">php log</category><category domain="http://www.blogger.com/atom/ns#">php5</category><title>PHP error reporting</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3&gt;
PHP error reporting&lt;/h3&gt;
As of developer view, error reporting is more sensitive one.
&lt;br /&gt;
&lt;br /&gt;
There are 3 types of errors.
&lt;br /&gt;
1) Fatal error
&lt;br /&gt;
2) Warning error
&lt;br /&gt;
3) Notice error
&lt;br /&gt;
&lt;br /&gt;
In production environment, we cant see the errors in live it appears blank page.
&lt;br /&gt;
In this case, you want to see the server log normally for apache server which is generated in the server log file
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;/var/log/apache2/error.log&lt;/pre&gt;
&lt;br /&gt;
In terminal, you see the last few occurences error as
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;tail -f /var/log/apache2/error.log
&lt;/pre&gt;
&lt;br /&gt;
While developing environment you want to see the all errors through
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;ini_set(&#39;display_errors&#39;, 1); /*By default its value as 0 in php.ini*/
error_reporting(-1); /*It shows all errors*/
&lt;/pre&gt;
&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/12/php-error-reporting.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-3187734250258263855</guid><pubDate>Sat, 20 Dec 2014 19:15:00 +0000</pubDate><atom:updated>2014-12-20T11:15:58.550-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">add custom css</category><category domain="http://www.blogger.com/atom/ns#">add custom js</category><category domain="http://www.blogger.com/atom/ns#">css</category><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">jquery</category><category domain="http://www.blogger.com/atom/ns#">Magento</category><category domain="http://www.blogger.com/atom/ns#">magento current theme</category><category domain="http://www.blogger.com/atom/ns#">magento layout</category><category domain="http://www.blogger.com/atom/ns#">magento update handles</category><category domain="http://www.blogger.com/atom/ns#">magento updates</category><title>Magento add Custom js/css in Current Theme</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3&gt;
Add Custom JS/CSS in current theme&lt;/h3&gt;
&lt;br /&gt;
If you want the css and js for all the pages then you can add the code in local.xml with default handles xml tag.
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt; &lt;layout version=&quot;0.1.0&quot;&gt;
   &lt;default&gt;
     &lt;reference name=&quot;head&quot;&gt;
       &lt;action method=&quot;addJs&quot;&gt;
         &lt;script&gt;[script_filename.js]&lt;/script&gt;
       &lt;/action&gt;
       &lt;action method=&quot;addCss&quot;&gt;
         &lt;stylesheet&gt;[css_filename.css]&lt;/stylesheet&gt;
       &lt;/action&gt;
     &lt;/reference&gt;
   &lt;/default&gt;
 &lt;/layout&gt;
&lt;/pre&gt;
&lt;code&gt;[script_filename.js]&lt;/code&gt; - specify the script filename
&lt;br /&gt;
&lt;code&gt;[css_filename.css]&lt;/code&gt; - specify the css filename
&lt;br /&gt;
&lt;br /&gt;
For specific pages you want to add the custom css or js, then
&lt;br /&gt;
specify the handles in local.xml and add the custom css, js xml code.
&lt;br /&gt;
&lt;br /&gt;
And also if want to add the custom css in specific handles, 
&lt;br /&gt;
then add the custom add code within that handles.

&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/12/add-custom-js-css-in-current-theme.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-3808001271323948797</guid><pubDate>Sat, 20 Dec 2014 18:52:00 +0000</pubDate><atom:updated>2014-12-20T10:53:13.110-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">banner image</category><category domain="http://www.blogger.com/atom/ns#">change magento banner image</category><category domain="http://www.blogger.com/atom/ns#">home image</category><category domain="http://www.blogger.com/atom/ns#">Magento</category><category domain="http://www.blogger.com/atom/ns#">magento modify banner image</category><title>Modify Home Page Banner Image</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3&gt;
Modify Banner Image&lt;/h3&gt;
&lt;br /&gt;
&lt;h4&gt;Step 1&lt;/h4&gt;
&lt;br /&gt;
Go to Magento admin pages through&lt;br /&gt;
Admin -&amp;gt; CMS -&amp;gt; Pages -&amp;gt; Edit home(Which mentioned in URL key)&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Step 2&lt;/h4&gt;
&lt;br /&gt;
After click the home page which redirected to edit page.
&lt;br /&gt;
In home edit page, go through the Content tab in left panel, click the tab.
&lt;br /&gt;&lt;br /&gt;
&lt;h4&gt;Step 3&lt;/h4&gt;
&lt;br /&gt;
You see the textarea with the HTML code, in that you find the block id &quot;home-slider&quot;.
&lt;br /&gt;
You will change the home page banner images in the textarea.
&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/12/home-page-change-banner-image.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-3180483518153181029</guid><pubDate>Sat, 20 Dec 2014 10:00:00 +0000</pubDate><atom:updated>2014-12-20T02:07:19.105-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">magento log product collection</category><category domain="http://www.blogger.com/atom/ns#">magento log query</category><category domain="http://www.blogger.com/atom/ns#">magento print collection query</category><category domain="http://www.blogger.com/atom/ns#">magento product collection query</category><category domain="http://www.blogger.com/atom/ns#">magento query</category><title>Magento Product Collection Query </title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3&gt;
Magento product collection query&lt;/h3&gt;
For developers, print the product collection query.
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;

$statusEnabled = Mage_Catalog_Model_Product_Status::STATUS_ENABLED;

$collection = Mage::getModel(&#39;catalog/product&#39;)
                 -&amp;gt;getCollection()
                 -&amp;gt;addAttributeToFilter(&#39;status&#39;, 
                  $statusEnabled);
/**
 *
 * Print query
 *
 */
echo $collection-&amp;gt;getSelect();
/**
 *or
 */
echo $collection-&amp;gt;getSelect()-&amp;gt;__toString();
/**
 *
 *print collection query 
 */
$Collection-&amp;gt;printLogQuery(true);
&lt;/pre&gt;
&lt;br /&gt;
You can then view the result query.
&lt;br /&gt;
For developer, enable the system log settings by&lt;br /&gt;
&lt;code&gt;System -&amp;gt; Configuration -&amp;gt; Developer -&amp;gt; Log Settings&lt;/code&gt;
&lt;br /&gt;
see the generated log file in [magento_root_folder]/var/log/ folder
&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/12/magento-query-product-collection.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-2794046910894428647</guid><pubDate>Sat, 20 Dec 2014 08:48:00 +0000</pubDate><atom:updated>2014-12-20T00:48:01.695-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">file permission</category><category domain="http://www.blogger.com/atom/ns#">folder permission</category><category domain="http://www.blogger.com/atom/ns#">magento default permission for folders</category><category domain="http://www.blogger.com/atom/ns#">magento permission</category><title>Magento Add the Default Permission for Folders</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3&gt;
Folder permissions&lt;/h3&gt;
&lt;code&gt;/media&lt;/code&gt; - accessing the product images&lt;br/&gt;
&lt;code&gt;/var&lt;/code&gt; - generating the cache, report files&lt;br/&gt;
&lt;br /&gt;
Downloader, var and media folders are need be writable 
&lt;br /&gt;
[magento_root_folder]/var - 777
[magento_root_folder]/media - 777
[magento_root_folder]/downloader - 777
&lt;br /&gt;&lt;br/&gt;
Once completed instllation and development process.
&lt;br /&gt;
Reset back downloader folder to 755 so that this folders are non-writeable in production.
&lt;br/&gt;&lt;br/&gt;
For files keep the permission as 644.
&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/12/magento-folders-default-permission.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-4054034008252579589</guid><pubDate>Fri, 19 Dec 2014 18:49:00 +0000</pubDate><atom:updated>2014-12-19T23:26:55.141-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">create local.xml in custom theme</category><category domain="http://www.blogger.com/atom/ns#">local.xml</category><category domain="http://www.blogger.com/atom/ns#">overrriding update handles</category><category domain="http://www.blogger.com/atom/ns#">use of local.xml</category><title>Use local.xml in theme layout for Updating Handles</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3&gt;
Use local xml in layout file to update the handles&lt;/h3&gt;
&lt;h4&gt;
Step 1&lt;/h4&gt;
Create local.xml in your custom theme as app/design/frontend/[package]/[theme]/layout/
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Step 2&lt;/h4&gt;
Create the layout code in local.xml and update the layout handles that you want in custom theme.
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&lt;layout version=&quot;0.1.0&quot;&gt;
&lt;/layout&gt;
&lt;/pre&gt;
Within the layout tag, update the base xml handles.

For example, want to remove the newsletter globally in left column for your current theme.
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&lt;default&gt;
&lt;remove name=&quot;left.newsletter&quot;&gt;
&lt;/remove&gt;&lt;/default&gt;
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/12/use-local-xml-in-custom-theme-for-update-xml.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-2642779317972656060</guid><pubDate>Fri, 19 Dec 2014 18:12:00 +0000</pubDate><atom:updated>2014-12-19T10:12:15.344-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">magento custom filter by attribute</category><category domain="http://www.blogger.com/atom/ns#">magento get dropdown values</category><category domain="http://www.blogger.com/atom/ns#">magento get option id</category><category domain="http://www.blogger.com/atom/ns#">magento get option values</category><category domain="http://www.blogger.com/atom/ns#">magento product collection</category><category domain="http://www.blogger.com/atom/ns#">magento product collection filter</category><category domain="http://www.blogger.com/atom/ns#">product collection</category><title>Magento Product Collection Filter by Dropdown Option Value</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3&gt;
Filter product collection by option value.&lt;/h3&gt;
&lt;br /&gt;
&lt;h4&gt;
Filter by option value&lt;/h4&gt;
&lt;br /&gt;
The product collection filter by attribute option value.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;$statusEnable = Mage_Catalog_Model_Product_Status::STATUS_ENABLED;
$collection  = Mage::getModel(&#39;catalog/product&#39;)
                    -&amp;gt;getCollection()
                    -&amp;gt;addAttributeToFilter(&#39;status&#39;,
                        array(&#39;eq&#39; =&amp;gt; $statusEnable)
                      )                    
                    -&amp;gt;addAttributeToSelect(&#39;*&#39;)
                    -&amp;gt;addAttributeToFilter(&#39;[attibute_name]&#39;, 
                        array(&#39;eq&#39; =&amp;gt; &#39;[value]&#39;)
                      );
    
&lt;/pre&gt;
&lt;h4&gt;
Filter by dropdown option value&lt;/h4&gt;
&lt;br /&gt;
The product collection filter by dropdown option value.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;$sAttributeName = &#39;[custom_attribute_identifier_id]&#39;; //for example: color, size

/*
 * Get custom attribute option values
 *
 */
$optionValues = Mage::getResourceModel(&#39;catalog/product&#39;)
                -&amp;gt;getAttribute($sAttributeName)
                -&amp;gt;getSource()
                -&amp;gt;getAllOptions(false);

/*
 * Select the option id for the choosen dropdown option value
 *
 */
foreach($optionValues as $options) {

    if($options[&#39;label&#39;] == &#39;[choosen_value]&#39;) {
        $optionIds[] = $options[&#39;value&#39;];         
    }
}

/* print_r($optionIds); */

/*
 * Filter product collection by dropdown option id
 *
 */
$collection  = Mage::getModel(&#39;catalog/product&#39;)
                    -&amp;gt;getCollection()
                    -&amp;gt;addAttributeToFilter(&#39;status&#39;,
                        array(&#39;eq&#39; =&amp;gt; Mage_Catalog_Model_Product_Status::STATUS_ENABLED)
                      )                    
                    -&amp;gt;addAttributeToSelect(&#39;*&#39;)
                    -&amp;gt;addAttributeToFilter($sAttributeName, 
                        array(&#39;in&#39; =&amp;gt; $optionIds)
                      );
&lt;/pre&gt;
&lt;code&gt;[choosen_value]&lt;/code&gt; In frontend, selected dropdown value to match option values to get option id.
&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/12/magento-product-collection-filter-by-option-value.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-8845532059736523670</guid><pubDate>Wed, 17 Dec 2014 18:54:00 +0000</pubDate><atom:updated>2014-12-19T23:27:24.179-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">attributeToFilter</category><category domain="http://www.blogger.com/atom/ns#">getCollection</category><category domain="http://www.blogger.com/atom/ns#">magento attribute filter</category><category domain="http://www.blogger.com/atom/ns#">magento product collection</category><category domain="http://www.blogger.com/atom/ns#">magento product filter</category><title>Magento Product Collection by Attribute Filter </title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3&gt;
Add attribute to filter in product collection&lt;/h3&gt;
&lt;br /&gt;
The below part code shows the product collection filter by attribute.
&lt;br /&gt;
&lt;br /&gt;
For example
&lt;br /&gt;
You want to filter the product collection by status enabled product, 
&lt;br /&gt;
refer the code below this do that
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;$collection  = Mage::getModel (&#39;catalog/product&#39;)
                    -&amp;gt;getCollection()
                    -&amp;gt;addAttributeToFilter(&#39;status&#39;,
                        array(&#39;eq&#39; =&amp;gt; Mage_Catalog_Model_Product_Status::STATUS_ENABLED)
                      );

print_r($collection);
&lt;/pre&gt;
&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/12/magento-product-collection-by-attribute.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-8995609251498769701</guid><pubDate>Wed, 17 Dec 2014 18:46:00 +0000</pubDate><atom:updated>2014-12-19T23:27:42.437-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">dropdown options</category><category domain="http://www.blogger.com/atom/ns#">get all options</category><category domain="http://www.blogger.com/atom/ns#">get option id</category><category domain="http://www.blogger.com/atom/ns#">options list</category><title>Magento Get Options Values for Dropdown</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3&gt;
Get dropdown option values&lt;/h3&gt;
The dropdown value that you want to get an option values.&lt;br /&gt;
&lt;code&gt;$sAttributeName&lt;/code&gt;

&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;$sAttributeName = &#39;color&#39;;
$optionValues = Mage::getResourceModel(&#39;catalog/product&#39;)
                -&amp;gt;getAttribute($sAttributeName)
                -&amp;gt;getSource()
                -&amp;gt;getAllOptions(false);

&lt;/pre&gt;
&lt;br /&gt;
You dont want the empty value in the option values then set the false value for first argument in below function call &lt;br /&gt;
&lt;code&gt;getAllOptions(false)&lt;/code&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/12/magento-get-options-values-for-dropdown.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-3286494355669168021</guid><pubDate>Wed, 17 Dec 2014 17:50:00 +0000</pubDate><atom:updated>2014-12-19T23:27:54.830-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">block</category><category domain="http://www.blogger.com/atom/ns#">magento remove block</category><category domain="http://www.blogger.com/atom/ns#">remove</category><category domain="http://www.blogger.com/atom/ns#">remove block name</category><category domain="http://www.blogger.com/atom/ns#">remove child block name</category><title>Remove the Block in xml file</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3&gt;
Remove the block in layout xml file&lt;/h3&gt;
&lt;div&gt;
To remove the block from specific layout. You will copy the base layout file from the base folder to current theme layout folder.&lt;br /&gt;
In that, you will remove the block name using
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&lt;remove name=&quot;[block_name]&quot;&gt;&lt;/remove&gt;&lt;/pre&gt;
&lt;br /&gt;
And other way for removing the block by creating the local.xml in your current theme layout folder and add the block remove code there.
&lt;br /&gt;
For example
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&lt;remove name=&quot;[block_name]&quot;&gt;&lt;/remove&gt;&lt;/pre&gt;
&lt;br /&gt;
In some cases you want to remove the child block, refer the code below to remove the child block
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&lt;reference name=&quot;[parent_block_name]&quot;&gt;
   &lt;remove name=&quot;[child_block]&quot;&gt;
&lt;/remove&gt;&lt;/reference&gt;
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/12/remove-block-in-xml-file.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-4792162079951764855</guid><pubDate>Sun, 14 Dec 2014 14:57:00 +0000</pubDate><atom:updated>2014-12-19T23:28:19.804-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">atrribute values</category><category domain="http://www.blogger.com/atom/ns#">Magento</category><category domain="http://www.blogger.com/atom/ns#">multiple ids</category><category domain="http://www.blogger.com/atom/ns#">multiple product attributes</category><category domain="http://www.blogger.com/atom/ns#">updateAction</category><title>Update Multiple Products Atrributes values using UpdateAction Function</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3&gt;
Update multiple product id attribute values&lt;/h3&gt;
&lt;br /&gt;
To update multiple product attribute values using simple code.
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;Mage::getSingleton(&#39;catalog/product_action&#39;)
   -&amp;gt;updateAttributes(
    $productIds, 
    array(&#39;[attribute_id]&#39; =&amp;gt; [attribute_value])
     );
&lt;/pre&gt;
If you want to update the attribute values for muliple products, then the above code will do the magic for that.
&lt;br /&gt;
&lt;br /&gt;
for ex:
&lt;br /&gt;
Want to update the meta title for multiple products, refer the code below.
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;/*
$collection refers to the set of product collections
*/
$productIds = $collection-&amp;gt;getAllIds();
/*
*print_r($productIds);
*/
Mage::getSingleton(&#39;catalog/product_action&#39;)
   -&amp;gt;updateAttributes(
    $productIds, 
    array(&#39;meta_title&#39; =&amp;gt; &#39;title added&#39;)
     );
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/12/update-multiple-product-ids-atrributes.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-4750611145809802667</guid><pubDate>Sun, 14 Dec 2014 11:47:00 +0000</pubDate><atom:updated>2014-12-19T23:28:49.362-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">additional data</category><category domain="http://www.blogger.com/atom/ns#">Magento</category><category domain="http://www.blogger.com/atom/ns#">magento payment</category><category domain="http://www.blogger.com/atom/ns#">payment additional data field</category><category domain="http://www.blogger.com/atom/ns#">payment gateway</category><category domain="http://www.blogger.com/atom/ns#">payment method</category><title>How to add Additional Data in Payment Additional Data Field</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3&gt;
Set additional data/information in payment instance&lt;/h3&gt;
If you want to add the additional information in payment instance, then
&lt;br /&gt;
&lt;br /&gt;
Step1
&lt;br /&gt;
In the Model file of your created payment &lt;br /&gt;
&lt;pre&gt;Mage_Payment_Model_Method_[custom_name]&lt;/pre&gt;
add the below code in &lt;br /&gt;
&lt;pre&gt;assignData()&lt;/pre&gt;
function
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;$this-&amp;gt;getInfoInstance()-&amp;gt;setAdditionalData([value to set]);
&lt;/pre&gt;
&lt;br /&gt;
for example
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;$data[&#39;pay&#39;] = &#39;xxxx&#39;;
$this-&amp;gt;getInfoInstance()-&amp;gt;setAdditionalData(serialize($data));
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Step2
&lt;br /&gt;
In Block folder, create payment info file that extends info block,
add the below code in info phtml file
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;protected $_pay;

public function getPay()
{
     if (is_null($this-&amp;gt;_pay)) {
        $this-&amp;gt;_convertAdditionalData();
     }
     return $this-&amp;gt;_pay;
}

protected function _convertAdditionalData()
{
    $this-&amp;gt;_pay= &#39;&#39;;

    $data = @unserialize($this-&amp;gt;getInfo()-&amp;gt;getAdditionalData());        
    if (is_array($data )) {
         $this-&amp;gt;_emi = isset($data [&#39;pay&#39;]) ? (string) $data [&#39;pay&#39;] : &#39;&#39;;
    }
    return $this;
}
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Step3
&lt;br /&gt;
In the payment info phtml file, add the below code to show the additional data added.

&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&amp;lt;?php  
echo ( if($this-&amp;gt;getPay()) ? $this-&amp;gt;getPay() : &#39;&#39;);  
?&amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Now check the &lt;br /&gt;
&lt;pre&gt;additional_data field&lt;/pre&gt;
in &lt;br /&gt;
&lt;pre&gt;sales_flat_order_payment&lt;/pre&gt;
table for that order, you will find the data that added in table.
&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/12/how-to-add-additional-data-in-payment.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-4652497508817416947</guid><pubDate>Sun, 14 Dec 2014 11:08:00 +0000</pubDate><atom:updated>2014-12-19T23:29:24.082-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">call block</category><category domain="http://www.blogger.com/atom/ns#">cms</category><category domain="http://www.blogger.com/atom/ns#">cms static block</category><category domain="http://www.blogger.com/atom/ns#">identifier</category><category domain="http://www.blogger.com/atom/ns#">Magento</category><category domain="http://www.blogger.com/atom/ns#">magento admin</category><category domain="http://www.blogger.com/atom/ns#">magento cms</category><category domain="http://www.blogger.com/atom/ns#">static block</category><title>Magento how to Call cms Static Block Created in Admin</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3&gt;
Create CMS static block&lt;/h3&gt;
&lt;br /&gt;
Create static block in Magento admin area. Add new block in Admin -&amp;gt; CMS -&amp;gt;Static Blocks and create new. Note down the Identifier of that block going to create.
&lt;br /&gt;
&lt;br /&gt;
If want to call the static block in &lt;b&gt;phtml&lt;/b&gt; file, refer the below code to add in that

&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;$this-&amp;gt;getLayout()-&amp;gt;createBlock(&#39;cms/block&#39;)-&amp;gt;setBlockId(&#39;[identifier]&#39;)-&amp;gt;toHtml();
&lt;/pre&gt;
&lt;br /&gt;
&lt;pre&gt;[identifier] denotes the name of the static block.

You can add this code in which the block to appear.

&lt;/pre&gt;
&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/12/magento-how-to-call-create-cms-static.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-3299633379107965809</guid><pubDate>Sat, 06 Dec 2014 04:31:00 +0000</pubDate><atom:updated>2014-12-10T09:33:01.634-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">catalog_category_flat</category><category domain="http://www.blogger.com/atom/ns#">catalog_category_product</category><category domain="http://www.blogger.com/atom/ns#">catalog_product_attribute</category><category domain="http://www.blogger.com/atom/ns#">catalog_product_flat</category><category domain="http://www.blogger.com/atom/ns#">catalog_product_price</category><category domain="http://www.blogger.com/atom/ns#">catalog_url</category><category domain="http://www.blogger.com/atom/ns#">cataloginventory_stock</category><category domain="http://www.blogger.com/atom/ns#">catalogsearch_fulltext</category><category domain="http://www.blogger.com/atom/ns#">reindex</category><category domain="http://www.blogger.com/atom/ns#">tag_summary</category><title>Using Index Management in Terminal</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3&gt;
Reindex Data using linux terminal&lt;/h3&gt;
&lt;br /&gt;
Reindex data through admin as&lt;br /&gt;
&lt;br /&gt;
Admin -&amp;gt; System -&amp;gt; Index Management&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Navigate to root folder&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Using terminal as&lt;br /&gt;
&lt;br /&gt;
cd [magento_root_folder]/shell&lt;br /&gt;
&lt;br /&gt;
Press Enter &lt;br /&gt;
&lt;br /&gt;
[magento_root_folder] - defines magento installed root folder.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;List all the files in the folder&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
cd ls&lt;br /&gt;
&lt;br /&gt;
Press Enter&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;View status of the all indexes&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;php indexer.php --status&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;Press Enter &lt;/code&gt;&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;&lt;br /&gt;&lt;/code&gt;
&lt;code class=&quot;bash plain&quot;&gt;You find the status of all the avaiable indexes&lt;/code&gt;&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;&lt;br /&gt;&lt;/code&gt;
&lt;code class=&quot;bash plain&quot;&gt;&lt;b&gt;Reindex the catalog_product_price&lt;/b&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;php indexer.php --reindex catalog_product_price&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;Press Enter&lt;/code&gt;&amp;nbsp;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/code&gt;
&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;b&gt;List of terminal execution indexes&lt;/b&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;By default&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;Name of indexes &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Exceuting code path in terminal &lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;Product Attributes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catalog_product_attribute &lt;/code&gt;&lt;/code&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;Product Prices&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;/code&gt;catalog_product_price&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;Catalog Url Rewrites&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;/code&gt;catalog_url&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;Product Flat Data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;/code&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;catalog_product_flat&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;Category Flat Data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;/code&gt;catalog_category_flat &lt;/code&gt;&lt;/code&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;Category Products&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;/code&gt;catalog_category_product&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;Catalog Search Index&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;/code&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;catalogsearch_fulltext&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;Stock status &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;cataloginventory_stock&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code class=&quot;bash plain&quot;&gt;&lt;code class=&quot;bash plain&quot;&gt;Tag Summary&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tag_summary&amp;nbsp;&lt;/code&gt; &lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;To Indexing all the availabe indexes&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
php indexer.php --reindexall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/12/using-index-management-in-terminal.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-6788387493127040741</guid><pubDate>Wed, 26 Nov 2014 19:22:00 +0000</pubDate><atom:updated>2014-12-19T23:30:05.496-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">apache</category><category domain="http://www.blogger.com/atom/ns#">apache restart</category><category domain="http://www.blogger.com/atom/ns#">apache start</category><category domain="http://www.blogger.com/atom/ns#">apache stop</category><category domain="http://www.blogger.com/atom/ns#">init.d</category><title>Apache service Start, Stop and Restart</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;!--h3&gt;
Apache Service&lt;/h3--&gt;
To start Apache server&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;sudo service apache2 start&lt;/pre&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( or )&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;sudo /etc/init.d/apache2 start&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;To stop Apache server&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;sudo service apache2 stop&lt;/pre&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (or)&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;sudo /etc/init.d/apache2 stop&lt;/pre&gt;
&lt;br /&gt;
&amp;nbsp;To restart Apache server&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;sudo service apache2 restart&lt;/pre&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (or)&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;sudo /etc/init.d/apache2 restart&lt;/pre&gt;
&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/11/apache-service-start-stop-and-restart.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-7944051233918927276</guid><pubDate>Wed, 26 Nov 2014 19:17:00 +0000</pubDate><atom:updated>2014-12-19T23:30:21.346-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">init.d</category><category domain="http://www.blogger.com/atom/ns#">mysql restart</category><category domain="http://www.blogger.com/atom/ns#">mysql service</category><category domain="http://www.blogger.com/atom/ns#">mysql start</category><category domain="http://www.blogger.com/atom/ns#">mysql stop</category><title>MySQL service Start, Stop and Restart</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3&gt;
MySQL service&lt;/h3&gt;
To start MySQL server&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;sudo service mysql start&lt;/pre&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( or )&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;sudo /etc/init.d/mysql start&lt;/pre&gt;
&lt;br /&gt;
&amp;nbsp;To stop MySQL server&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;sudo service mysql stop&lt;/pre&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (or)&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;sudo /etc/init.d/mysql stop&lt;/pre&gt;
&lt;br /&gt;
&amp;nbsp;To restart MySQL server&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;sudo service mysql restart&lt;/pre&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (or)&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;sudo /etc/init.d/mysql restart&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/11/mysql-service-start-stop-and-restart.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-2689433146886345308</guid><pubDate>Tue, 25 Nov 2014 20:32:00 +0000</pubDate><atom:updated>2014-12-19T23:30:45.889-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">array</category><category domain="http://www.blogger.com/atom/ns#">nested array</category><category domain="http://www.blogger.com/atom/ns#">php</category><category domain="http://www.blogger.com/atom/ns#">recursive array search</category><title>Find the Array key in Nested Array</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3&gt;
 In nested array find the array key for matched value&lt;/h3&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;function recursive_array_search($needle, $haystack) {
    foreach($haystack as $key=&amp;gt;$value) {
        $current_key = $key;
        if($needle === $value
  || (is_array($value) &amp;amp;&amp;amp; recursive_array_search($needle,$value) !== false)) {
            return $current_key;
        }
    }
    return false;
}&lt;/pre&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&amp;nbsp;&lt;/pre&gt;
Find the key of the matched element in nested array.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;$needle&lt;/pre&gt;
- String which has to find.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;$haystack&lt;/pre&gt;
- Array elements $needle has to search in this array.


&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/11/find-array-key-in-nested-array.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-8142689847059731334</guid><pubDate>Tue, 25 Nov 2014 20:03:00 +0000</pubDate><atom:updated>2014-11-25T12:05:00.584-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">mysql</category><category domain="http://www.blogger.com/atom/ns#">mysqli</category><category domain="http://www.blogger.com/atom/ns#">php</category><category domain="http://www.blogger.com/atom/ns#">php 5</category><title>PHP MySQL Connection</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
MySQLI Connection - &lt;b&gt;&lt;i&gt;I for Improved&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Connect the database from php throug MySQLI

&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt; 
/*hostname - localhost, user - user, password - null, database - test*/

$db = new mysqli(&#39;localhost&#39;, &#39;user&#39;, &#39;&#39;, &#39;test&#39;);

if($db-&amp;gt;connect_errno &amp;gt; 0){
    die(&#39;Error in connecting database (&#39; . $db-&amp;gt;connect_error . &#39;)&#39;);
}
&lt;/pre&gt;
&lt;br /&gt;
Now doing the simple query to get records from employee table

&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt; 
/* Do Query */

$sql = &quot;SELECT * FROM `employee`;

if(!$result = $db-&amp;gt;query($sql)){
    die(&#39;Query error &#39; . $db-&amp;gt;error);
}
&lt;/pre&gt;
&lt;br /&gt;
Display the output by fethcing the table records

&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt; 
/* Fetching records */

while($row = $result-&amp;gt;fetch_assoc()){
    echo $row[&#39;username&#39;];
}
&lt;/pre&gt;
&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/11/php-mysql-connection.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1902127076886608446.post-8071831023869873285</guid><pubDate>Tue, 25 Nov 2014 19:39:00 +0000</pubDate><atom:updated>2014-12-19T23:31:13.710-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">categories</category><category domain="http://www.blogger.com/atom/ns#">Magento</category><category domain="http://www.blogger.com/atom/ns#">sub categories</category><title>Magento Display Categories and Subcategories</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h3&gt;
Display categories and subcategories in Magento page&lt;/h3&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;    /*Display current store categories*/

    $_helper = Mage::helper(&#39;catalog/category&#39;);
    $_categories = $_helper-&amp;gt;getStoreCategories();

    /*Parent categories*/

    foreach($_categories as $_category) {

      if(!$_category-&amp;gt;getIsActive()){
        continue;
      }

      echo $_category-&amp;gt;getName();
      echo render_child($_category-&amp;gt;getId());
    }
    
    /*Render child categories*/

    function render_child($cid) {
 
     $html = &#39;&#39;;
     $_subCategory = Mage::getModel(&#39;catalog/category&#39;)-&amp;gt;load($cid);

     $_subCategories = $_subCategory-&amp;gt;getChildrenCategories();

     if (count($_subCategories) &amp;gt; 0){

       $html .= &#39;&amp;lt;ul&amp;gt;&#39;;

       foreach($_subCategories as $_subCat){

         if(!$_subCat-&amp;gt;getIsActive()){
           continue;
         }
    
         $html .= &#39;&amp;lt;li&amp;gt;&#39;;
 
         /*Display first level sub categories*/

         $catUrl = Mage::helper(&#39;catalog/category&#39;)
                            -&amp;gt;getCategoryUrl($_subCat);

         $html .= &quot;&amp;lt;a href=&#39;&quot;.$catUrl.&quot;&#39;&amp;gt;&quot;.$_subCat-&amp;gt;getName().&quot;&amp;lt;/a&amp;gt;&quot;;
  
         /*Display first level sub categories*/

         /*If needed display next level sub categories*/

         $html .= render_child($_subCat-&amp;gt;getId()); 
  
         /*If needed display next level sub categories*/

         $html .= &#39;&amp;lt;/li&amp;gt;&#39;;
      }
   
      $html .= &#39;&amp;lt;/ul&amp;gt;&#39;;
     }  
     return $html;
  }

&lt;/pre&gt;
&lt;br /&gt;
Displaying the category and subcategories from the current store. After getting the store categories, check the category is active and output the parent category name. &lt;br /&gt;
&lt;br /&gt;
With the help of &lt;br /&gt;
&lt;pre&gt; render_child &lt;/pre&gt;
function, check the active subcategories then display first level child elements in list format.&lt;br /&gt;
&lt;br /&gt;
Would like to display all subcategories then call &lt;br /&gt;
&lt;pre&gt; render_child &lt;/pre&gt;
function, with argument as current category id.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
</description><link>http://shareinfo2all.blogspot.com/2014/11/magento-display-categories-and.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item></channel></rss>