<?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/"
	>

<channel>
	<title>munyah &#187; Magento</title>
	<atom:link href="http://munyah.com/category/magento/feed/" rel="self" type="application/rss+xml" />
	<link>http://munyah.com</link>
	<description>Define, Design, Develop &#38; Deploy</description>
	<lastBuildDate>Mon, 12 Sep 2011 05:47:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Programatically add multiple products to a cart</title>
		<link>http://munyah.com/magento/programatically-add-multiple-products-to-a-cart/</link>
		<comments>http://munyah.com/magento/programatically-add-multiple-products-to-a-cart/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 05:36:05 +0000</pubDate>
		<dc:creator>munyah</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[magento enterprise]]></category>
		<category><![CDATA[magento resources]]></category>
		<category><![CDATA[magento tricks]]></category>

		<guid isPermaLink="false">http://munyah.com/?p=422</guid>
		<description><![CDATA[After a few days of hunting for a solution, I finally bumped into this snippet and boy did I feel dumb. Anyway, I hope someone will find this useful. 1 2 3 4 5 6 7 8 9 10 try&#123; $cart = new Mage_Checkout_Model_Cart&#40;&#41;; $cart-&#62;truncate&#40;&#41;;//clear existing cart items $cart-&#62;init&#40;&#41;; $cart-&#62;addProductsByIds&#40;$productIds&#41;; $cart-&#62;save&#40;&#41;; &#125; catch&#40;Exception $e&#41;&#123; echo [...]]]></description>
			<content:encoded><![CDATA[<p>After a few days of hunting for a solution, I finally bumped into this snippet and boy did I feel dumb. Anyway, I hope someone will find this useful.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">try<span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$cart</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Mage_Checkout_Model_Cart<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cart</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">truncate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//clear existing cart items</span>
<span style="color: #000088;">$cart</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cart</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addProductsByIds</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$productIds</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cart</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">save</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
catch<span style="color: #009900;">&#40;</span>Exception <span style="color: #000088;">$e</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$e</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>getMessage<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Of course the above snippet will not work in isolation.  Below is an example of how I used it. I have put this snippet into a controller that then redirects to the users&#8217; shopping cart. e.g. http://myshop/mycheckout/addmultipletocart/?product_id[]=1&#038;product_id[]=24&#038;product_id[]=987&#038;customer_id=32</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$params</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getRequest</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getParams</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$redirect</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;checkout/cart&quot;</span><span style="color: #339933;">;</span>
Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'checkout/session'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'customer/session'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">loginById</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$params</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'customer_id'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//login the customer, so that we add items to this customers' cart and then redirect them to their cart.</span>
&nbsp;
<span style="color: #000088;">$productIds</span><span style="color: #339933;">=</span><span style="color: #000088;">$params</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'product_id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
            try<span style="color: #009900;">&#123;</span>
                <span style="color: #000088;">$cart</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Mage_Checkout_Model_Cart<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #000088;">$cart</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">truncate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//clear existing cart items</span>
                <span style="color: #000088;">$cart</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #000088;">$cart</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addProductsByIds</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$productIds</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #000088;">$cart</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">save</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            catch<span style="color: #009900;">&#40;</span>Exception <span style="color: #000088;">$e</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$e</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getMessage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_redirect<span style="color: #009900;">&#40;</span><span style="color: #000088;">$redirect</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://munyah.com/magento/programatically-add-multiple-products-to-a-cart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Extension &#124; WDCA Enhanced Product Grid Extension</title>
		<link>http://munyah.com/magento/magento-extension-wdca-enhanced-product-grid-extension/</link>
		<comments>http://munyah.com/magento/magento-extension-wdca-enhanced-product-grid-extension/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 19:48:39 +0000</pubDate>
		<dc:creator>munyah</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento extensions]]></category>
		<category><![CDATA[magento resources]]></category>

		<guid isPermaLink="false">http://munyah.com/?p=382</guid>
		<description><![CDATA[An excellent extension that allows you to view product thumbnails and customise the columns to what you need and what is relevant. Its a shame that its not compatible with the Enterprise Edition. Extension key : magento-community/TBT_Enhancedgrid Download: http://www.magentocommerce.com/magento-connect/WDCA/extension/748/enhanced-product-grid]]></description>
			<content:encoded><![CDATA[<p>An excellent extension that allows you to view product thumbnails and customise the columns to what you need and what is relevant. Its a shame that its not compatible with the Enterprise Edition.</p>
<p><strong>Extension key :</strong> <em>magento-community/TBT_Enhancedgrid</em></p>
<p><strong>Download: </strong><em>http://www.magentocommerce.com/magento-connect/WDCA/extension/748/enhanced-product-grid</em></p>
]]></content:encoded>
			<wfw:commentRss>http://munyah.com/magento/magento-extension-wdca-enhanced-product-grid-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Connect 404 Error &#8211; in Magento CE 1.4.x</title>
		<link>http://munyah.com/magento/magento-connect-404-error-in-magento-ce-1-4-x/</link>
		<comments>http://munyah.com/magento/magento-connect-404-error-in-magento-ce-1-4-x/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 18:52:22 +0000</pubDate>
		<dc:creator>munyah</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Custom Development]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[magento enterprise]]></category>
		<category><![CDATA[magento extensions]]></category>
		<category><![CDATA[magento resources]]></category>
		<category><![CDATA[magento tricks]]></category>

		<guid isPermaLink="false">http://munyah.com/?p=346</guid>
		<description><![CDATA[If we were to count the number of annoying errors one encounters in Magento; we&#8217;d need an entire century. 1 of them comes after you upgrade Magento CE to 1.4.x. This happens when you try to access the Magento Connector.  You get a 404 Error page no matter how you try to access the Connector. [...]]]></description>
			<content:encoded><![CDATA[<p>If we were to count the number of annoying errors one encounters in Magento; we&#8217;d need an entire century. 1 of them comes after you upgrade Magento CE to 1.4.x. This happens when you try to access the Magento Connector.  You get a 404 Error page no matter how you try to access the Connector.</p>
<p><strong>Solution:</strong></p>
<p>The fastest and easiest solution is to run Magentos clean-up. All it essentially does is to reset the file permissions and clear out all Magentos&#8217; miscellaneous cache folders.</p>
<p>Get it here : <a title="magento cleanup tool" href="http://www.magentocommerce.com/wiki/groups/227/resetting_file_permissions" target="_blank">http://www.magentocommerce.com/wiki/groups/227/resetting_file_permissions</a></p>
<p>The longer route is to do what the cleanup does; manually, and I know you are not going to try that.</p>
]]></content:encoded>
			<wfw:commentRss>http://munyah.com/magento/magento-connect-404-error-in-magento-ce-1-4-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the currency symbol</title>
		<link>http://munyah.com/magento/changing-the-currency-symbol-in-magento/</link>
		<comments>http://munyah.com/magento/changing-the-currency-symbol-in-magento/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 05:11:38 +0000</pubDate>
		<dc:creator>munyah</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[currency]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[online shop]]></category>
		<category><![CDATA[sales price]]></category>
		<category><![CDATA[shop]]></category>

		<guid isPermaLink="false">http://munyah.com/?p=319</guid>
		<description><![CDATA[I donno why things have to  be so difficult to do in magento . Displaying a  currency is simple enough, you go into the admin section and modify the currency as you want. However if you want to change the symbol, then its another typical magento nightmare. Having chosen my site to use Zim Dollar [...]]]></description>
			<content:encoded><![CDATA[<p>I donno why things have to  be so difficult to do in magento . Displaying a  currency is simple enough, you go into the admin section and modify the currency as you want. However if you want to change the symbol, then its another typical magento nightmare.</p>
<p>Having chosen my site to use Zim Dollar for sells, the symbol is $Z. I wanted to change that to $ZWD. So you have to go to \lib\Zend\Locale\Data</p>
<p>Default symbols are in root.xml and if you’re using other translations the symbols are in one of many .xml files in there. e.g if the translation was shona, the file would be sn.xml</p>
<p>So assuming you&#8217;re using the default language, open root.xml and search for the symbol you want to modify and change it accordingly.</p>
<p>If you ask me, a backend symbol modifier would be cool.</p>
<p>Oh, my dear magento&#8230; we’re a simple folk&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://munyah.com/magento/changing-the-currency-symbol-in-magento/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Proper  use of the &#8216;GET&#8217; Variable</title>
		<link>http://munyah.com/magento/get-variable/</link>
		<comments>http://munyah.com/magento/get-variable/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 14:40:39 +0000</pubDate>
		<dc:creator>munyah</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[get variable]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://munyah.com/?p=295</guid>
		<description><![CDATA[Once you start doing some Magento coding, you may be faced with loads of errors if you try to use the $_GET['variable'] within functions or some views. So instead try using 1 $this-&#62;getRequest&#40;&#41;-&#62;getParam&#40;'variable'&#41;;]]></description>
			<content:encoded><![CDATA[<p>Once you start doing some Magento coding, you may be faced with loads of errors if you try to use the $_GET['variable'] within functions or some views. So instead try using</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getRequest</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getParam</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'variable'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://munyah.com/magento/get-variable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento</title>
		<link>http://munyah.com/magento/magento/</link>
		<comments>http://munyah.com/magento/magento/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 19:14:28 +0000</pubDate>
		<dc:creator>munyah</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento enterprise]]></category>
		<category><![CDATA[magento extensions]]></category>
		<category><![CDATA[magento resources]]></category>
		<category><![CDATA[magento tricks]]></category>

		<guid isPermaLink="false">/?p=244</guid>
		<description><![CDATA[Officially, Magento [Varien] says : Magento is a feature-rich eCommerce platform built on open-source technology that provides online merchants with unprecedented flexibility and control over the look, content and functionality of their eCommerce store&#8230; bla bla bla Well I think Magento is an incredibly huge, feature packed eCommerce Platform. Its not for mickey mouse shops [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Officially, Magento [Varien] says</strong> : <a title="Magento eCommerce" href="http://www.magentocommerce.com" target="_blank">Magento</a> is a feature-rich eCommerce platform built on open-source technology that provides online merchants with unprecedented flexibility and control over the look, content and functionality of their eCommerce store&#8230; bla bla bla</p>
<p>Well I think <strong>Magento </strong>is an incredibly huge, feature packed eCommerce Platform. Its not for mickey mouse shops nor is it recommended for small budget hosting platforms. if you have less than 500 products to sell; leave <strong>Magento</strong> alone&#8230; stick to <a title="Virtuemart for Joomla" href="http://www.virtuemart.net/" target="_blank">Joomla&#8217;s Virtuemart </a> or <a title="WP eCommerce" href="www.instinct.co.nz/e-commerce/" target="_blank">WP eCommerce</a> or something&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://munyah.com/magento/magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

