<?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: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-3012651359853809302</id><updated>2012-02-16T20:37:21.206+05:30</updated><title type='text'>PHP CODES BY Ritesh Kumar Sahu</title><subtitle type='html'>Welcome to my Blog.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
"I must be cruel only to be kind;&lt;br&gt;
Thus bad begins, and worse remains behind."</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>35</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-4934144262702258403</id><published>2010-12-30T17:56:00.001+05:30</published><updated>2010-12-30T17:56:36.538+05:30</updated><title type='text'>Customizing Onepage Checkout - Remove shipping_method</title><content type='html'>Give our namespace name - “Digg“. So you have a folder in app/local/Digg for modules and module “Checkout”.&lt;br /&gt;&lt;br /&gt;You must add next files to you module:&lt;br /&gt;&lt;br /&gt;1.Block Digg/Checkout/Block/Onepage/Shipping/Method.php&lt;br /&gt;2.Controller Digg/Checkout/controllers/OnepageController.php&lt;br /&gt;3.Model Digg/Checkout/Model/Type/Onepage.php&lt;br /&gt;4.Configuration Digg/Checkout/etc/config.xml&lt;br /&gt;&lt;br /&gt;1. Block (Method.php)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To disable Shipping Method for checkout list, you must hide it. Our custom shipping method inherited from core Mage_Checkout_Block_Onepage_Shipping_Method class. Overload method isShow and return false: &lt;br /&gt;class Digg_Checkout_Block_Onepage_Shipping_Method extends &lt;br /&gt;&lt;?Mage_Checkout_Block_Onepage_Shipping_Method      {          public function isShow()          {              return false;          }      }?&gt;&lt;br /&gt;&lt;br /&gt;2. Controller (OnepageController.php)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Important:Controllers have no autoloading so you must include it manualy. Overwrite the function saveShippingAction() and saveBillingAction() to skip shipping method to payment with the following code: &lt;br /&gt;&lt;br /&gt;&lt;?php      require_once 'Mage/Checkout/controllers/OnepageControllers.php';      class Digg_Checkout_OnepageController extends Mage_Checkout_OnepageController      {          public function saveShippingAction()          {              if ($this-&gt;_expireAjax()) {&lt;br /&gt;return;&lt;br /&gt;}&lt;br /&gt;if ($this-&gt;getRequest()-&gt;isPost()) {&lt;br /&gt;$data = $this-&gt;getRequest()-&gt;getPost('shipping', array());&lt;br /&gt;$customerAddressId = $this-&gt;getRequest()-&gt;getPost('shipping_address_id', false);&lt;br /&gt;$result = $this-&gt;getOnepage()-&gt;saveShipping($data, $customerAddressId);&lt;br /&gt;if (!isset($result['error'])) {&lt;br /&gt;$result['goto_section'] = 'payment';&lt;br /&gt;$result['update_section'] = array(&lt;br /&gt;'name' =&gt; 'payment-method',&lt;br /&gt;'html' =&gt; $this-&gt;_getPaymentMethodsHtml()&lt;br /&gt;);&lt;br /&gt;}&lt;br /&gt;$this-&gt;getResponse()-&gt;setBody(Mage::helper('core')-&gt;jsonEncode($result));&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;public function saveBillingAction()&lt;br /&gt;{&lt;br /&gt;if ($this-&gt;_expireAjax()) {&lt;br /&gt;return;&lt;br /&gt;}&lt;br /&gt;if ($this-&gt;getRequest()-&gt;isPost()) {&lt;br /&gt;$data = $this-&gt;getRequest()-&gt;getPost('billing', array());&lt;br /&gt;$customerAddressId = $this-&gt;getRequest()-&gt;getPost('billing_address_id', false);&lt;br /&gt;$result = $this-&gt;getOnepage()-&gt;saveBilling($data, $customerAddressId);&lt;br /&gt;if (!isset($result['error'])) {&lt;br /&gt;/* check quote for virtual */&lt;br /&gt;if ($this-&gt;getOnepage()-&gt;getQuote()-&gt;isVirtual()) {&lt;br /&gt;$result['goto_section'] = 'payment';&lt;br /&gt;$result['update_section'] = array(&lt;br /&gt;'name' =&gt; 'payment-method',&lt;br /&gt;'html' =&gt; $this-&gt;_getPaymentMethodsHtml()&lt;br /&gt;);&lt;br /&gt;}&lt;br /&gt;elseif (isset($data['use_for_shipping']) &amp;&amp; $data['use_for_shipping'] == 1) {&lt;br /&gt;&lt;br /&gt;$result['goto_section'] = 'payment';&lt;br /&gt;$result['update_section'] = array(&lt;br /&gt;'name' =&gt; 'payment-method',&lt;br /&gt;'html' =&gt; $this-&gt;_getPaymentMethodsHtml()&lt;br /&gt;);&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;$result['goto_section'] = 'shipping';&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;$this-&gt;getResponse()-&gt;setBody(Mage::helper('core')-&gt;jsonEncode($result));&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. Model (Onepage.php)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The simplest way to ask magento to ignore shipping info is to change validation rule. Te following code overwriting validateOrder() method. I just removed part of original code that validate non-virtual products &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;?php      class Digg_Checkout_Model_Type_Onepage extends Mage_Checkout_Model_Type_Onepage      {          protected function validateOrder()          {              $helper = Mage::helper('checkout');              if ($this-&gt;getQuote()-&gt;getIsMultiShipping()) {&lt;br /&gt;Mage::throwException($helper-&gt;__('Invalid checkout type.'));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$addressValidation = $this-&gt;getQuote()-&gt;getBillingAddress()-&gt;validate();&lt;br /&gt;if ($addressValidation !== true) {&lt;br /&gt;Mage::throwException($helper-&gt;__('Please check billing address information.'));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (!($this-&gt;getQuote()-&gt;getPayment()-&gt;getMethod())) {&lt;br /&gt;Mage::throwException($helper-&gt;__('Please select valid payment method.'));&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. Configuration (config.xml)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Last step is configurate our module. The main idea is to ask Magento first searching action methods in our Digg module and if it didn’t found use core. &lt;br /&gt;&lt;br /&gt;&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;br /&gt;&lt;config&gt;&lt;br /&gt;&lt;modules&gt;&lt;br /&gt;&lt;digg_checkout&gt;&lt;br /&gt;&lt;version&gt;0.0.2&lt;/version&gt;&lt;br /&gt;&lt;/Digg_Checkout&gt;&lt;br /&gt;&lt;/modules&gt;&lt;br /&gt;&lt;global&gt;&lt;br /&gt;&lt;models&gt;&lt;br /&gt;&lt;checkout&gt;&lt;br /&gt;&lt;rewrite&gt;&lt;br /&gt;&lt;type_onepage&gt;Digg_Checkout_Model_Type_Onepage&lt;/type_onepage&gt;&lt;br /&gt;&lt;/rewrite&gt;&lt;br /&gt;&lt;/checkout&gt;&lt;br /&gt;&lt;/models&gt;&lt;br /&gt;&lt;blocks&gt;&lt;br /&gt;&lt;checkout&gt;&lt;br /&gt;&lt;rewrite&gt;&lt;br /&gt;&lt;onepage_shipping_method&gt;Digg_Checkout_Block_Onepage_Shipping_Method&lt;/onepage_shipping_method&gt;&lt;br /&gt;&lt;/rewrite&gt;&lt;br /&gt;&lt;/checkout&gt;&lt;br /&gt;&lt;/blocks&gt;&lt;br /&gt;&lt;/global&gt;&lt;br /&gt;&lt;frontend&gt;&lt;br /&gt;&lt;routers&gt;&lt;br /&gt;&lt;checkout&gt;&lt;br /&gt;&lt;args&gt;&lt;br /&gt;&lt;modules&gt;&lt;br /&gt;&lt;checkoutdigg before="Mage_Checkout"&gt;Digg_Checkout&lt;/checkoutdigg&gt;&lt;br /&gt;&lt;/modules&gt;&lt;br /&gt;&lt;/args&gt;&lt;br /&gt;&lt;/checkout&gt;&lt;br /&gt;&lt;/routers&gt;&lt;br /&gt;&lt;/frontend&gt;&lt;br /&gt;&lt;/config&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Don’t forget to register your module in app/etc/modules/Digg_All.xml: &lt;br /&gt;&lt;br /&gt;&lt;?xml version="1.0"?&gt;&lt;br /&gt;&lt;config&gt;&lt;br /&gt;&lt;modules&gt;&lt;br /&gt;&lt;digg_checkout&gt;&lt;br /&gt;&lt;active&gt;true&lt;/active&gt;&lt;br /&gt;&lt;codepool&gt;local&lt;/codePool&gt;&lt;br /&gt;&lt;/Digg_Checkout&gt;&lt;br /&gt;&lt;/modules&gt;&lt;br /&gt;&lt;/config&gt;&lt;br /&gt;&lt;br /&gt;For more information go here : &lt;br /&gt;&lt;br /&gt;http://www.magentocommerce.com/wiki/5_-_modules_and_development/checkout/customizing_onepage_checkout_-_remove_shipping_method?do=show&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-4934144262702258403?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/4934144262702258403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/12/customizing-onepage-checkout-remove_30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/4934144262702258403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/4934144262702258403'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/12/customizing-onepage-checkout-remove_30.html' title='Customizing Onepage Checkout - Remove shipping_method'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-4308042501708235287</id><published>2010-12-30T13:02:00.001+05:30</published><updated>2010-12-30T13:02:49.518+05:30</updated><title type='text'>Customizing Onepage Checkout - Remove login  - Magento</title><content type='html'>&lt;strong&gt;Q. How to remove log&lt;span class="search_hit"&gt;in&lt;/span&gt; block from &lt;span class="search_hit"&gt;Onepage&lt;/span&gt;&lt;span class="search_hit"&gt;Checkout&lt;/span&gt;? Every customer &lt;span class="search_hit"&gt;checkout&lt;/span&gt; as guest.&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;strong&gt;1.) /app/design/frontend&lt;em&gt;/default&lt;/em&gt;&lt;em&gt;/detault&lt;/em&gt;/layout/&lt;span class="search_hit"&gt;checkout&lt;/span&gt;.xml&amp;nbsp;&lt;/strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;Comment out or remove the reference to “&lt;span class="search_hit"&gt;checkout&lt;/span&gt;.&lt;span class="search_hit"&gt;onepage&lt;/span&gt;.log&lt;span class="search_hit"&gt;in&lt;/span&gt;” addL&lt;span class="search_hit"&gt;in&lt;/span&gt;k under the &lt;span class="search_hit"&gt;checkout&lt;/span&gt;_&lt;span class="search_hit"&gt;onepage&lt;/span&gt;_&lt;span class="search_hit"&gt;in&lt;/span&gt;dex section.&lt;br /&gt;&lt;br /&gt;&lt;span class="sc2"&gt;&lt;span class="coMULTI"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2.) /app/design/frontend&lt;em&gt;/default&lt;/em&gt;&lt;em&gt;/default&lt;/em&gt;/template/&lt;span class="search_hit"&gt;checkout&lt;/span&gt;/&lt;span class="search_hit"&gt;onepage&lt;/span&gt;.phtml&amp;nbsp;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;Edit the code at the bottom (see l&lt;span class="search_hit"&gt;in&lt;/span&gt;e 2 l&lt;span class="search_hit"&gt;in&lt;/span&gt;e 19): &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br /&gt;&lt;div class="code html4strict" style="font-family: monospace;"&gt;&lt;div class="code_bg"&gt;&lt;ol&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;strong&gt;&lt;span class="sc2"&gt;&lt;span class="coMULTI"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;&lt;strong&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="sc2"&gt;&lt;span class="kw2"&gt;&amp;lt;&lt;span class="search_hit"&gt;in&lt;/span&gt;put&lt;/span&gt; &lt;span class="kw3"&gt;type&lt;/span&gt;=&lt;span class="st0"&gt;"hidden"&lt;/span&gt; &lt;span class="kw3"&gt;name&lt;/span&gt;=&lt;span class="st0"&gt;"&lt;span class="search_hit"&gt;checkout&lt;/span&gt;_method"&lt;/span&gt; &lt;span class="kw3"&gt;id&lt;/span&gt;=&lt;span class="st0"&gt;"log&lt;span class="search_hit"&gt;in&lt;/span&gt;:guest"&lt;/span&gt; &lt;span class="kw3"&gt;checked&lt;/span&gt;=&lt;span class="st0"&gt;"checked"&lt;/span&gt; &lt;span class="kw3"&gt;value&lt;/span&gt;=&lt;span class="st0"&gt;"guest"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="sc2"&gt;&lt;span class="kw2"&gt;&lt;script&lt; span=""&gt; &lt;span class="kw3"&gt;type&lt;/span&gt;=&lt;span class="st0"&gt;"text/javascript"&lt;/span&gt;&lt;span class="kw2"&gt;&amp;gt;&lt;/span&gt;&lt;/script&lt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;//&lt;span class="sc2"&gt;&lt;span class="kw2"&gt;&amp;lt;&lt;/span&gt;!&lt;span class="br0"&gt;[&lt;/span&gt;CDATA&lt;span class="br0"&gt;[&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; var accordion = new Accordion&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="st0"&gt;'&lt;span class="search_hit"&gt;checkout&lt;/span&gt;Steps'&lt;/span&gt;, &lt;span class="st0"&gt;'.head'&lt;/span&gt;, true&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &lt;span class="kw2"&gt;&amp;lt;;&lt;/span&gt;?php if&lt;span class="br0"&gt;(&lt;/span&gt;$this-&lt;span class="kw2"&gt;&amp;gt;&lt;/span&gt;getActiveStep()): ?&amp;gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; accordion.openSection('opc-bill&lt;span class="search_hit"&gt;in&lt;/span&gt;g');&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &lt;span class="sc2"&gt;&lt;span class="kw2"&gt;&amp;lt;&lt;/span&gt;?php endif ?&lt;span class="kw2"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; var &lt;span class="search_hit"&gt;checkout&lt;/span&gt; = new &lt;span class="search_hit"&gt;Checkout&lt;/span&gt;(accordion,{&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; progress: '&lt;span class="sc2"&gt;&lt;span class="kw2"&gt;&amp;lt;&lt;/span&gt;?php echo $this-&lt;span class="kw2"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;getUrl('&lt;span class="search_hit"&gt;checkout&lt;/span&gt;/&lt;span class="search_hit"&gt;onepage&lt;/span&gt;/progress') ?&amp;gt;,&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; review: '&lt;span class="sc2"&gt;&lt;span class="kw2"&gt;&amp;lt;&lt;/span&gt;?php echo $this-&lt;span class="kw2"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;getUrl('&lt;span class="search_hit"&gt;checkout&lt;/span&gt;/&lt;span class="search_hit"&gt;onepage&lt;/span&gt;/review') ?&amp;gt;;',&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; saveMethod: '&amp;lt;&lt;span class="sc2"&gt;?php echo $this-&amp;gt;&lt;/span&gt;getUrl('&lt;span class="search_hit"&gt;checkout&lt;/span&gt;/&lt;span class="search_hit"&gt;onepage&lt;/span&gt;/saveMethod') ?&amp;gt;',&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; failure: '&lt;span class="sc2"&gt;&lt;span class="kw2"&gt;&amp;lt;&lt;/span&gt;?php echo $this-&lt;span class="kw2"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;getUrl('&lt;span class="search_hit"&gt;checkout&lt;/span&gt;/cart') ?&amp;gt;'}&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; );&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; // Go to the next method on start (it will look for the &lt;span class="search_hit"&gt;in&lt;/span&gt;put we added above)&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; //IE fix&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; var cb = $("log&lt;span class="search_hit"&gt;in&lt;/span&gt;:guest");&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; cb.checked = true;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &lt;span class="search_hit"&gt;checkout&lt;/span&gt;.setMethod();&amp;nbsp; // MAKE SURE TO ADD THIS L&lt;span class="search_hit"&gt;IN&lt;/span&gt;E!!!&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;//]]&amp;gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="sc2"&gt;&lt;span class="kw2"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/strong&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;strong&gt;The &lt;strong&gt;&lt;span class="search_hit"&gt;checkout&lt;/span&gt;.setMethod()&lt;/strong&gt; will move to the next &lt;span class="search_hit"&gt;checkout&lt;/span&gt; method (bill&lt;span class="search_hit"&gt;in&lt;/span&gt;g) if it sees that the &lt;span class="search_hit"&gt;in&lt;/span&gt;put for a guest is checked (hence why we add the hidden &lt;span class="search_hit"&gt;in&lt;/span&gt;put)&lt;code&gt;Code Text&lt;/code&gt;  &lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-4308042501708235287?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/4308042501708235287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/12/customizing-onepage-checkout-remove.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/4308042501708235287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/4308042501708235287'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/12/customizing-onepage-checkout-remove.html' title='Customizing Onepage Checkout - Remove login  - Magento'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-4602404115863903348</id><published>2010-09-01T11:34:00.003+05:30</published><updated>2010-09-01T11:39:10.244+05:30</updated><title type='text'>Information on the ZendX jQuery Proposals</title><content type='html'>When&amp;nbsp; I was wondering about the jqueryui&amp;nbsp; helper in zend frame work the I came across these demos. You can find a great help to start jquery support in zend framework. Just check this out ...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://www.beberlei.de/jquery/demo/&lt;br /&gt;&lt;br /&gt;http://www.beberlei.de/jquery/demo/formdemo.php&lt;iframe align="right" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=p0a25-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003STDO4O&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-4602404115863903348?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/4602404115863903348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/09/information-on-zendx-jquery-proposals.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/4602404115863903348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/4602404115863903348'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/09/information-on-zendx-jquery-proposals.html' title='Information on the ZendX jQuery Proposals'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-5187484250861596105</id><published>2010-07-14T14:03:00.002+05:30</published><updated>2010-07-14T14:03:42.667+05:30</updated><title type='text'>The Sorcerer's Apprentice</title><content type='html'>&lt;object height="385" width="640"&gt;&lt;param name="movie" value="http://www.youtube.com/v/9VZllR44gdA&amp;amp;hl=en_US&amp;amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/9VZllR44gdA&amp;amp;hl=en_US&amp;amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;iframe align="right" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=p0a25-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B003FBNJ4U&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-5187484250861596105?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/5187484250861596105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/07/sorcerers-apprentice.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/5187484250861596105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/5187484250861596105'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/07/sorcerers-apprentice.html' title='The Sorcerer&apos;s Apprentice'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-3088041567751699721</id><published>2010-07-08T20:21:00.001+05:30</published><updated>2010-07-08T20:21:22.008+05:30</updated><title type='text'>The Evolution of Web 3.0</title><content type='html'>Check out this SlideShare Presentation: &lt;div style="width:425px" id="__ss_370508"&gt;&lt;strong style="display:block;margin:12px 0 4px"&gt;&lt;a href="http://www.slideshare.net/mstrickland/the-evolution-of-web-30" title="The Evolution of Web 3.0"&gt;The Evolution of Web 3.0&lt;/a&gt;&lt;/strong&gt;&lt;object id="__sse370508" width="425" height="355"&gt;&lt;param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=web3evolution-1228454469401752-9&amp;stripped_title=the-evolution-of-web-30" /&gt;&lt;param name="allowFullScreen" value="true"/&gt;&lt;param name="allowScriptAccess" value="always"/&gt;&lt;embed name="__sse370508" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=web3evolution-1228454469401752-9&amp;stripped_title=the-evolution-of-web-30" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style="padding:5px 0 12px"&gt;View more &lt;a href="http://www.slideshare.net/"&gt;presentations&lt;/a&gt; from &lt;a href="http://www.slideshare.net/mstrickland"&gt;Marta Strickland&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-3088041567751699721?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/3088041567751699721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/07/evolution-of-web-30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/3088041567751699721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/3088041567751699721'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/07/evolution-of-web-30.html' title='The Evolution of Web 3.0'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-7006588543039190638</id><published>2010-06-25T10:33:00.002+05:30</published><updated>2010-06-25T10:33:56.461+05:30</updated><title type='text'>Waka Waka (This time for africa)</title><content type='html'>&lt;object height="385" width="640"&gt;&lt;param name="movie" value="http://www.youtube.com/v/pRpeEdMmmQ0&amp;hl=en_US&amp;fs=1&amp;"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/pRpeEdMmmQ0&amp;hl=en_US&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-7006588543039190638?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/7006588543039190638/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/06/waka-waka-this-time-for-africa.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/7006588543039190638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/7006588543039190638'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/06/waka-waka-this-time-for-africa.html' title='Waka Waka (This time for africa)'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-8035745779670585099</id><published>2010-06-08T11:34:00.001+05:30</published><updated>2010-06-11T10:14:22.687+05:30</updated><title type='text'>How to use Reliance Broadband+ Netconnect with Ubuntu Linux</title><content type='html'>Open the Terminal (Application-&amp;gt;Accessories-&amp;gt;Terminal)&lt;br /&gt;&lt;br /&gt;Type  SU (Super User, gives administrative privilege will need it little later). Key in the password .&lt;br /&gt;&lt;br /&gt;then,&lt;br /&gt;&lt;br /&gt;lsusb&lt;br /&gt;&lt;br /&gt;Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;br /&gt;Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;br /&gt;Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br /&gt;Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br /&gt;Bus 004 Device 003: ID 12d1:1412 Huawei Technologies Co., Ltd.&lt;br /&gt;Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br /&gt;Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br /&gt;Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br /&gt;&lt;br /&gt;This thing pops Out&lt;br /&gt;&lt;br /&gt;Note down the no just before Huawei or quallcom depending on which card you use . To my experience all cards of the same vendor will have the same id. like for Huawei itll be 12d1:1412.&lt;br /&gt;&lt;br /&gt;next,&lt;br /&gt;&lt;br /&gt;modprobe usbserial vendor=0xAAAA product=0xBBBB  ,&lt;br /&gt;&lt;br /&gt;Where AAAA is 12d1 and BBBB is 1412 in my case.&lt;br /&gt;&lt;br /&gt;Then you have to edit wvdial.conf file, type,&lt;br /&gt;&lt;br /&gt;gedit /etc/wvdial.conf&lt;br /&gt;&lt;br /&gt;This will open wvdial.conf.&lt;br /&gt;&lt;br /&gt;(NOTE: wvdial might not be installed , to install it .&lt;br /&gt;Insert original UBUNTU CD&lt;br /&gt;&lt;br /&gt;Go to System-&amp;gt;Administration-&amp;gt;software sources. add cd as a source and close . itll update itself, Then on terminal type,&lt;br /&gt;sudo apt-get install wvdial .&lt;br /&gt;&lt;br /&gt;And key in Ur password , that shall do.&lt;br /&gt;&lt;br /&gt;NOW coming back to wvdial .conf. Copy and paste this overriding the previous setting in .&lt;br /&gt;&lt;br /&gt;[Dialer Defaults]&lt;br /&gt;Init1 = ATZ&lt;br /&gt;Init2 = ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 +FCLASS=0&lt;br /&gt;Stupid Mode = 1&lt;br /&gt;Modem Type = USB Modem&lt;br /&gt;ISDN = 0&lt;br /&gt;Phone = #777&lt;br /&gt;New PPPD = yes&lt;br /&gt;Modem = /dev/ttyUSB0&lt;br /&gt;Username = 9310590985 (This is the no written in the back side and changes in every card).&lt;br /&gt;Password = 9310590985 (This is the no written in the back side and changes in every card and is same as user name).&lt;br /&gt;CBaud = 460800&lt;br /&gt;&lt;br /&gt;Save it and exist .&lt;br /&gt;&lt;br /&gt;Next,&lt;br /&gt;&lt;br /&gt;Just enter terminal and sudo Wvdial&lt;br /&gt;And your password to getconnected.&lt;iframe align="right" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=p0a25-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B002M78ECK&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-8035745779670585099?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/8035745779670585099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/06/how-to-use-reliance-broadband.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/8035745779670585099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/8035745779670585099'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/06/how-to-use-reliance-broadband.html' title='How to use Reliance Broadband+ Netconnect with Ubuntu Linux'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-416311620491430063</id><published>2010-04-08T11:10:00.005+05:30</published><updated>2010-04-08T11:30:19.971+05:30</updated><title type='text'>Magento Frequently Asked Questions</title><content type='html'>&lt;span style="font-weight: bold;"&gt;How do I ﬁnd out the proper table name?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The core resource model has a method to get you any table name for any model in&lt;br /&gt;the system. Table names do not have to follow the name of the model, an end-user&lt;br /&gt;can change the table names by changing an XML setting. Also, any installation can&lt;br /&gt;have an arbitrary preﬁx for any table. Therefore, it is best to use the getTable method&lt;br /&gt;of the core resource.&lt;br /&gt; $r = Mage::getResourceSingleton(’core/resource’)-&gt;getConnection(’core_read’)&lt;br /&gt; $tableName = $r-&gt;getTable(’catalog/product’);&lt;br /&gt; $tableName === ’catalog_product_entity’;&lt;br /&gt;This happens because we have the following XML conﬁguration in the catalog mod-&lt;br /&gt;ule’s conﬁg ﬁle.&lt;br /&gt; &lt;global&gt;&lt;br /&gt;     &lt;models&gt;&lt;br /&gt;         &lt;catalog&gt;&lt;br /&gt;              &lt;class&gt;Mage_Catalog_Model&lt;/class&gt;&lt;br /&gt;              &lt;resourcemodel&gt;catalog_resource_eav_mysql4&lt;/resourcemodel&gt;&lt;br /&gt;         &lt;/catalog&gt;&lt;br /&gt;         &lt;catalog_resource_eav_mysql4&gt;&lt;br /&gt; &lt;class&gt;Mage_Catalog_Model_Resource_Eav_Mysql4&lt;/class&gt;&lt;br /&gt; &lt;entities&gt;&lt;br /&gt;     &lt;product&gt;&lt;br /&gt;         &lt;table&gt;catalog_product_entity&lt;/table&gt;&lt;br /&gt;     &lt;/product&gt;&lt;br /&gt;...&lt;br /&gt;&lt;/entities&gt;&lt;/catalog_resource_eav_mysql4&gt;&lt;/models&gt;&lt;/global&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;How do I show Magento products on a non-Magento page?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is an often requested feature. There are a number of ways to do it too. You&lt;br /&gt;could create a listener to publish a category of products to static HTML whenever a&lt;br /&gt;category changes. You could run a cron script or other scheduled task to run some&lt;br /&gt;Magento code to export a category of products to a static ﬁle as well. The quickest&lt;br /&gt;way to get the job done is to simply include the necessary Magento ﬁles in your other&lt;br /&gt;PHP script and call the display logic.&lt;br /&gt;Start with the basic shell magento script.&lt;br /&gt; require_once ’/path/to/app/Mage.php;&lt;br /&gt; umask(0);&lt;br /&gt; //not Mage::run();&lt;br /&gt; Mage::app(’default’);&lt;br /&gt;Assuming we want to display an entire category of products, we need to load up the&lt;br /&gt;category display block and render it. This will load the products and push the data&lt;br /&gt;through the associated template ﬁle.&lt;br /&gt; //code snipped&lt;br /&gt; $className = Mage::getConfig()&lt;br /&gt;               -&gt;getBlockClassName(’catalog/product_list’);&lt;br /&gt; $block = new $className();&lt;br /&gt; $className = Mage::getConfig()&lt;br /&gt;                -&gt;getBlockClassName(’core/template’);&lt;br /&gt; $toolbar = new $className();&lt;br /&gt; $block-&gt;setChild(’toolbar’, $toolbar);&lt;br /&gt; //choose whatever category ID you want&lt;br /&gt;&lt;br /&gt;  $block-&gt;setCategoryId(3);&lt;br /&gt;  $block-&gt;setTemplate(’catalog/product/list.phtml’);&lt;br /&gt;  echo $block-&gt;renderView();&lt;br /&gt;You might think that we would be using the category view block for this task, but&lt;br /&gt;we’re not. The product list block is the component which does the actual printing of&lt;br /&gt;the products. The category view block does too much work preparing the rest of the&lt;br /&gt;page and is too integrated into Magento to cleanly use outside of Magento’s code.&lt;br /&gt;The reason that we make a core/template type block and call it “toolbar” is be-&lt;br /&gt;cause the template ﬁle for the product list wants to show the output from a block&lt;br /&gt;called toolbar. If we set the real toolbar (type catalog/product_list_toolbar) then&lt;br /&gt;we start unraveling a whole lot of Magento dependencies, as the toolbar requires a&lt;br /&gt;product collection. This is the simplest, quickest way to render a category of prod-&lt;br /&gt;ucts “outside” Magento.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;How do I use installation and upgrade ﬁles in my custom mod-&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ules?&lt;/span&gt;&lt;br /&gt;Magento     automatically installs or     upgrades any module that it en-&lt;br /&gt;counters    during runtime.         The   installation ﬁles are located under&lt;br /&gt;                           _setup/mysql4-install-X.Y.Z.php.       The trigger for&lt;br /&gt;YourModule/sql/yourmodule&lt;br /&gt;running this ﬁle is that your module’s version number is not present in the DB&lt;br /&gt;table core_resource and that you have deﬁned a version number in your module’s&lt;br /&gt;etc/config.xml ﬁle. You will also need to deﬁne a global resource for your module’s&lt;br /&gt;setup, use a tag name of &lt;yourmodule_setup&gt;. Without the resource deﬁnition that&lt;br /&gt;includes both setup module and a connection, the installation or upgrade will not&lt;br /&gt;perform, even if you increase the version number.&lt;br /&gt;   etc/config.xml contents...&lt;br /&gt;  &lt;br /&gt;   &lt;config&gt;&lt;br /&gt;     &lt;modules&gt;&lt;br /&gt;       &lt;company_yourmodule&gt;&lt;br /&gt;         &lt;version&gt;0.9.12&lt;/version&gt;&lt;br /&gt;&lt;br /&gt;       &lt;/company_yourmodule&gt;&lt;br /&gt;     &lt;/modules&gt;&lt;br /&gt;     &lt;global&gt;&lt;br /&gt;       &lt;resources&gt;&lt;br /&gt;          &lt;yourmodule_setup&gt;&lt;br /&gt;            &lt;setup&gt;&lt;br /&gt;              &lt;module&gt;Company_YourModule&lt;/module&gt;&lt;br /&gt;            &lt;/setup&gt;&lt;br /&gt;            &lt;connection&gt;&lt;br /&gt;              &lt;use&gt;core_setup&lt;/use&gt;&lt;br /&gt;            &lt;/connection&gt;&lt;br /&gt;          &lt;/yourmodule_setup&gt;&lt;br /&gt;       &lt;/resources&gt;&lt;br /&gt;     &lt;/global&gt;&lt;br /&gt;   &lt;/config&gt;&lt;br /&gt;Given that XML ﬁle, and an absence of any record containing company_yourmodule in&lt;br /&gt;table core_resource, your module’s install ﬁle will be run the next time that module&lt;br /&gt;is executed.&lt;br /&gt;  Once installed, upgrades can be triggered when you change the version number&lt;br /&gt;in the XML conﬁguration ﬁle to be greater than the value in core_resource. This will&lt;br /&gt;trigger a succession of any mysql4-upgrade-X.Y.Z.php ﬁle that has a version number&lt;br /&gt;greater than the number found in the core_resource table.&lt;br /&gt;  The syntax of these installation ﬁles looks like this:&lt;br /&gt;   $installer = $this;&lt;br /&gt;   /* @var $installer Mage_Catalog_Model_Resource_Eav_Mysql4_Setup */&lt;br /&gt;   $installer-&gt;startSetup();&lt;br /&gt;   $installer-&gt;run("&lt;br /&gt;   ALL YOUR SQL IN ONE STRING (the system breaks apart the SQL by semi-colon);&lt;br /&gt;   USE ’{$installer-&gt;getTable(’my_own_table’)}’ TO KEEP TABLE PREFIXES&lt;br /&gt;        CONSISTENT;&lt;br /&gt;   ");&lt;br /&gt;   $installer-&gt;endSetup();&lt;br /&gt;   /*&lt;br /&gt;   $installer-&gt;installEntities(); //only needed if you are installing&lt;br /&gt;           new entities and they are defined properly&lt;br /&gt;   */&lt;br /&gt;   //any other setup code such as inserting default data, caching data, etc.&lt;/yourmodule_setup&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-416311620491430063?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/416311620491430063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/04/magento-frequently-asked-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/416311620491430063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/416311620491430063'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/04/magento-frequently-asked-questions.html' title='Magento Frequently Asked Questions'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-3951128086837569739</id><published>2010-01-20T16:35:00.001+05:30</published><updated>2010-01-20T16:36:43.205+05:30</updated><title type='text'>Create user in mysql</title><content type='html'>CREATE USER 'remote'@'%' IDENTIFIED BY '******';&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;GRANT ALL PRIVILEGES ON * . * TO 'remote'@'%' IDENTIFIED BY '******' WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;GRANT ALL PRIVILEGES ON `remote\_%` . * TO 'remote'@'%';&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-3951128086837569739?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/3951128086837569739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/01/create-user-in-mysql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/3951128086837569739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/3951128086837569739'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/01/create-user-in-mysql.html' title='Create user in mysql'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-7895508710712803901</id><published>2010-01-14T16:53:00.003+05:30</published><updated>2010-01-14T16:56:23.823+05:30</updated><title type='text'>How to change in the toolbar of product list page in magento</title><content type='html'>&lt;p&gt; remove from bottom of  &lt;b&gt;app/design/frontend/default/default/template/catalog/product/list.phtml&lt;/b&gt; fallowing line:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt; &lt;/p&gt;&lt;div class="codeblock"&gt;&lt;code&gt; &lt;span style="color: rgb(0, 0, 187);"&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;echo &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$this&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;-&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;getToolbarHtml&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;() &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;/code&gt;&lt;/div&gt;  &lt;p&gt; then replace by&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt; &lt;/p&gt;&lt;div class="codeblock"&gt;&lt;code&gt; &lt;span style="color: rgb(0, 0, 187);"&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;echo &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$this&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;-&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;getToolbarBlock&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;()-&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;setTemplate&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'catalog/product/list/toolbar.phtml'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;)-&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;toHtml&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(); &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;/code&gt;&lt;/div&gt;  &lt;p&gt; Feel free to change ‘catalog/product/list/toolbar.phtml’ to you toolbar html. You can create catalog/product/list/toolbar_bottom.phtml then code will looks like:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt; &lt;/p&gt;&lt;div class="codeblock"&gt;&lt;code&gt; &lt;span style="color: rgb(0, 0, 187);"&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;echo &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$this&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;-&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;getToolbarBlock&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;()-&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;setTemplate&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'catalog/product/list/toolbar_bottom.phtml'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;)-&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;toHtml&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(); &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-7895508710712803901?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/7895508710712803901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/01/how-to-change-in-toolbar-of-product.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/7895508710712803901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/7895508710712803901'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2010/01/how-to-change-in-toolbar-of-product.html' title='How to change in the toolbar of product list page in magento'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-8736003230622440010</id><published>2009-12-30T00:37:00.001+05:30</published><updated>2009-12-30T00:38:48.646+05:30</updated><title type='text'>Fun</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_sV7kXT85OB8/SzpTrR60BII/AAAAAAAAAPc/cBpouV_XFT4/s1600-h/6.jpg"&gt;&lt;img style="cursor: pointer; width: 400px; height: 250px;" src="http://2.bp.blogspot.com/_sV7kXT85OB8/SzpTrR60BII/AAAAAAAAAPc/cBpouV_XFT4/s400/6.jpg" alt="" id="BLOGGER_PHOTO_ID_5420737104503374978" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-8736003230622440010?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/8736003230622440010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/12/fun.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/8736003230622440010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/8736003230622440010'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/12/fun.html' title='Fun'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_sV7kXT85OB8/SzpTrR60BII/AAAAAAAAAPc/cBpouV_XFT4/s72-c/6.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-6223508425251293320</id><published>2009-12-24T18:15:00.001+05:30</published><updated>2009-12-24T18:15:36.174+05:30</updated><title type='text'>OnePage Checkout</title><content type='html'>http://inchoo.net/ecommerce/magento/adding-a-new-tab-under-one-page-checkout-full-working-module/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-6223508425251293320?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/6223508425251293320/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/12/onepage-checkout.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/6223508425251293320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/6223508425251293320'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/12/onepage-checkout.html' title='OnePage Checkout'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-2443789491036766947</id><published>2009-12-24T11:21:00.001+05:30</published><updated>2009-12-24T11:23:35.316+05:30</updated><title type='text'>The EAV Model of Data Representation</title><content type='html'>&lt;h2&gt;&lt;a name="Definition"&gt;&lt;strong&gt;Definition&lt;/strong&gt;&lt;/a&gt;&lt;/h2&gt;  &lt;p&gt;&lt;strong style="font-weight: bold;"&gt;EAV = Entity-Attribute-Value.     EAV/CR = EAV with Classes and Relationships&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Conceptually, a table with three columns: &lt;/p&gt;  &lt;ul&gt;&lt;li&gt;Entity/Object ID&lt;/li&gt;&lt;li&gt;Attribute/Parameter &lt;/li&gt;&lt;li&gt;the Value for the attribute. &lt;/li&gt;&lt;/ul&gt;  &lt;p&gt;The table has one row for each Entity-Attribute-Value triple.&lt;/p&gt;  &lt;p&gt;In reality, we prefer to segregate values based on data type, so as   to support indexing and let the database perform type validation checks   where possible. So there are separate EAV tables for strings, real and   integer numbers, dates, long text and Binary large objects (BLOBS).&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2&gt;&lt;a name="Benefits"&gt;&lt;strong&gt;Benefits&lt;/strong&gt;&lt;/a&gt; &lt;/h2&gt;  &lt;ul&gt;&lt;li&gt;&lt;u style="text-decoration: underline;"&gt;Flexibility&lt;/u&gt;.   There are no arbitrary limits on the number of attributes per entity.   The number of parameters can grow as the database evolves, without schema   redesign. (Important in the EPRS)&lt;/li&gt;&lt;li&gt;&lt;u style="text-decoration: underline;"&gt;Space-efficient   storage for highly sparse data&lt;/u&gt;: One need not reserve space for attributes   whose values are null. &lt;/li&gt;&lt;li&gt;&lt;u style="text-decoration: underline;"&gt;A   simple physical data format with partially self-describing data&lt;/u&gt;. Maps   naturally to interchange formats like XML (the attribute name is replaced   with start-attribute and end-attribute tags.)&lt;/li&gt;&lt;li&gt;For databases holding data describing rapidly evolving   scientific domains, insulation against consequences of change and    &lt;u&gt;potential domain independence&lt;/u&gt; .&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h2&gt;&lt;strong style="font-weight: bold;"&gt;&lt;a name="Physical vs. Logical Schema"&gt;Physical   vs. Logical Schema&lt;/a&gt;&lt;/strong&gt; &lt;/h2&gt;  &lt;ul&gt;&lt;li&gt;EAV is primarily a means of simplifying the &lt;u&gt;physical   schema&lt;/u&gt; of a database.&lt;/li&gt;&lt;li&gt;Users of the system (as well as analytical programs)   expect the data to be conventionally structured. The &lt;u&gt;logical schema&lt;/u&gt;   of a database (which is domain-specific) reflects the users' perception   of the data. &lt;/li&gt;&lt;li&gt;In an EAV database, the logical schema differs greatly   from the physical schema. In a conventional database,  the two do   not differ appreciably.&lt;/li&gt;&lt;li&gt;The user interface of a good EAV system conforms   to the logical schema as much as possible, creating the illusion of conventional   data organization.&lt;/li&gt;&lt;li&gt;An EAV system must record the logical schema through   &lt;u&gt;metadata&lt;/u&gt;. &lt;/li&gt;&lt;li&gt;If sufficiently rich, metadata can also be used actively   (i.e., during actual system operation), instead of only describing the   system passively. &lt;/li&gt;&lt;/ul&gt;  &lt;h2 style="text-align: left;" align="left"&gt;&lt;a name="EAV/CR Overview"&gt;&lt;strong&gt;EAV/CR Overview&lt;/strong&gt;&lt;/a&gt;&lt;/h2&gt;  &lt;p&gt;EAV/CR overlays an object-oriented framework on top of an EAV physical   structure. &lt;/p&gt;      &lt;ul&gt;&lt;li&gt;A "class" and "object" in EAV/CR   are similar their OOP counterparts. &lt;/li&gt;&lt;li&gt;EAV/CR allows modeling of &lt;u&gt;inter-class relationships&lt;/u&gt;.    &lt;/li&gt;&lt;li&gt;EAV/CR allows&lt;u&gt; classes to contain other classes   as members&lt;/u&gt;. For this purpose, EAV/CR supports &lt;u&gt;class instances (Object   IDs) as values&lt;/u&gt;. &lt;/li&gt;&lt;li&gt;EAV/CR permits &lt;u&gt;inheritance&lt;/u&gt; of properties (attributes)   between classes.&lt;/li&gt;&lt;li&gt;Allows representation of &lt;u&gt;non-first-normal-form&lt;/u&gt;   (NF2) data.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;p&gt;&lt;a name="Relationship Details as Inverted-File Indexes"&gt;&lt;u&gt;&lt;strong&gt;Relationship   Details as Inverted-File Indexes&lt;/strong&gt;&lt;/u&gt;&lt;/a&gt; &lt;/p&gt;  &lt;ul&gt;&lt;li&gt;Knowledge of the object involved in a relationship   does not describe the relationship itself, because the objects can interact   in various ways.&lt;/li&gt;&lt;li&gt;Therefore the description of a fact in a relationship   is sometimes best served by narrative text.&lt;/li&gt;&lt;li&gt;The objects allow the fact to be indexed. (This way,   facts related to a particular object can be rapidly retrieved.) The set   of objects that index particular facts serve the same role as the Inverted   Files used in Text Information Retrieval, with the difference that the   objects are strongly typed because they belong to specific classes.&lt;/li&gt;&lt;/ul&gt;  &lt;p&gt;&lt;a name="Drawbacks of EAV/CR"&gt;&lt;u&gt;&lt;strong&gt;Drawbacks of EAV/CR &lt;/strong&gt;&lt;/u&gt;&lt;/a&gt;&lt;/p&gt;  &lt;ul&gt;&lt;li&gt;Considerable up-front programming (wheel reinvention)   is needed to do the tasks that a conventional architecture would do automatically.   However, such programming needs to be done only once, and availability   of generic EAV tools could remove this limitation.&lt;/li&gt;&lt;li&gt;EAV design is less efficient than a conventional   structure for retrieving data in bulk on numerous objects at a time. (For   object-at-a-time retrieval, such as through a Web-based browsing interface,   the volume of data is small enough that the difference is not noticeable.)   &lt;/li&gt;&lt;li&gt;Performing complex attribute-centric queries is both   significantly less efficient as well as technically more difficult. This   needs a query generator. However, most queries on scientific databases   are relatively straightforward, and directed toward specific objects of   interest. &lt;/li&gt;&lt;li&gt;For schemas that are relatively static and/or simple   (e.g., databases for business applications, such as inventory or accounting),   the overhead of EAV design exceeds its advantages.  So don't blindly represent all          data in EAV form: use  conventional tables where the objects are numerous          and non-sparse. &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-2443789491036766947?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/2443789491036766947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/12/eav-model-of-data-representation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/2443789491036766947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/2443789491036766947'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/12/eav-model-of-data-representation.html' title='The EAV Model of Data Representation'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-1639066641655916656</id><published>2009-12-11T10:46:00.001+05:30</published><updated>2009-12-11T10:47:47.081+05:30</updated><title type='text'>Why did you break my heart?</title><content type='html'>&lt;object height="344" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/pAW_EIF2sGw&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/pAW_EIF2sGw&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="344" width="425"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-1639066641655916656?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/1639066641655916656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/12/why-did-you-break-my-hear.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/1639066641655916656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/1639066641655916656'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/12/why-did-you-break-my-hear.html' title='Why did you break my heart?'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-2416457812611992376</id><published>2009-11-20T11:22:00.000+05:30</published><updated>2009-11-20T11:23:18.141+05:30</updated><title type='text'>Magento Video</title><content type='html'>Nice Magento Video&lt;br /&gt;&lt;br /&gt;&lt;a href="http://http//net.tutsplus.com/videos/screencasts/easy-e-commerce-with-magento/"&gt;http://net.tutsplus.com/videos/screencasts/easy-e-commerce-with-magento/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-2416457812611992376?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/2416457812611992376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/11/magento-video.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/2416457812611992376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/2416457812611992376'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/11/magento-video.html' title='Magento Video'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-9084765476099829157</id><published>2009-09-26T09:17:00.002+05:30</published><updated>2009-09-26T09:18:18.380+05:30</updated><title type='text'>News letter in Magento</title><content type='html'>See the link&lt;br /&gt;&lt;br /&gt;http://www.magentocommerce.com/boards/viewthread/25371/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-9084765476099829157?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/9084765476099829157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/09/news-letter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/9084765476099829157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/9084765476099829157'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/09/news-letter.html' title='News letter in Magento'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-5666862605540761739</id><published>2009-09-24T13:38:00.002+05:30</published><updated>2009-09-24T19:40:47.465+05:30</updated><title type='text'>Featured Products in magento</title><content type='html'>nice description to display featured products :&lt;br /&gt;&lt;br /&gt;http://inchoo.net/ecommerce/magento/featured-products-on-magento-frontpage/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://petscriptdirect.pbodev.info&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-5666862605540761739?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/5666862605540761739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/09/featured-products-in-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/5666862605540761739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/5666862605540761739'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/09/featured-products-in-magento.html' title='Featured Products in magento'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-8577481532839827321</id><published>2009-09-24T11:21:00.001+05:30</published><updated>2009-09-24T11:22:21.767+05:30</updated><title type='text'>Linux Commands</title><content type='html'>To connect SSH :&lt;br /&gt;&lt;br /&gt;ssh  pbodev.info -l ritesh&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To Syncronize files and folders :&lt;br /&gt;&lt;br /&gt;rsync -avz -e ssh   /var/www/html  ritesh@pbodev.info:/home/ritesh/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-8577481532839827321?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/8577481532839827321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/09/linux-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/8577481532839827321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/8577481532839827321'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/09/linux-commands.html' title='Linux Commands'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-5014623569036414901</id><published>2009-09-23T10:48:00.000+05:30</published><updated>2009-09-23T10:49:05.220+05:30</updated><title type='text'>Gmail Like chat</title><content type='html'>link : http://anantgarg.com/2009/05/13/gmail-facebook-style-jquery-chat/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;very nice chat module&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-5014623569036414901?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/5014623569036414901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/09/gmail-like-chat.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/5014623569036414901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/5014623569036414901'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/09/gmail-like-chat.html' title='Gmail Like chat'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-2586044583014194170</id><published>2009-09-17T10:58:00.000+05:30</published><updated>2009-09-17T10:59:23.917+05:30</updated><title type='text'>Magento Basics -Block</title><content type='html'>Refer :&lt;br /&gt;&lt;a href="http://www.exploremagento.com/magento/whats-in-a-block.php"&gt;http://www.exploremagento.com/magento/whats-in-a-block.php&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-2586044583014194170?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/2586044583014194170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/09/magento-basics-block.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/2586044583014194170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/2586044583014194170'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/09/magento-basics-block.html' title='Magento Basics -Block'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-7145795158140654177</id><published>2009-09-17T10:56:00.000+05:30</published><updated>2009-09-17T10:57:01.864+05:30</updated><title type='text'>Magento Desing Guide</title><content type='html'>go to this link : &lt;a href="http://www.mikesmullin.com/development/learning-to-design-and-code-for-magento-themes/"&gt;http://www.mikesmullin.com/development/learning-to-design-and-code-for-magento-themes/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-7145795158140654177?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.mikesmullin.com/development/learning-to-design-and-code-for-magento-themes/' title='Magento Desing Guide'/><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/7145795158140654177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/09/magento-desing-guide.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/7145795158140654177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/7145795158140654177'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/09/magento-desing-guide.html' title='Magento Desing Guide'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-1817821877999790813</id><published>2009-09-15T19:44:00.001+05:30</published><updated>2009-09-15T19:45:59.183+05:30</updated><title type='text'>Custom Module with Custom Database Table</title><content type='html'>&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="wiki-header"&gt;&lt;h2&gt;&lt;a name="module_creator" id="module_creator"&gt;Module Creator&lt;/a&gt;&lt;/h2&gt;&lt;/td&gt;&lt;td width="50"&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;http://www.magentocommerce.com/wiki/custom_module_with_custom_database_table&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-1817821877999790813?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.magentocommerce.com/wiki/custom_module_with_custom_database_table' title='Custom Module with Custom Database Table'/><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/1817821877999790813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/09/custom-module-with-custom-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/1817821877999790813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/1817821877999790813'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/09/custom-module-with-custom-database.html' title='Custom Module with Custom Database Table'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-3024485319873733161</id><published>2009-09-11T10:09:00.002+05:30</published><updated>2009-09-11T10:13:23.557+05:30</updated><title type='text'>Magento not working on PHP 5.3</title><content type='html'>&lt;h1&gt;Magento not working on PHP 5.3&lt;/h1&gt;&lt;br /&gt;&lt;div class="snap_preview"&gt;&lt;p&gt;For those who have noticed this error&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;Fatal error: Method Varien_Object::__tostring() cannot take arguments in /magento/lib/Varien/Object.php&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;when trying to install Magento on PHP 5.3, do not fear, here is the fix:&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;File: /lib/Varien/Object.php (Line 484)&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Change from&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;public function ___toString(array $arrAttributes = array(), $valueSeparator=’,')&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;To this&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;public function __invoke(array $arrAttributes = array(), $valueSeparator=’,')&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;File /app/code/core/Mage/Core/Controller/Request/Http.php (Line 274)&lt;/em&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Change from&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;$host = split(’:', $_SERVER['HTTP_HOST']);&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;To this&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;div&gt;$host = explode(’:', $_SERVER['HTTP_HOST']);&lt;/div&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-3024485319873733161?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/3024485319873733161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/09/magento-not-working-on-php-53.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/3024485319873733161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/3024485319873733161'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/09/magento-not-working-on-php-53.html' title='Magento not working on PHP 5.3'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-6592500101916789883</id><published>2009-08-02T12:35:00.002+05:30</published><updated>2009-08-02T12:38:52.578+05:30</updated><title type='text'>Regulare Expression to replace text in Javascript</title><content type='html'>function myreplace()&lt;br /&gt;{&lt;br /&gt;if (!document.body typeof(document.body.innerHTML) == "undefined")&lt;br /&gt;{&lt;br /&gt;if (warnOnFailure)&lt;br /&gt;{&lt;br /&gt;alert("Sorry, for some reason the text of this page is unavailable. Searching will not work.");&lt;br /&gt;}&lt;br /&gt;return false;&lt;br /&gt;}&lt;br /&gt;var bodyText = document.body.innerHTML; //bodyText="123"; var&lt;br /&gt;bodyText=bodyText.replace(/\d{3}-\d{3}-\d{3}/gi, "123-456-786");&lt;br /&gt;bodyText=bodyText.replace(/\d{3}\.\d{3}\.\d{3}/gi, "123.456.787");&lt;br /&gt;//alert(news);&lt;br /&gt;document.body.innerHTML = bodyText;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-6592500101916789883?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/6592500101916789883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/08/regulare-expression-to-replace-text.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/6592500101916789883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/6592500101916789883'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/08/regulare-expression-to-replace-text.html' title='Regulare Expression to replace text in Javascript'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-3300806451776778326</id><published>2009-07-09T14:39:00.000+05:30</published><updated>2009-07-09T14:40:09.177+05:30</updated><title type='text'>IMPORTANT TIPS MAGENTO</title><content type='html'>http://www.magentocommerce.com/boards/viewthread/29535/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-3300806451776778326?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.magentocommerce.com/boards/viewthread/29535/' title='IMPORTANT TIPS MAGENTO'/><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/3300806451776778326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/07/important-tips-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/3300806451776778326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/3300806451776778326'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/07/important-tips-magento.html' title='IMPORTANT TIPS MAGENTO'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-9156593920124528492</id><published>2009-07-09T01:29:00.001+05:30</published><updated>2009-07-09T01:31:18.044+05:30</updated><title type='text'>Magento Tips</title><content type='html'>To create new reports in the reports section of admin panel we need to change the following files  :&lt;br /&gt;&lt;br /&gt;&lt;p&gt; &lt;b&gt;app/code/core/Mage/Adminhtml/Block/Report/Product/Lowstock.php&lt;/b&gt;&lt;br /&gt;&lt;b&gt;app/code/core/Mage/Adminhtml/Block/Report/Product/Lowstock/Grid.php&lt;/b&gt;&lt;br /&gt;&lt;b&gt;app/code/core/Mage/Reports/Model/Product/Collection.php&lt;/b&gt;&lt;br /&gt;&lt;b&gt;app/code/core/Reports/etc/config.xml&lt;/b&gt; &lt;- line 171-415 (menu / user permissions (acl tag))&lt;br /&gt;&lt;b&gt;app/design/adminhtml/default/default/template/report/grid.phtml&lt;/b&gt;&lt;br /&gt;&lt;b&gt;app/design/adminhtml/default/default/template/report/store/switcher.phtml&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;for more details please visit : http://www.magentocommerce.com/boards/viewthread/27928/&lt;br /&gt;&lt;/b&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-9156593920124528492?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.magentocommerce.com/boards/viewthread/27928/' title='Magento Tips'/><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/9156593920124528492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/07/magento-tips.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/9156593920124528492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/9156593920124528492'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/07/magento-tips.html' title='Magento Tips'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-3754466168792552896</id><published>2009-07-01T12:54:00.000+05:30</published><updated>2009-07-01T12:55:58.922+05:30</updated><title type='text'>database backup</title><content type='html'>$command_exe = "mysqldump -u" . $db_user . " -p" . $pass. " --add-drop-table -c " . $database_name. " &gt; " . getcwd() . "/path_to_database_dump/db_back.sql";&lt;br /&gt;   exec($command_exe);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-3754466168792552896?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/3754466168792552896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/07/database-backup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/3754466168792552896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/3754466168792552896'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/07/database-backup.html' title='database backup'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-6334273450494417849</id><published>2009-06-29T10:59:00.000+05:30</published><updated>2009-06-29T11:00:07.289+05:30</updated><title type='text'>Joomla templates</title><content type='html'>&lt;a href="http://joomlatp.com/Start-download/joomla-1.5-template/brown.html"&gt;http://joomlatp.com/Start-download/joomla-1.5-template/brown.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-6334273450494417849?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://joomlatp.com/Start-download/joomla-1.5-template/brown.html' title='Joomla templates'/><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/6334273450494417849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/06/joomla-templates.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/6334273450494417849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/6334273450494417849'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/06/joomla-templates.html' title='Joomla templates'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-1234191521925015870</id><published>2009-06-24T10:05:00.001+05:30</published><updated>2009-06-24T10:05:45.132+05:30</updated><title type='text'>Family relationship diagram</title><content type='html'>&lt;a href="http://freepages.genealogy.rootsweb.ancestry.com/~gentutor/chart.html"&gt;http://freepages.genealogy.rootsweb.ancestry.com/~gentutor/chart.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-1234191521925015870?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/1234191521925015870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/06/family-relationship-diagram.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/1234191521925015870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/1234191521925015870'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/06/family-relationship-diagram.html' title='Family relationship diagram'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-1969974773148351901</id><published>2009-06-20T11:29:00.002+05:30</published><updated>2009-06-20T11:30:05.259+05:30</updated><title type='text'>Joomla Template Links</title><content type='html'>&lt;a href="http://www.joomla24.com/remository/finishdown/3512.html"&gt;http://www.joomla24.com/remository/finishdown/3512.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-1969974773148351901?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/1969974773148351901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/06/joomla-template-links.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/1969974773148351901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/1969974773148351901'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/06/joomla-template-links.html' title='Joomla Template Links'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-5837249018084634141</id><published>2009-06-19T17:24:00.003+05:30</published><updated>2009-06-19T17:25:55.059+05:30</updated><title type='text'>Test php mail function on your localhost</title><content type='html'>&lt;a href="http://www.phpeasystep.com/phptu/23.html"&gt;http://www.phpeasystep.com/phptu/23.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://roshanbh.com.np/2007/12/sending-e-mail-from-localhost-in-php-in-windows-environment.html"&gt;http://roshanbh.com.np/2007/12/sending-e-mail-from-localhost-in-php-in-windows-environment.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-5837249018084634141?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/5837249018084634141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/06/test-php-mail-function-on-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/5837249018084634141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/5837249018084634141'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/06/test-php-mail-function-on-your.html' title='Test php mail function on your localhost'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-4723164394097645325</id><published>2009-06-15T15:27:00.001+05:30</published><updated>2009-06-15T15:29:45.156+05:30</updated><title type='text'>download xls</title><content type='html'>&lt;p&gt;header('Expires: 0');&lt;br /&gt;&lt;/p&gt;&lt;p&gt;header('Cache-Control: must-revalidate, post-check=0, pre-check=0');&lt;/p&gt;&lt;p&gt;header('Pragma: public');header("Content-type: application/octet-stream");&lt;/p&gt;&lt;p&gt;header('Content-Disposition: attachment; filename=QueryReport.xls');&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-4723164394097645325?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/4723164394097645325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/06/download-xls.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/4723164394097645325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/4723164394097645325'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/06/download-xls.html' title='download xls'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-8079422957874353588</id><published>2009-05-26T11:25:00.004+05:30</published><updated>2009-05-26T11:31:52.295+05:30</updated><title type='text'>download pdf</title><content type='html'>//------------- download pdf file ---------&lt;br /&gt;// save this content to download.php and run ------------&lt;br /&gt;&lt;br /&gt;$location = "http://www.abc.com/docs/test.pdf";&lt;br /&gt;header("Content-type: application/pdf");&lt;br /&gt;header("Content-Disposition: attachment; filename="।$location);readfile($location);&lt;br /&gt;exit;&lt;br /&gt;&lt;br /&gt;// --- created by ritesh ----------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-8079422957874353588?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/8079422957874353588/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/05/download-pdf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/8079422957874353588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/8079422957874353588'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2009/05/download-pdf.html' title='download pdf'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-4205243456261103103</id><published>2008-08-01T10:08:00.003+05:30</published><updated>2008-08-05T18:08:15.447+05:30</updated><title type='text'>Welcome</title><content type='html'>&lt;span style="font-size:180%;"&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;मेरा&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt; &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;नाम&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt; &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;रितेश&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt; &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;&lt;span&gt;है।&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;मेरे&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt; &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;ब्लॉग&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt; &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;में&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt; &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;आपका&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt; &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;स्वागत&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt; &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;&lt;span&gt;है।&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-4205243456261103103?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/4205243456261103103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2008/07/gxvxv.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/4205243456261103103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/4205243456261103103'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2008/07/gxvxv.html' title='Welcome'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3012651359853809302.post-4456545790651965145</id><published>2008-08-01T09:37:00.000+05:30</published><updated>2008-08-01T09:39:27.699+05:30</updated><title type='text'>Word Limit Code</title><content type='html'>&lt;?&lt;br /&gt;$strScentence="My Name is Ritesh  Kumar    Sahu";&lt;br /&gt;$limit=4; // number or words&lt;br /&gt;&lt;br /&gt;$strLimit=limitScentence($strScentence,$limit);&lt;br /&gt;echo $strLimit;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/*------------ function to limit the scentence -------------*/&lt;br /&gt;function limitScentence($strScentence,$limit)&lt;br /&gt;{&lt;br /&gt;   &lt;br /&gt;    $arrWords=preg_split("/\s+/", $strScentence);&lt;br /&gt;    if(count($arrWords)&lt;$limit)&lt;br /&gt;    {&lt;br /&gt;        return $strScentence;&lt;br /&gt;    }&lt;br /&gt;    $strLimitScentence="";&lt;br /&gt;    for($i=0;$i&lt;$limit;$i++)&lt;br /&gt;    {&lt;br /&gt;        $strLimitScentence.=$arrWords[$i]." ";&lt;br /&gt;    }&lt;br /&gt;    $strLimitScentence=substr($strLimitScentence,0,strlen($strLimitScentence)-1);&lt;br /&gt;    return $strLimitScentence;&lt;br /&gt;}&lt;br /&gt;/*------------- Created By Ritesh Kumar Sahu-------------*/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3012651359853809302-4456545790651965145?l=riteshkumarsahu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riteshkumarsahu.blogspot.com/feeds/4456545790651965145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riteshkumarsahu.blogspot.com/2008/07/word-limit-code.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/4456545790651965145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3012651359853809302/posts/default/4456545790651965145'/><link rel='alternate' type='text/html' href='http://riteshkumarsahu.blogspot.com/2008/07/word-limit-code.html' title='Word Limit Code'/><author><name>Ritesh K S</name><uri>http://www.blogger.com/profile/05753193159927661181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_sV7kXT85OB8/SYgZwuOr48I/AAAAAAAAAG4/Bs5EHf1BF2s/S220/ritesh.JPG'/></author><thr:total>5</thr:total></entry></feed>
