<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Indianic Orange</title>
	<atom:link href="http://indianicorange.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://indianicorange.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 25 Jan 2012 11:08:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='indianicorange.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Indianic Orange</title>
		<link>http://indianicorange.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://indianicorange.wordpress.com/osd.xml" title="Indianic Orange" />
	<atom:link rel='hub' href='http://indianicorange.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to add different toolbar template for bottom toolbar in listing page?</title>
		<link>http://indianicorange.wordpress.com/2012/01/03/how-to-add-different-toolbar-template-for-bottom-toolbar-in-listing-page/</link>
		<comments>http://indianicorange.wordpress.com/2012/01/03/how-to-add-different-toolbar-template-for-bottom-toolbar-in-listing-page/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 04:37:57 +0000</pubDate>
		<dc:creator>Indianic Orange</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Version 1.3.*]]></category>
		<category><![CDATA[Version 1.4.*]]></category>
		<category><![CDATA[Version 1.6.*]]></category>

		<guid isPermaLink="false">http://indianicorange.wordpress.com/?p=368</guid>
		<description><![CDATA[Hello Everyone, &#60;?php $this-&#62;getToolbarBlock()-&#62; setTemplate('catalog/product/list/toolbar_bottom.phtml')-&#62;toHtml(); ?&#62; The above code will display bottom toolbar from toolbar_bottom.phtml file. Thanks, Bijal Bhavsar Filed under: Magento, Version 1.3.*, Version 1.4.*, Version 1.6.*<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=368&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello Everyone,</p>
<p><code> &lt;?php $this-&gt;getToolbarBlock()-&gt; setTemplate('catalog/product/list/toolbar_bottom.phtml')-&gt;toHtml(); ?&gt;<br />
</code></p>
<p>The above code will display bottom toolbar from toolbar_bottom.phtml file.</p>
<p>Thanks,<br />
Bijal Bhavsar <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />Filed under: <a href='http://indianicorange.wordpress.com/category/magento/'>Magento</a>, <a href='http://indianicorange.wordpress.com/category/magento/version-1-3/'>Version 1.3.*</a>, <a href='http://indianicorange.wordpress.com/category/magento/version-1-4/'>Version 1.4.*</a>, <a href='http://indianicorange.wordpress.com/category/magento/version-1-6/'>Version 1.6.*</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indianicorange.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indianicorange.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/indianicorange.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/indianicorange.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/indianicorange.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/indianicorange.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/indianicorange.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/indianicorange.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/indianicorange.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/indianicorange.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/indianicorange.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/indianicorange.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/indianicorange.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/indianicorange.wordpress.com/368/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=368&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indianicorange.wordpress.com/2012/01/03/how-to-add-different-toolbar-template-for-bottom-toolbar-in-listing-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/02149dbd4e694f844c16cc65b418adb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Indianic Orange</media:title>
		</media:content>
	</item>
		<item>
		<title>Product Export errors out Product.php on line 657</title>
		<link>http://indianicorange.wordpress.com/2011/11/04/product-export-errors-out-product-php-on-line-657/</link>
		<comments>http://indianicorange.wordpress.com/2011/11/04/product-export-errors-out-product-php-on-line-657/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 05:30:54 +0000</pubDate>
		<dc:creator>Indianic Orange</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Fatal error: Unsupported operand types]]></category>

		<guid isPermaLink="false">http://indianicorange.wordpress.com/?p=360</guid>
		<description><![CDATA[Fatal error: Unsupported operand types in /public_html/app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php on line 657 Goto app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php Find, $dataRow += $stockItemRows[$productId]; Replace with, $dataRow = array_merge($dataRow,$stockItemRows[$productId]); Hope this helps anyone… vishal surani Filed under: Magento Tagged: Fatal error: Unsupported operand types<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=360&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Fatal error: Unsupported operand types in /public_html/app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php on line 657</p>
<p>Goto app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php</p>
<p>Find,<br />
$dataRow += $stockItemRows[$productId];</p>
<p>Replace with,<br />
$dataRow = array_merge($dataRow,$stockItemRows[$productId]);</p>
<p>Hope this helps anyone…</p>
<p>vishal surani</p>
<br />Filed under: <a href='http://indianicorange.wordpress.com/category/magento/'>Magento</a> Tagged: <a href='http://indianicorange.wordpress.com/tag/fatal-error-unsupported-operand-types/'>Fatal error: Unsupported operand types</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indianicorange.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indianicorange.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/indianicorange.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/indianicorange.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/indianicorange.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/indianicorange.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/indianicorange.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/indianicorange.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/indianicorange.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/indianicorange.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/indianicorange.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/indianicorange.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/indianicorange.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/indianicorange.wordpress.com/360/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=360&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indianicorange.wordpress.com/2011/11/04/product-export-errors-out-product-php-on-line-657/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/02149dbd4e694f844c16cc65b418adb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Indianic Orange</media:title>
		</media:content>
	</item>
		<item>
		<title>Table rates shipping Method not working after migration to magento v1.6</title>
		<link>http://indianicorange.wordpress.com/2011/10/15/table-rates-shipping-method-not-working-after-migration-to-magento-v1-6/</link>
		<comments>http://indianicorange.wordpress.com/2011/10/15/table-rates-shipping-method-not-working-after-migration-to-magento-v1-6/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 08:48:10 +0000</pubDate>
		<dc:creator>Indianic Orange</dc:creator>
				<category><![CDATA[Version 1.6.*]]></category>

		<guid isPermaLink="false">http://indianicorange.wordpress.com/?p=358</guid>
		<description><![CDATA[Hello Table rates shipping method is not working properly in magento 1.6 or after migration to magento v1.6. To resolve this follow below points: 1)Open file Mage/Shipping/Model/Resources/Carrier/Tablerate.php and copy it in app/code/local folder 2)Find getRate() function and replace given code in that function: public function getRate(Mage_Shipping_Model_Rate_Request $request) { $adapter = $this-&#62;_getReadAdapter(); $bind = array( &#8216;website_id&#8217; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=358&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello</p>
<p>Table rates shipping method is not working properly in magento 1.6 or after migration to magento v1.6. </p>
<p>To resolve this follow below points:</p>
<p>1)Open file Mage/Shipping/Model/Resources/Carrier/Tablerate.php and copy it in app/code/local folder<br />
2)Find getRate() function and replace given code in that function:</p>
<p>public function getRate(Mage_Shipping_Model_Rate_Request $request)<br />
    {<br />
        $adapter = $this-&gt;_getReadAdapter();<br />
        $bind    = array(<br />
            &#8216;website_id&#8217;   =&gt; (int)$request-&gt;getWebsiteId(),<br />
            &#8216;country_id&#8217;   =&gt; $request-&gt;getDestCountryId(),<br />
            &#8216;region_id&#8217;    =&gt; (int)$request-&gt;getDestRegionId(),<br />
            &#8216;postcode&#8217;     =&gt; $request-&gt;getDestPostcode()<br />
        );</p>
<p>        $select  = $adapter-&gt;select()<br />
            -&gt;from($this-&gt;getMainTable())<br />
            -&gt;where(&#8216;website_id = &#8216;.$bind['website_id'])<br />
            -&gt;order(array(&#8216;dest_country_id DESC&#8217;, &#8216;dest_region_id DESC&#8217;, &#8216;dest_zip DESC&#8217;,'condition_value DESC&#8217;))<br />
            -&gt;limit(1);</p>
<p>        // render destination condition<br />
        $orWhere = &#8216;(&#8216; . implode(&#8216;) OR (&#8216;, array(<br />
            &#8220;dest_country_id = &#8216;&#8221;.$bind['country_id'].&#8221;&#8216; AND dest_region_id = &#8216;&#8221;.$bind['region_id'].&#8221;&#8216; AND dest_zip = &#8220;.$bind['postcode'],<br />
            &#8220;dest_country_id = &#8216;&#8221;.$bind['country_id'].&#8221;&#8216; AND dest_region_id = &#8216;&#8221;.$bind['region_id'].&#8221;&#8216; AND dest_zip = &#8221;&#8221;,<br />
            &#8220;dest_country_id = &#8216;&#8221;.$bind['country_id'].&#8221;&#8216; AND dest_region_id = &#8216;&#8221;.$bind['region_id'].&#8221;&#8216; AND dest_zip = &#8217;0&#8242;&#8221;,<br />
            &#8220;dest_country_id =  &#8216;&#8221;.$bind['country_id'].&#8221;&#8216; AND dest_region_id = &#8216;&#8221;.$bind['region_id'].&#8221;&#8216; AND dest_zip = &#8216;*&#8217;&#8221;,<br />
            //&#8221;dest_country_id = &#8217;0&#8242; AND dest_region_id = 0 AND dest_zip = &#8216;*&#8217;&#8221;,<br />
        )) . &#8216;)&#8217;;<br />
        $select-&gt;where($orWhere);</p>
<p>        // render condition by condition name<br />
        if (is_array($request-&gt;getConditionName())) {<br />
            $orWhere = array();<br />
            $i       = 0;</p>
<p>            foreach ($request-&gt;getConditionName() as $conditionName) {</p>
<p>                $bindNameKey  = sprintf(&#8216;:condition_name_%d&#8217;, $i);<br />
                $bindValueKey = sprintf(&#8216;:condition_value_%d&#8217;, $i);<br />
                $orWhere[] = &#8220;(condition_name = {$bindNameKey} AND condition_value getData($conditionName);<br />
                $i++;<br />
            }</p>
<p>            if ($orWhere) {<br />
                $select-&gt;where(implode(&#8216; OR &#8216;, $orWhere));<br />
            }<br />
        } else {</p>
<p>            $bind['condition_name']  = $request-&gt;getConditionName();<br />
            $bind['condition_value'] = $request-&gt;getData($request-&gt;getConditionName());</p>
<p>            $select-&gt;where(&#8216;condition_name = &#8220;&#8216;.$bind['condition_name'].&#8217;&#8221;&#8216;);<br />
            $select-&gt;where(&#8216;condition_value fetchRow($select, $bind);<br />
        // normalize destination zip code<br />
        if ($result &amp;&amp; $result['dest_zip'] == &#8216;*&#8217;) {<br />
            $result['dest_zip'] = &#8221;;<br />
        }<br />
        return $result;<br />
    }</p>
<p>This works for me like a charm. Hope it works for you also.</p>
<p>If it helps you don&#8217;t forget to comment me.</p>
<p>Regards,<br />
Meghna Vora</p>
<br />Filed under: <a href='http://indianicorange.wordpress.com/category/magento/version-1-6/'>Version 1.6.*</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indianicorange.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indianicorange.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/indianicorange.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/indianicorange.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/indianicorange.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/indianicorange.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/indianicorange.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/indianicorange.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/indianicorange.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/indianicorange.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/indianicorange.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/indianicorange.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/indianicorange.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/indianicorange.wordpress.com/358/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=358&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indianicorange.wordpress.com/2011/10/15/table-rates-shipping-method-not-working-after-migration-to-magento-v1-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/02149dbd4e694f844c16cc65b418adb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Indianic Orange</media:title>
		</media:content>
	</item>
		<item>
		<title>How to solve Product Flat Data and Category Products (Indexed category/products association) reindex issue</title>
		<link>http://indianicorange.wordpress.com/2011/10/14/how-to-solve-product-flat-data-and-category-products-indexed-categoryproducts-association-reindex-issue/</link>
		<comments>http://indianicorange.wordpress.com/2011/10/14/how-to-solve-product-flat-data-and-category-products-indexed-categoryproducts-association-reindex-issue/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 04:37:42 +0000</pubDate>
		<dc:creator>Indianic Orange</dc:creator>
				<category><![CDATA[Version 1.6.*]]></category>

		<guid isPermaLink="false">http://indianicorange.wordpress.com/?p=353</guid>
		<description><![CDATA[Hello Getting to this point ultimately lead to the resolution. Below is the process we used to solve the reindexing issue for Product Flat Data: 1) Export all catalog_product_flat _* tables with data and structure with “Disable foreign key checks” enabled. 2) Drop all catalog_product_flat _* tables. 3) Once check in Frontend , that products [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=353&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello</p>
<p>Getting to this point ultimately lead to the resolution. Below is the process we used to solve the reindexing issue for <strong>Product Flat Data</strong>:</p>
<p>1) Export all catalog_product_flat _* tables with data and structure with “Disable foreign key checks” enabled.<br />
2) Drop all catalog_product_flat _* tables.<br />
3) Once check in Frontend , that products are categories are visible<br />
4) Login to Magento backend<br />
5) Go to: System -&gt; Index Management<br />
6) Click “Reindex Data” next to “Product Flat Data” index </p>
<p>Below is the process we used to solve the reindexing issue for <strong>Category Products (Indexed category/products association)</strong>:</p>
<p>1) Log into phpMyAdmin<br />
2) Go to `catalog_category_product_index`<br />
3) Click “Export”.<br />
4) Export only structure with “Disable foreign key checks” enabled.<br />
5) Drop the table `catalog_category_product_index`<br />
6) With the SQL that was exported, remove the constraints at the bottom of the export. Be sure to keep the “SET FOREIGN_KEY_CHECKS” statements.<br />
7) Click “SQL”, paste in modified SQL and click “Go”<br />
8) Login to Magento backend<br />
9) Go to: System -&gt; Index Management<br />
10) Click “Reindex Data” next to “Category Products” index </p>
<p>This worked for me ..Hope it will help you too.</p>
<p>If it helps dont forget to comment me ..</p>
<p>Meghna Vora</p>
<br />Filed under: <a href='http://indianicorange.wordpress.com/category/magento/version-1-6/'>Version 1.6.*</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indianicorange.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indianicorange.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/indianicorange.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/indianicorange.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/indianicorange.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/indianicorange.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/indianicorange.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/indianicorange.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/indianicorange.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/indianicorange.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/indianicorange.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/indianicorange.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/indianicorange.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/indianicorange.wordpress.com/353/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=353&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indianicorange.wordpress.com/2011/10/14/how-to-solve-product-flat-data-and-category-products-indexed-categoryproducts-association-reindex-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/02149dbd4e694f844c16cc65b418adb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Indianic Orange</media:title>
		</media:content>
	</item>
		<item>
		<title>How to encode product image path in magento to image blocking</title>
		<link>http://indianicorange.wordpress.com/2011/08/26/how-to-encode-product-image-path-in-magento-to-image-blocking/</link>
		<comments>http://indianicorange.wordpress.com/2011/08/26/how-to-encode-product-image-path-in-magento-to-image-blocking/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 11:05:47 +0000</pubDate>
		<dc:creator>Indianic Orange</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Version 1.3.*]]></category>
		<category><![CDATA[Version 1.4.*]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[magento image blocking]]></category>
		<category><![CDATA[product image]]></category>
		<category><![CDATA[Restrict Image]]></category>
		<category><![CDATA[Restrict image in magento]]></category>

		<guid isPermaLink="false">http://indianicorange.wordpress.com/?p=345</guid>
		<description><![CDATA[Hello All, Below is the steps to change encoded path of image and display in listing page of magento 1) Add below funciton in Image.php project/app/Local/Mage/Catalog/Helper/Image.php Copy the core file and place in local folder and than add the code in local file. /*********Function added to encrypt image path**********/ public function base64_encode_image ($filename=string,$filetype=string) { if [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=345&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello All,</p>
<p> Below is the steps to change encoded path of image and display in listing page of magento</p>
<p>1) Add below funciton in Image.php project/app/Local/Mage/Catalog/Helper/Image.php<br />
Copy the core file and place in local folder and than add the code in local file.</p>
<p>/*********Function added to encrypt image path**********/</p>
<p>    public function base64_encode_image ($filename=string,$filetype=string) {<br />
	    if ($filename) { </p>
<p>	    	$changeFilePath = explode(&#8216;cache&#8217;,$filename);<br />
	    	$changeFilePath = Mage::getBaseDir(). DS. &#8216;media&#8217;. DS. &#8216;catalog&#8217;.DS.&#8217;products&#8217;.DS.&#8217;cache&#8217;.$changeFilePath[1];</p>
<p>	        $imgbinary = fread(fopen($changeFilePath, &#8220;r&#8221;), filesize($changeFilePath));<br />
	        return &#8216;data:image/&#8217; . $filetype . &#8216;;base64,&#8217; . base64_encode($imgbinary);<br />
	    }<br />
	}</p>
<p>Now we will call above function in list.phtml file of project/app/design/catalog/product/list.phtml</p>
<p>Add below inside foreach loop<br />
<code><br />
&lt;?php<br />
           $this-&gt;helper('catalog/image')-&gt;init($_product, 'small_image')-&gt;resize(193,250);<br />
	      	  $forFiletype = explode('.',$product_image);<br />
		      $forFiletype = array_reverse($forFiletype);<br />
		      $filetype = $forFiletype[0];<br />
		      if(strtoupper($filetype) == 'JPG')<br />
		      {<br />
		      	$filetype = 'jpeg';<br />
		      }<br />
		      $base64image = '';<br />
	      	  $base64image = $this-&gt;helper('catalog/image')-&gt;base64_encode_image($product_image,$filetype); </p>
<p>       		?&gt;</p>
<p></code></p>
<p>And change Image tag of product same as Below:</p>
<p><code><br />
  	&lt;img src="&lt;?php echo $this-&gt;getSkinUrl('images/spacer.png'); ?&gt;" width="193" height="250" alt="&lt;?php echo $this-&gt;stripTags($this-&gt;getImageLabel($_product, 'small_image'), null, true) ?&gt;" style="background:url(&lt;?php echo $base64image;?&gt;) no-repeat;"/&gt;</p>
<p></code></p>
<p>When user save image it will save spacer image and not the original image.</p>
<p>I hope this post is helpful to you. If you have any question leave the comment.</p>
<p>Thanks,<br />
Bijal Bhavsar <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />Filed under: <a href='http://indianicorange.wordpress.com/category/magento/'>Magento</a>, <a href='http://indianicorange.wordpress.com/category/magento/version-1-3/'>Version 1.3.*</a>, <a href='http://indianicorange.wordpress.com/category/magento/version-1-4/'>Version 1.4.*</a> Tagged: <a href='http://indianicorange.wordpress.com/tag/image/'>image</a>, <a href='http://indianicorange.wordpress.com/tag/magento-image-blocking/'>magento image blocking</a>, <a href='http://indianicorange.wordpress.com/tag/product-image/'>product image</a>, <a href='http://indianicorange.wordpress.com/tag/restrict-image/'>Restrict Image</a>, <a href='http://indianicorange.wordpress.com/tag/restrict-image-in-magento/'>Restrict image in magento</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indianicorange.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indianicorange.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/indianicorange.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/indianicorange.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/indianicorange.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/indianicorange.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/indianicorange.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/indianicorange.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/indianicorange.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/indianicorange.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/indianicorange.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/indianicorange.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/indianicorange.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/indianicorange.wordpress.com/345/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=345&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indianicorange.wordpress.com/2011/08/26/how-to-encode-product-image-path-in-magento-to-image-blocking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/02149dbd4e694f844c16cc65b418adb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Indianic Orange</media:title>
		</media:content>
	</item>
		<item>
		<title>How to change &#8216;product &#8216; directory name from media path in magento 1.4*</title>
		<link>http://indianicorange.wordpress.com/2011/08/26/how-to-change-product-directory-name-from-media-path-in-magento-1-4/</link>
		<comments>http://indianicorange.wordpress.com/2011/08/26/how-to-change-product-directory-name-from-media-path-in-magento-1-4/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 10:54:50 +0000</pubDate>
		<dc:creator>Indianic Orange</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Version 1.3.*]]></category>
		<category><![CDATA[Version 1.4.*]]></category>
		<category><![CDATA[magento path of image]]></category>
		<category><![CDATA[magento product image]]></category>
		<category><![CDATA[media folder]]></category>
		<category><![CDATA[path of image]]></category>
		<category><![CDATA[product]]></category>
		<category><![CDATA[product image]]></category>

		<guid isPermaLink="false">http://indianicorange.wordpress.com/?p=341</guid>
		<description><![CDATA[Hello All, I found the way to rename product image folder from &#8216;product&#8217; to &#8216;products&#8217; or any name you wants. 1) First of all you have to rename folder name to the physical path of your project (i.e &#8216;project/media/catalog/product&#8217; to &#8216;project/media/catalog/products&#8217;) 2) You need to change in 5 files under PATH = project/app/Mage/Catalog/Model: You need [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=341&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello All,</p>
<p> I found the way to rename product image folder from &#8216;product&#8217; to &#8216;products&#8217; or any name you wants.</p>
<p>1) First of all you have to rename folder name to the physical path of your project (i.e &#8216;project/media/catalog/product&#8217; to &#8216;project/media/catalog/products&#8217;)</p>
<p>2) You need to change in 5 files under PATH = project/app/Mage/Catalog/Model:<br />
You need to change from all media path &#8216;product&#8217; to &#8216;products&#8217; to below listed files.</p>
<p><code><br />
file_exists(Mage::getBaseDir('media').DS.'catalog'.DS.'product'.DS.$size.DS.$image)<br />
</code><br />
TO<br />
<code><br />
file_exists(Mage::getBaseDir('media').DS.'catalog'.DS.'products'.DS.$size.DS.$image)<br />
</code></p>
<p>REPLACE below code<br />
<code><br />
'catalog/product/'<br />
</code><br />
TO<br />
<code>'catalog/products/'</code></p>
<p> <strong>File1: PATH / Product/Attribute/Frontend/Image.php</strong></p>
<p> <strong>File2: PATH / Product/Attribute/Media/Image.php</strong></p>
<p> <strong>File3: PATH / Product/Image.php</strong></p>
<p> <strong>File4: PATH / Product/Media/Config.php</strong></p>
<p> <strong>File5: PATH / Entity/Product/Attribute/Frontend/Image.php</strong></p>
<p> I hope you will find this post helpful.. If you have any question add your comment.</p>
<p>                                                                         Thanks,<br />
                                                                         Bijal Bhavsar <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />Filed under: <a href='http://indianicorange.wordpress.com/category/magento/'>Magento</a>, <a href='http://indianicorange.wordpress.com/category/magento/version-1-3/'>Version 1.3.*</a>, <a href='http://indianicorange.wordpress.com/category/magento/version-1-4/'>Version 1.4.*</a> Tagged: <a href='http://indianicorange.wordpress.com/tag/magento/'>Magento</a>, <a href='http://indianicorange.wordpress.com/tag/magento-path-of-image/'>magento path of image</a>, <a href='http://indianicorange.wordpress.com/tag/magento-product-image/'>magento product image</a>, <a href='http://indianicorange.wordpress.com/tag/media-folder/'>media folder</a>, <a href='http://indianicorange.wordpress.com/tag/path-of-image/'>path of image</a>, <a href='http://indianicorange.wordpress.com/tag/product/'>product</a>, <a href='http://indianicorange.wordpress.com/tag/product-image/'>product image</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indianicorange.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indianicorange.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/indianicorange.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/indianicorange.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/indianicorange.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/indianicorange.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/indianicorange.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/indianicorange.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/indianicorange.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/indianicorange.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/indianicorange.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/indianicorange.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/indianicorange.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/indianicorange.wordpress.com/341/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=341&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indianicorange.wordpress.com/2011/08/26/how-to-change-product-directory-name-from-media-path-in-magento-1-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/02149dbd4e694f844c16cc65b418adb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Indianic Orange</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Add New Indian Rupee Symbol in currency</title>
		<link>http://indianicorange.wordpress.com/2011/07/07/how-to-add-new-indian-rupee-symbol-in-currency/</link>
		<comments>http://indianicorange.wordpress.com/2011/07/07/how-to-add-new-indian-rupee-symbol-in-currency/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 12:40:19 +0000</pubDate>
		<dc:creator>Indianic Orange</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Version 1.4.*]]></category>

		<guid isPermaLink="false">http://indianicorange.wordpress.com/?p=329</guid>
		<description><![CDATA[To Add New Rupee symbol in magento currency follow below steps: 1. Add below css and js in header.phtml of your design theme. link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;http://cdn.webrupee.com/font&#8221; script src=http://cdn.webrupee.com/js type=&#8221;text/javascript&#8221; 2. add below code in root.xml path of file: lib/Zend/Locale/Data/root.xml open file in wordpad find: currency type=&#8221;INR&#8221; replace symbol Rs with: amp#x20B9; (use &#38; for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=329&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To Add New Rupee symbol in magento currency follow below steps:</p>
<p>1. Add below css and js in header.phtml of your design theme.<br />
link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;http://cdn.webrupee.com/font&#8221;<br />
script src=http://cdn.webrupee.com/js type=&#8221;text/javascript&#8221;</p>
<p>2. add below code in root.xml<br />
path of file: lib/Zend/Locale/Data/root.xml   open file in wordpad </p>
<p>find:</p>
<p> currency type=&#8221;INR&#8221;</p>
<p>replace symbol Rs with: amp#x20B9; (use &amp; for amp).</p>
<p>3. After this refersh cache from admin and manually delete cache from front var/cache folder.</p>
<p>Now in front end it will display new India rupee symbol.</p>
<p>Thanks<br />
Krupal Lakhia </p>
<br />Filed under: <a href='http://indianicorange.wordpress.com/category/magento/'>Magento</a>, <a href='http://indianicorange.wordpress.com/category/magento/version-1-4/'>Version 1.4.*</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indianicorange.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indianicorange.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/indianicorange.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/indianicorange.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/indianicorange.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/indianicorange.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/indianicorange.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/indianicorange.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/indianicorange.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/indianicorange.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/indianicorange.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/indianicorange.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/indianicorange.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/indianicorange.wordpress.com/329/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=329&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indianicorange.wordpress.com/2011/07/07/how-to-add-new-indian-rupee-symbol-in-currency/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/02149dbd4e694f844c16cc65b418adb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Indianic Orange</media:title>
		</media:content>
	</item>
		<item>
		<title>Magento Transactional Email not working</title>
		<link>http://indianicorange.wordpress.com/2011/06/17/magento-transactional-email-not-working/</link>
		<comments>http://indianicorange.wordpress.com/2011/06/17/magento-transactional-email-not-working/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 09:25:45 +0000</pubDate>
		<dc:creator>Indianic Orange</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Version 1.3.*]]></category>
		<category><![CDATA[Version 1.4.*]]></category>
		<category><![CDATA[Transactional Emails]]></category>

		<guid isPermaLink="false">http://indianicorange.wordpress.com/?p=325</guid>
		<description><![CDATA[Magento Transactional emails not working IF you installed wysiwyg editor ,, then try to disable from etc/modules/Namespace_Modulename.xml Thanks vishal surani Filed under: Magento, Version 1.3.*, Version 1.4.* Tagged: Transactional Emails<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=325&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Magento Transactional emails not working </p>
<p>IF you installed wysiwyg editor ,, then try to disable from etc/modules/Namespace_Modulename.xml</p>
<p>Thanks<br />
vishal surani</p>
<br />Filed under: <a href='http://indianicorange.wordpress.com/category/magento/'>Magento</a>, <a href='http://indianicorange.wordpress.com/category/magento/version-1-3/'>Version 1.3.*</a>, <a href='http://indianicorange.wordpress.com/category/magento/version-1-4/'>Version 1.4.*</a> Tagged: <a href='http://indianicorange.wordpress.com/tag/transactional-emails/'>Transactional Emails</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indianicorange.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indianicorange.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/indianicorange.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/indianicorange.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/indianicorange.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/indianicorange.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/indianicorange.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/indianicorange.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/indianicorange.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/indianicorange.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/indianicorange.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/indianicorange.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/indianicorange.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/indianicorange.wordpress.com/325/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=325&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indianicorange.wordpress.com/2011/06/17/magento-transactional-email-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/02149dbd4e694f844c16cc65b418adb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Indianic Orange</media:title>
		</media:content>
	</item>
		<item>
		<title>Integrity constraint violation: 1052 Column  in where clause is ambiguous&#8221;</title>
		<link>http://indianicorange.wordpress.com/2011/06/15/integrity-constraint-violation-1052-column-in-where-clause-is-ambiguous/</link>
		<comments>http://indianicorange.wordpress.com/2011/06/15/integrity-constraint-violation-1052-column-in-where-clause-is-ambiguous/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 09:08:16 +0000</pubDate>
		<dc:creator>Indianic Orange</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Version 1.3.*]]></category>
		<category><![CDATA[Version 1.4.*]]></category>

		<guid isPermaLink="false">http://indianicorange.wordpress.com/?p=322</guid>
		<description><![CDATA[For example in our custom module we have to add order_id in grid, if we search by order id in grid than such type of error occurs. SQLSTATE[23000]: Integrity constraint violation: 1052 Column &#8216;Order_id&#8217; in where clause is ambiguous to resolve such error we can add &#8216;filter_index&#8217;=&#62;&#8217;main_table.order_id&#8217; in $this-&#62;addColumn() function $this-&#62;addColumn('order_id', array( 'header' =&#62; Mage::helper('couponcode')-&#62;__('Order [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=322&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For example in our custom module we have to add order_id in grid, if we search by order id in grid than such type of error occurs.</p>
<p>SQLSTATE[23000]: Integrity constraint violation: 1052 Column &#8216;Order_id&#8217;<br />
in where clause is ambiguous</p>
<p>to resolve such error we can add &#8216;filter_index&#8217;=&gt;&#8217;main_table.order_id&#8217; in $this-&gt;addColumn() function</p>
<p><code><br />
$this-&gt;addColumn('order_id', array(<br />
          'header'    =&gt; Mage::helper('couponcode')-&gt;__('Order Id'),<br />
          'align'     =&gt;'left',<br />
          'index'     =&gt; 'order_id',<br />
          'filter_index'=&gt;'main_table.order_id', // This parameter helps to resolve above error<br />
      ));<br />
</code></p>
<p>                                                                                  Thanks,<br />
                                                                                  Bijal Bhavsar <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />Filed under: <a href='http://indianicorange.wordpress.com/category/magento/'>Magento</a>, <a href='http://indianicorange.wordpress.com/category/magento/version-1-3/'>Version 1.3.*</a>, <a href='http://indianicorange.wordpress.com/category/magento/version-1-4/'>Version 1.4.*</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indianicorange.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indianicorange.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/indianicorange.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/indianicorange.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/indianicorange.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/indianicorange.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/indianicorange.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/indianicorange.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/indianicorange.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/indianicorange.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/indianicorange.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/indianicorange.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/indianicorange.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/indianicorange.wordpress.com/322/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=322&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indianicorange.wordpress.com/2011/06/15/integrity-constraint-violation-1052-column-in-where-clause-is-ambiguous/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/02149dbd4e694f844c16cc65b418adb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Indianic Orange</media:title>
		</media:content>
	</item>
		<item>
		<title>How to generate html to pdf using tcpdf?</title>
		<link>http://indianicorange.wordpress.com/2011/05/07/how-to-generate-html-to-pdf-using-tcpdf/</link>
		<comments>http://indianicorange.wordpress.com/2011/05/07/how-to-generate-html-to-pdf-using-tcpdf/#comments</comments>
		<pubDate>Sat, 07 May 2011 12:43:57 +0000</pubDate>
		<dc:creator>Indianic Orange</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Version 1.3.*]]></category>
		<category><![CDATA[Version 1.4.*]]></category>

		<guid isPermaLink="false">http://indianicorange.wordpress.com/?p=317</guid>
		<description><![CDATA[To generate pdf from html using tcpdf, follow the below steps: Step1: Download tcpdf library from below link http://sourceforge.net/projects/tcpdf/files/ Step2: Add tcpdf folder in your project at path :: Your_project/lib/tcpdf Step3: Create html file at any place you wants.. Than create one function in model file.. to generate pdf like below: public function generatePdf($couponIds) { [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=317&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To generate pdf from html using tcpdf, follow the below steps:</p>
<p>Step1: Download tcpdf library from below link<br />
<a href="http://sourceforge.net/projects/tcpdf/files/">http://sourceforge.net/projects/tcpdf/files/</a></p>
<p>Step2: Add tcpdf folder in your project at path :: Your_project/lib/tcpdf</p>
<p>Step3: Create html file at any place you wants.. Than create one function in model file.. to generate pdf like  below:</p>
<p><code><br />
public  function generatePdf($couponIds)<br />
    {<br />
$filename = " HERE PATH OF HTML FILE WILL COME" ; //EG: Mage::getBaseDir().'/app/locale/en_US/template/email/coupon.html' this will return file coupon.html<br />
$logoImage = Mage::getBaseDir().'/skin/frontend/default/default/images/logo_pdf.jpg'; //logo image path<br />
$ptemplate = file_get_contents($filename);<br />
	$couponFindReplace = array(<br />
                      '##LOGO_IMAGE##' =&gt;$logoImage ,<br />
                     '##FOOTER_TEXT_IMAGE##' =&gt;$footertextImage<br />
           }<br />
//Above array is to change content dynamically.<br />
$after_replace = strtr($ptemplate, $couponFindReplace);<br />
$pdf_html = $after_replace;<br />
require_once(Mage::getBaseDir().'/lib/tcpdf/config/lang/eng.php');<br />
require_once(Mage::getBaseDir().'/lib/tcpdf/tcpdf.php');<br />
// create new PDF document<br />
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);</p>
<p>// set document information<br />
$pdf-&gt;SetCreator(PDF_CREATOR);<br />
$pdf-&gt;SetTitle('PDF Title');<br />
$pdf-&gt;SetAuthor('Author');<br />
$pdf-&gt;SetKeywords('PDF','tcpdf','html');<br />
// set header and footer fonts<br />
$pdf-&gt;setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));<br />
$pdf-&gt;setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));<br />
// set default monospaced font<br />
$pdf-&gt;SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);<br />
//set margins<br />
$pdf-&gt;SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);<br />
//set auto page breaks<br />
$pdf-&gt;SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);<br />
//set image scale factor<br />
$pdf-&gt;setImageScale(PDF_IMAGE_SCALE_RATIO);<br />
$lg = Array();<br />
$lg['a_meta_charset'] = 'UTF-8';<br />
$lg['a_meta_dir'] = 'ltr';<br />
$lg['a_meta_language'] = 'en';<br />
$lg['w_page'] = 'page';<br />
$pdf-&gt;SetFont('times','',20); //set font of pdf and default font size is 20<br />
//set some language-dependent strings<br />
$pdf-&gt;setLanguageArray($lg);</p>
<p>// add a page<br />
$pdf-&gt;AddPage();<br />
$pdf-&gt;writeHTML($coupon_pdf_html, true, 0, true, true);<br />
//$pdf-&gt;Output('test.pdf','D');	//this will create pdf and download at a time..<br />
/*START:: To create pdf at particular location in server*/<br />
$file_name = 'test.pdf';<br />
$file_name_path = Mage::getBaseDir().'/media/coupons/'.'test.pdf';<br />
if(file_exists($file_name_path))<br />
{<br />
	unlink($file_name_path);<br />
}<br />
$pdf-&gt;Output($file_name_path,'F');<br />
@chmod($file_name_path, 0777);<br />
/*END:: To create pdf at particular location in server*/<br />
return $file_name;<br />
}<br />
</code><br />
above function will generate pdf </p>
<p>The above are the steps to create simple pdf..</p>
<p>If the above code is helpful to you than do reply&#8230;.</p>
<p>                                                                                                                              Thanks,<br />
                                                                                                                               Bijal Bhavsar:)</p>
<br />Filed under: <a href='http://indianicorange.wordpress.com/category/magento/'>Magento</a>, <a href='http://indianicorange.wordpress.com/category/uncategorized/'>Uncategorized</a>, <a href='http://indianicorange.wordpress.com/category/magento/version-1-3/'>Version 1.3.*</a>, <a href='http://indianicorange.wordpress.com/category/magento/version-1-4/'>Version 1.4.*</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indianicorange.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indianicorange.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/indianicorange.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/indianicorange.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/indianicorange.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/indianicorange.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/indianicorange.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/indianicorange.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/indianicorange.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/indianicorange.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/indianicorange.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/indianicorange.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/indianicorange.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/indianicorange.wordpress.com/317/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indianicorange.wordpress.com&amp;blog=8013917&amp;post=317&amp;subd=indianicorange&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indianicorange.wordpress.com/2011/05/07/how-to-generate-html-to-pdf-using-tcpdf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/02149dbd4e694f844c16cc65b418adb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Indianic Orange</media:title>
		</media:content>
	</item>
	</channel>
</rss>
