<?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>Mukesh Chapagain&#039;s Blog &#187; Magento</title>
	<atom:link href="http://blog.chapagain.com.np/category/magento/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.chapagain.com.np</link>
	<description>PHP Magento jQuery SQL Wordpress Joomla Programming &#38; Tutorial</description>
	<lastBuildDate>Tue, 07 Feb 2012 00:54:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Magento: How to get product stock quantity &amp; other stock information?</title>
		<link>http://blog.chapagain.com.np/magento-how-to-get-product-stock-quantity-other-stock-information/</link>
		<comments>http://blog.chapagain.com.np/magento-how-to-get-product-stock-quantity-other-stock-information/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 20:16:25 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[product]]></category>
		<category><![CDATA[stock]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=1565</guid>
		<description><![CDATA[Here is a quick code to get any product&#8217;s stock information like quantity (qty), minimum quantity (min_qty), stock availability (is_in_stock), minimum and maximum sale quantity (min_sale_qty and max_sale_qty), etc. First load the product. Product can be loaded in different ways. Here are the two different ways to load any product in Magento:- 1. Load product [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-get-parent-id-of-simple-product-associated-to-configurable-product/' rel='bookmark' title='Permanent Link: Magento: Get parent id of simple product associated to configurable product'>Magento: Get parent id of simple product associated to configurable product</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-manufacturer-name-and-id-from-product/' rel='bookmark' title='Permanent Link: Magento: Get manufacturer name and id from product'>Magento: Get manufacturer name and id from product</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-get-all-associated-children-product-of-a-configurable-product/' rel='bookmark' title='Permanent Link: Magento: How to get all associated children product of a configurable product?'>Magento: How to get all associated children product of a configurable product?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-get-actual-price-and-special-price-of-a-product/' rel='bookmark' title='Permanent Link: Magento: How to get actual price and special price of a product?'>Magento: How to get actual price and special price of a product?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-load-store-specific-product/' rel='bookmark' title='Permanent Link: Magento: Load store specific product'>Magento: Load store specific product</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Here is a quick code to get any product&#8217;s stock information like quantity (<strong>qty</strong>), minimum quantity (<strong>min_qty</strong>), stock availability (<strong>is_in_stock</strong>), minimum and maximum sale quantity (<strong>min_sale_qty </strong>and <strong>max_sale_qty</strong>), etc.</p>
<p>First load the product. Product can be loaded in different ways. Here are the two different ways to load any product in Magento:-</p>
<p><span id="more-1565"></span></p>
<p>1. Load product by product ID</p>
<pre class="brush: php; title: ; notranslate">
$id = 52;
$_product = Mage::getModel('catalog/product')-&gt;load($id);
</pre>
<p>2. Load product by SKU</p>
<pre class="brush: php; title: ; notranslate">
$sku = &quot;microsoftnatural&quot;;
$_product = Mage::getModel('catalog/product')-&gt;loadByAttribute('sku', $sku);
</pre>
<p>Now, get stock information for the loaded product.</p>
<pre class="brush: php; title: ; notranslate">
$stock = Mage::getModel('cataloginventory/stock_item')-&gt;loadByProduct($_product);
</pre>
<p>You can check stock data in this way:-</p>
<pre class="brush: php; title: ; notranslate">
echo &quot;&lt;pre&gt;&quot;; print_r($stock-&gt;getData()); echo &quot;&lt;/pre&gt;&quot;;
</pre>
<p>Or, you can print individually like this:-</p>
<pre class="brush: php; title: ; notranslate">
echo $stock-&gt;getQty();
echo $stock-&gt;getMinQty();
echo $stock-&gt;getMinSaleQty();
</pre>
<p>Hope this helps. Thanks.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=1565&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-get-parent-id-of-simple-product-associated-to-configurable-product/' rel='bookmark' title='Permanent Link: Magento: Get parent id of simple product associated to configurable product'>Magento: Get parent id of simple product associated to configurable product</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-manufacturer-name-and-id-from-product/' rel='bookmark' title='Permanent Link: Magento: Get manufacturer name and id from product'>Magento: Get manufacturer name and id from product</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-get-all-associated-children-product-of-a-configurable-product/' rel='bookmark' title='Permanent Link: Magento: How to get all associated children product of a configurable product?'>Magento: How to get all associated children product of a configurable product?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-get-actual-price-and-special-price-of-a-product/' rel='bookmark' title='Permanent Link: Magento: How to get actual price and special price of a product?'>Magento: How to get actual price and special price of a product?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-load-store-specific-product/' rel='bookmark' title='Permanent Link: Magento: Load store specific product'>Magento: Load store specific product</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-how-to-get-product-stock-quantity-other-stock-information/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The Advantages of Building Magento Websites</title>
		<link>http://blog.chapagain.com.np/the-advantages-of-building-magento-websites/</link>
		<comments>http://blog.chapagain.com.np/the-advantages-of-building-magento-websites/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 09:42:19 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Guest Post]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=1589</guid>
		<description><![CDATA[Magento websites are powered by the open source tool of the same name, which has been specifically designed to build sites that are suited to expanding businesses. Magento’s modular architecture makes it easy for a site (and a business!) to start simple and grow in step with demand, rather than over reaching itself and running [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-create-shopping-cart-price-rule-programmatically/' rel='bookmark' title='Permanent Link: Magento: Create Shopping Cart Price Rule Programmatically'>Magento: Create Shopping Cart Price Rule Programmatically</a></li>
<li><a href='http://blog.chapagain.com.np/what-is-googles-opensocial/' rel='bookmark' title='Permanent Link: What is Google’s OpenSocial?'>What is Google’s OpenSocial?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-disable-remove-secret-key-from-admin-url/' rel='bookmark' title='Permanent Link: Magento: How to disable / remove Secret Key from Admin URL?'>Magento: How to disable / remove Secret Key from Admin URL?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-all-shopping-cart-items-and-totals/' rel='bookmark' title='Permanent Link: Magento: Get all shopping cart items and totals'>Magento: Get all shopping cart items and totals</a></li>
<li><a href='http://blog.chapagain.com.np/introduction-of-facebook-connect/' rel='bookmark' title='Permanent Link: Introduction to facebook connect'>Introduction to facebook connect</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Magento websites are powered by the open source tool of the same name, which has been specifically designed to build sites that are suited to expanding businesses. Magento’s modular architecture makes it easy for a site (and a business!) to start simple and grow in step with demand, rather than over reaching itself and running into disparity problems between the amount of available capital to spend on expansion and the cost of jumping to a higher level, rather than climbing by sensible increments.</p>
<p>Magento websites have access to an incredible amount of user controlled power. End users can build marketing promotions and use marketing tools from within the Magento framework – which, like WordPress, is pre-engineered to talk to search engines and ensure everything is in the right place for the indexing web bots.</p>
<p><span id="more-1589"></span></p>
<p>Magento websites build their own Google site map by default, allow site builders to rewrite URLs for full control and create meta information tags for products and categories. Cataloguing is done with integration to Google Base and can support special price rules, offers, and downloads or digital products too.</p>
<p>Magento powers ecommerce sites that can ship to more than one address in the same order. It can control free shipping offers to dedicated countries, areas of postal codes. And it can arrange each order into multiple shipments for quicker dispatch.</p>
<p>Split fulfillment is further taken care of on Magento websites by the platform’s ability to create multiple invoices for the same order, to make sure that each actual physical shipment is accounted for in the digital paper trail.</p>
<p>Businesses with multiple sites or different ecommerce needs can control multiple Magento websites from one user control panel. There’s also a built in Web Services API to allow simple integration between the Magento base and any other web technology required to run the site effectively.</p>
<p>In terms of delivering and fine tuning campaigns, product launches and other ecommerce services, the Magento website offers a raft of reports and analytic tools. Analysis of the daily performance of an ecommerce website is crucial to its continued success – it’s here that you pick up areas in which commerce is not performing properly and develop routines to fix the problem.</p>
<p>Magento websites have access to a suite of report and analysis functions, including an abandoned shopping cart report; an analysis of best customers; and analyses of fruitful shopping times for the site. The Magento analysis platform is also capable of integrating with Google Analytics and Website Optimizer to run multi variate and A/B testing.</p>
<p>Importantly for modern ecommerce websites, Magento is fully compatible with popular mobile devices. As more and more customers choose to do their shopping on the fly, the modern ecommerce site must be able to present options intelligibly on a smaller screen, and to have the same cast iron security backup that a standard broadband shopping cart provides. Magento websites do both with the ability to plug into other technologies for bespoke functionality.  </p>
<blockquote><p><strong>About Author:</strong> </p>
<p><strong>Kristina Louis</strong> is a freelance content writer by profession. Seo,website development and Internet technology are her topic of interest and she find immense pleasure in writing article on Internet technology,website development especially on <a href="http://www.logicspot.com/" rel="nofollow"  target="_blank">Magento websites</a>.</p></blockquote>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=1589&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-create-shopping-cart-price-rule-programmatically/' rel='bookmark' title='Permanent Link: Magento: Create Shopping Cart Price Rule Programmatically'>Magento: Create Shopping Cart Price Rule Programmatically</a></li>
<li><a href='http://blog.chapagain.com.np/what-is-googles-opensocial/' rel='bookmark' title='Permanent Link: What is Google’s OpenSocial?'>What is Google’s OpenSocial?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-disable-remove-secret-key-from-admin-url/' rel='bookmark' title='Permanent Link: Magento: How to disable / remove Secret Key from Admin URL?'>Magento: How to disable / remove Secret Key from Admin URL?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-all-shopping-cart-items-and-totals/' rel='bookmark' title='Permanent Link: Magento: Get all shopping cart items and totals'>Magento: Get all shopping cart items and totals</a></li>
<li><a href='http://blog.chapagain.com.np/introduction-of-facebook-connect/' rel='bookmark' title='Permanent Link: Introduction to facebook connect'>Introduction to facebook connect</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/the-advantages-of-building-magento-websites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento: Show/Hide Demo Store Notice</title>
		<link>http://blog.chapagain.com.np/magento-showhide-demo-store-notice/</link>
		<comments>http://blog.chapagain.com.np/magento-showhide-demo-store-notice/#comments</comments>
		<pubDate>Mon, 26 Dec 2011 17:48:47 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[notice]]></category>
		<category><![CDATA[store]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=1535</guid>
		<description><![CDATA[A demo store is where there are products but the order done by customer is not processed. If your website is in development mode then it is better to enable demo store notice. Enabling demo store notice in Magento is very simple. You just need to select an option in configuration settings in admin panel. [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-show-hide-website-to-search-engines-by-adjusting-robots-meta-tag/' rel='bookmark' title='Permanent Link: Magento: Show/Hide website to search engines by adjusting robots meta tag'>Magento: Show/Hide website to search engines by adjusting robots meta tag</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-store-information/' rel='bookmark' title='Permanent Link: Magento: Get store information'>Magento: Get store information</a></li>
<li><a href='http://blog.chapagain.com.np/magento-showing-store-selector-switcher-in-header-and-footer/' rel='bookmark' title='Permanent Link: Magento: Showing Store Selector / Switcher in header and footer'>Magento: Showing Store Selector / Switcher in header and footer</a></li>
<li><a href='http://blog.chapagain.com.np/magento-load-store-specific-product/' rel='bookmark' title='Permanent Link: Magento: Load store specific product'>Magento: Load store specific product</a></li>
<li><a href='http://blog.chapagain.com.np/javascript-showhide-html-elements/' rel='bookmark' title='Permanent Link: Javascript: Show/Hide HTML elements'>Javascript: Show/Hide HTML elements</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A demo store is where there are products but the order done by customer is not processed. If your website is in development mode then it is better to enable demo store notice.</p>
<p>Enabling demo store notice in Magento is very simple. You just need to select an option in configuration settings in admin panel.</p>
<p><span id="more-1535"></span></p>
<p>Go to <strong>System -> Configuration -> Design -> HTML Head -> Display Demo Store Notice</strong></p>
<p>By default, it is set as &#8216;No&#8217;. To enable demo store notice, select &#8216;Yes&#8217;.</p>
<p>Now, you will see a notice bar at top of your page saying &#8216;<strong>This is a demo store. Any orders placed through this store will not be honored or fulfilled.</strong>&#8216;</p>
<p>Hope it helps. Thanks.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=1535&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-show-hide-website-to-search-engines-by-adjusting-robots-meta-tag/' rel='bookmark' title='Permanent Link: Magento: Show/Hide website to search engines by adjusting robots meta tag'>Magento: Show/Hide website to search engines by adjusting robots meta tag</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-store-information/' rel='bookmark' title='Permanent Link: Magento: Get store information'>Magento: Get store information</a></li>
<li><a href='http://blog.chapagain.com.np/magento-showing-store-selector-switcher-in-header-and-footer/' rel='bookmark' title='Permanent Link: Magento: Showing Store Selector / Switcher in header and footer'>Magento: Showing Store Selector / Switcher in header and footer</a></li>
<li><a href='http://blog.chapagain.com.np/magento-load-store-specific-product/' rel='bookmark' title='Permanent Link: Magento: Load store specific product'>Magento: Load store specific product</a></li>
<li><a href='http://blog.chapagain.com.np/javascript-showhide-html-elements/' rel='bookmark' title='Permanent Link: Javascript: Show/Hide HTML elements'>Javascript: Show/Hide HTML elements</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-showhide-demo-store-notice/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Magento: Show/Hide website to search engines by adjusting robots meta tag</title>
		<link>http://blog.chapagain.com.np/magento-show-hide-website-to-search-engines-by-adjusting-robots-meta-tag/</link>
		<comments>http://blog.chapagain.com.np/magento-show-hide-website-to-search-engines-by-adjusting-robots-meta-tag/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 17:35:16 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[meta-tags]]></category>
		<category><![CDATA[robots]]></category>
		<category><![CDATA[search engine]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=1530</guid>
		<description><![CDATA[The Robots META Tag is meant to provide users who cannot upload or control the /robots.txt file at their websites, with a last chance to keep their content out of search engine indexes and services. The content=&#8221;robots-terms&#8221; is a comma separated list used in the Robots META Tag that may contain one or more of [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/meta-tags/' rel='bookmark' title='Permanent Link: What are Meta-Tags? Full Description of Meta tags'>What are Meta-Tags? Full Description of Meta tags</a></li>
<li><a href='http://blog.chapagain.com.np/wordpress-archive-link-not-working/' rel='bookmark' title='Permanent Link: WordPress: Archive link not working'>WordPress: Archive link not working</a></li>
<li><a href='http://blog.chapagain.com.np/dynamically-change-page-title-and-meta-tags-in-c/' rel='bookmark' title='Permanent Link: Dynamically change page title and meta tags in C#'>Dynamically change page title and meta tags in C#</a></li>
<li><a href='http://blog.chapagain.com.np/javascript-show-hide-textbox-text-on-focus/' rel='bookmark' title='Permanent Link: Javascript: Show Hide textbox text on focus'>Javascript: Show Hide textbox text on focus</a></li>
<li><a href='http://blog.chapagain.com.np/magento-showhide-demo-store-notice/' rel='bookmark' title='Permanent Link: Magento: Show/Hide Demo Store Notice'>Magento: Show/Hide Demo Store Notice</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The <strong>Robots META Tag</strong> is meant to provide users who cannot upload or control the <strong>/robots.txt</strong> file at their websites, with a last chance to keep their content out of search engine indexes and services.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;meta name=&quot;robots&quot; content=&quot;robots-terms&quot;&gt;
</pre>
<p><span id="more-1530"></span></p>
<p>The <strong>content=&#8221;robots-terms&#8221;</strong> is a comma separated list used in the Robots META Tag that may contain one or more of the following keywords without regard to case: <strong>noindex, nofollow, all, index and follow</strong>.</p>
<blockquote><p>
noindex = Page may not be indexed by a search service.<br />
nofollow = Robots are not to follow links from this page.
</p></blockquote>
<p>You can find more about the robots meta tag over here: <a href="http://www.seoconsultants.com/meta-tags/robots/" target="_blank" rel="nofollow">http://www.seoconsultants.com/meta-tags/robots/</a></p>
<p>There is an easy way in Magento to adjust robots meta tags. You can simply choose from admin settings.</p>
<p>Go to <strong>System -> Configuration -> Design -> HTML Head -> Default Robots</strong></p>
<p>You have the following options to choose:</p>
<blockquote><p>
- index, follow<br />
- noindex, follow<br />
- index, nofollow<br />
- noindex, nofollow
</p></blockquote>
<p>If you have a live site (production site) then choose &#8216;<strong>index, follow</strong>&#8216;. If you have a test site (development site) then choose &#8216;<strong>noindex, nofollow</strong>&#8216;.</p>
<p>Hope it helps. Thanks.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=1530&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/meta-tags/' rel='bookmark' title='Permanent Link: What are Meta-Tags? Full Description of Meta tags'>What are Meta-Tags? Full Description of Meta tags</a></li>
<li><a href='http://blog.chapagain.com.np/wordpress-archive-link-not-working/' rel='bookmark' title='Permanent Link: WordPress: Archive link not working'>WordPress: Archive link not working</a></li>
<li><a href='http://blog.chapagain.com.np/dynamically-change-page-title-and-meta-tags-in-c/' rel='bookmark' title='Permanent Link: Dynamically change page title and meta tags in C#'>Dynamically change page title and meta tags in C#</a></li>
<li><a href='http://blog.chapagain.com.np/javascript-show-hide-textbox-text-on-focus/' rel='bookmark' title='Permanent Link: Javascript: Show Hide textbox text on focus'>Javascript: Show Hide textbox text on focus</a></li>
<li><a href='http://blog.chapagain.com.np/magento-showhide-demo-store-notice/' rel='bookmark' title='Permanent Link: Magento: Show/Hide Demo Store Notice'>Magento: Show/Hide Demo Store Notice</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-show-hide-website-to-search-engines-by-adjusting-robots-meta-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento: How to get actual price and special price of a product?</title>
		<link>http://blog.chapagain.com.np/magento-how-to-get-actual-price-and-special-price-of-a-product/</link>
		<comments>http://blog.chapagain.com.np/magento-how-to-get-actual-price-and-special-price-of-a-product/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 17:09:54 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[price]]></category>
		<category><![CDATA[product]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=1528</guid>
		<description><![CDATA[Here is a quick and useful code on getting actual price and special price of any product in Magento. The actual price is the real price assigned to the product and special price is the price after any discount is applied to the product. Loading Product Get Actual Price Get Special Price Hope it helps. [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-format-price/' rel='bookmark' title='Permanent Link: Magento: Format Price'>Magento: Format Price</a></li>
<li><a href='http://blog.chapagain.com.np/magento-convert-price-from-current-currency-to-base-currency-and-vice-versa/' rel='bookmark' title='Permanent Link: Magento: Convert Price from Current Currency to Base Currency and vice-versa'>Magento: Convert Price from Current Currency to Base Currency and vice-versa</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-parent-id-of-simple-product-associated-to-configurable-product/' rel='bookmark' title='Permanent Link: Magento: Get parent id of simple product associated to configurable product'>Magento: Get parent id of simple product associated to configurable product</a></li>
<li><a href='http://blog.chapagain.com.np/magento-create-catalog-price-rule-programmatically/' rel='bookmark' title='Permanent Link: Magento: Create Catalog Price Rule Programmatically'>Magento: Create Catalog Price Rule Programmatically</a></li>
<li><a href='http://blog.chapagain.com.np/magento-create-shopping-cart-price-rule-programmatically/' rel='bookmark' title='Permanent Link: Magento: Create Shopping Cart Price Rule Programmatically'>Magento: Create Shopping Cart Price Rule Programmatically</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Here is a quick and useful code on getting actual price and special price of any product in Magento. The actual price is the real price assigned to the product and special price is the price after any discount is applied to the product.</p>
<p><strong>Loading Product</strong></p>
<pre class="brush: php; title: ; notranslate">
$_productId = 52;
$_product = Mage::getModel('catalog/product')-&gt;load($_productId);
</pre>
<p><span id="more-1528"></span></p>
<p><strong>Get Actual Price</strong></p>
<pre class="brush: php; title: ; notranslate">
// without currency sign
$_actualPrice = $_product-&gt;getPrice();

// with currency sign
$_formattedActualPrice = Mage::helper('core')-&gt;currency($_product-&gt;getPrice(),true,false);
</pre>
<p><strong>Get Special Price</strong></p>
<pre class="brush: php; title: ; notranslate">
// without currency sign
$_specialPrice = $_product-&gt;getFinalPrice();

// with currency sign
$_formattedSpecialPrice = Mage::helper('core')-&gt;currency($_product-&gt;getFinalPrice(),true,false);
</pre>
<p>Hope it helps. Thanks.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=1528&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-format-price/' rel='bookmark' title='Permanent Link: Magento: Format Price'>Magento: Format Price</a></li>
<li><a href='http://blog.chapagain.com.np/magento-convert-price-from-current-currency-to-base-currency-and-vice-versa/' rel='bookmark' title='Permanent Link: Magento: Convert Price from Current Currency to Base Currency and vice-versa'>Magento: Convert Price from Current Currency to Base Currency and vice-versa</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-parent-id-of-simple-product-associated-to-configurable-product/' rel='bookmark' title='Permanent Link: Magento: Get parent id of simple product associated to configurable product'>Magento: Get parent id of simple product associated to configurable product</a></li>
<li><a href='http://blog.chapagain.com.np/magento-create-catalog-price-rule-programmatically/' rel='bookmark' title='Permanent Link: Magento: Create Catalog Price Rule Programmatically'>Magento: Create Catalog Price Rule Programmatically</a></li>
<li><a href='http://blog.chapagain.com.np/magento-create-shopping-cart-price-rule-programmatically/' rel='bookmark' title='Permanent Link: Magento: Create Shopping Cart Price Rule Programmatically'>Magento: Create Shopping Cart Price Rule Programmatically</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-how-to-get-actual-price-and-special-price-of-a-product/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento: How to get product rating and review?</title>
		<link>http://blog.chapagain.com.np/magento-how-to-get-product-rating-and-review/</link>
		<comments>http://blog.chapagain.com.np/magento-how-to-get-product-rating-and-review/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 05:10:11 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[product rating]]></category>
		<category><![CDATA[product review]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=1101</guid>
		<description><![CDATA[Here is the code to get ratings and reviews for any particular product. Displaying the ratings Hope this helps. Thanks. Copyright &#169; 2011 This feed is for personal, non-commercial use only. The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-how-to-get-top-rated-products/' rel='bookmark' title='Permanent Link: Magento: How to get top rated products?'>Magento: How to get top rated products?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-sub-categories-and-product-count/' rel='bookmark' title='Permanent Link: Magento: Get sub categories and product count'>Magento: Get sub categories and product count</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-get-all-associated-children-product-of-a-configurable-product/' rel='bookmark' title='Permanent Link: Magento: How to get all associated children product of a configurable product?'>Magento: How to get all associated children product of a configurable product?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-product-edit-warning-invalid-argument-supplied-for-foreach/' rel='bookmark' title='Permanent Link: Magento: Product Edit Warning: Invalid argument supplied for foreach()'>Magento: Product Edit Warning: Invalid argument supplied for foreach()</a></li>
<li><a href='http://blog.chapagain.com.np/magento-block-controller-model-helper-override/' rel='bookmark' title='Permanent Link: Magento: Block Controller Model Helper Override'>Magento: Block Controller Model Helper Override</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Here is the code to get ratings and reviews for any particular product.</p>
<pre class="brush: php; title: ; notranslate">
/**
 * Getting reviews collection object
 */
$productId = $product-&gt;getId();
$reviews = Mage::getModel('review/review')
				-&gt;getResourceCollection()
				-&gt;addStoreFilter(Mage::app()-&gt;getStore()-&gt;getId())
				-&gt;addEntityFilter('product', $productId)
				-&gt;addStatusFilter(Mage_Review_Model_Review::STATUS_APPROVED)
				-&gt;setDateOrder()
				-&gt;addRateVotes();
/**
 * Getting average of ratings/reviews
 */
$avg = 0;
$ratings = array();
if (count($reviews) &gt; 0) {
	foreach ($reviews-&gt;getItems() as $review) {
		foreach( $review-&gt;getRatingVotes() as $vote ) {
			$ratings[] = $vote-&gt;getPercent();
		}
	}
	$avg = array_sum($ratings)/count($ratings);
}
</pre>
<p><strong>Displaying the ratings</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;!-- REMOVE 'IF CONDITION', TO SHOW RATING IN ALL RATED/UNRATED PRODUCTS --&gt;
&lt;?php if($avg): ?&gt;
	&lt;div class=&quot;rating-box&quot; style=&quot;float:left;&quot;&gt;
		&lt;div class=&quot;rating&quot; style=&quot;width: &lt;?php echo ceil($avg) ; ?&gt;%;&quot;&gt;&lt;/div&gt;
	&lt;/div&gt;
&lt;?php endif; ?&gt;
</pre>
<p><span id="more-1101"></span></p>
<p>Hope this helps. Thanks.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=1101&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-how-to-get-top-rated-products/' rel='bookmark' title='Permanent Link: Magento: How to get top rated products?'>Magento: How to get top rated products?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-sub-categories-and-product-count/' rel='bookmark' title='Permanent Link: Magento: Get sub categories and product count'>Magento: Get sub categories and product count</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-get-all-associated-children-product-of-a-configurable-product/' rel='bookmark' title='Permanent Link: Magento: How to get all associated children product of a configurable product?'>Magento: How to get all associated children product of a configurable product?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-product-edit-warning-invalid-argument-supplied-for-foreach/' rel='bookmark' title='Permanent Link: Magento: Product Edit Warning: Invalid argument supplied for foreach()'>Magento: Product Edit Warning: Invalid argument supplied for foreach()</a></li>
<li><a href='http://blog.chapagain.com.np/magento-block-controller-model-helper-override/' rel='bookmark' title='Permanent Link: Magento: Block Controller Model Helper Override'>Magento: Block Controller Model Helper Override</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-how-to-get-product-rating-and-review/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Magento: How to setup Ogone Payment Method? [IMAGES]</title>
		<link>http://blog.chapagain.com.np/magento-how-to-setup-ogone-payment-method-images/</link>
		<comments>http://blog.chapagain.com.np/magento-how-to-setup-ogone-payment-method-images/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 02:01:18 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[ogone]]></category>
		<category><![CDATA[payment]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=1484</guid>
		<description><![CDATA[Ogone is one of the leading European Payment Service Providers with more than 28.000 clients across 40 countries. Ogone is connected through certified links to more than 200 European banks/acquirers that enable handling of international payment methods like Visa, MasterCard, American Express, Diners Club and JCB as well as local ones like iDEAL and Machtigingen [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-payment-method-not-displayed-in-multiple-shipping-adresses-checkout/' rel='bookmark' title='Permanent Link: Magento: Payment method not displayed in Multiple Shipping Adresses Checkout'>Magento: Payment method not displayed in Multiple Shipping Adresses Checkout</a></li>
<li><a href='http://blog.chapagain.com.np/ubuntu-linux-how-to-install-and-setup-xdebug-in-php-eclipse-images/' rel='bookmark' title='Permanent Link: Ubuntu Linux: How to install and setup XDebug in PHP Eclipse? [IMAGES]'>Ubuntu Linux: How to install and setup XDebug in PHP Eclipse? [IMAGES]</a></li>
<li><a href='http://blog.chapagain.com.np/magento-different-shipping-rate-for-different-country-and-region/' rel='bookmark' title='Permanent Link: Magento: Different shipping rate for different country and region'>Magento: Different shipping rate for different country and region</a></li>
<li><a href='http://blog.chapagain.com.np/magento-authorize-net-not-displayed-in-payment-information-section-while-checkout/' rel='bookmark' title='Permanent Link: Magento: Authorize.net not displayed in Payment Information section while Checkout'>Magento: Authorize.net not displayed in Payment Information section while Checkout</a></li>
<li><a href='http://blog.chapagain.com.np/magento-paypal-website-payments-standard-not-displayed/' rel='bookmark' title='Permanent Link: Magento: PayPal Website Payments Standard not displayed'>Magento: PayPal Website Payments Standard not displayed</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://ogone.com" target="_blank" rel="nofollow">Ogone </a></strong>is one of the leading European Payment Service Providers with more than 28.000 clients across 40 countries. </p>
<p>Ogone is connected through certified links to more than 200 European banks/acquirers that enable handling of international payment methods like Visa, MasterCard, American Express, Diners Club and JCB as well as local ones like iDEAL and Machtigingen in The Netherlands, Solo and Maestro UK in United Kingdom and ELV and giropay in Germany.</p>
<p><span id="more-1484"></span></p>
<p>For Magento, there is a <a href="http://www.magentocommerce.com/magento-connect/Magento+Core/extension/2212/official-ogone-extension" target="_blank" rel="nofollow">Ogone Module</a> (community edition extension) released officially by the Magento Core Team. </p>
<p>At present this only supports to Magento CE (Community Edition) version 1.3. It might not support the latest versions of Magento CE. However, Ogone payment method is present by default in Magento EE (Enterprise Edition).</p>
<h3>Creating account in Ogone</h3>
<p>- Go to <a href="http://www.ogone.com" target="_blank" rel="nofollow">Ogone website</a></p>
<p>- Select your desired country. The country selection list is present in the top header of ogone.com</p>
<p>- Then under &#8216;Merchant login&#8217;, you will find link to login to &#8216;Production Account&#8217; and &#8216;Test Account&#8217;. You will also find link to &#8216;Create a Production Account&#8217;. In the website, you will also find a button to &#8216;Create FREE test account&#8217;.</p>
<p>Link to <strong>Register for Production Account</strong>: <a target="_blank" rel="nofollow" href="https://secure.ogone.com/ncol/prod/new_account.asp?BRANDING=ogone&#038;ISP=OBE&#038;SubID=1&#038;SOLPRO=&#038;MODE=STD&#038;ACountry=BE&#038;Lang=1 Note: ACountry=BE">https://secure.ogone.com/ncol/prod/new_account.asp?BRANDING=ogone&#038;ISP=OBE&#038;SubID=1&#038;SOLPRO=&#038;MODE=STD&#038;ACountry=BE&#038;Lang=1<br />
Note: ACountry=BE</a> (this indicates the country is chosen as &#8216;Belgium&#8217;)</p>
<p>Link to <strong>Login to Production Account</strong>: <a target="_blank" rel="nofollow" href="https://secure.ogone.com/ncol/prod/frame_ogone.asp?BRANDING=ogone&#038;ISP=OBE&#038;SubID=1&#038;SOLPRO=&#038;MODE=STD&#038;ACountry=BE&#038;Lang=1 Note: ACountry=BE">https://secure.ogone.com/ncol/prod/frame_ogone.asp?BRANDING=ogone&#038;ISP=OBE&#038;SubID=1&#038;SOLPRO=&#038;MODE=STD&#038;ACountry=BE&#038;Lang=1<br />
Note: ACountry=BE</a> (this indicates the country is chosen as &#8216;Belgium&#8217;)</p>
<p>Link to <strong>Register for Test Account</strong>: <a target="_blank" rel="nofollow" href="https://secure.ogone.com/ncol/test/new_account.asp?BRANDING=ogone&#038;ISP=OBE&#038;SubID=1&#038;SOLPRO=&#038;MODE=STD&#038;ACountry=BE&#038;Lang=1 Note: ACountry=BE">https://secure.ogone.com/ncol/test/new_account.asp?BRANDING=ogone&#038;ISP=OBE&#038;SubID=1&#038;SOLPRO=&#038;MODE=STD&#038;ACountry=BE&#038;Lang=1<br />
Note: ACountry=BE</a> (this indicates the country is chosen as &#8216;Belgium&#8217;)</p>
<p>Link to <strong>Login to Test Account</strong>: <a target="_blank" rel="nofollow" href="https://secure.ogone.com/ncol/test/frame_ogone.asp?BRANDING=ogone&#038;ISP=OBE&#038;SubID=1&#038;SOLPRO=&#038;MODE=STD&#038;ACountry=BE&#038;Lang=1 Note: ACountry=BE">https://secure.ogone.com/ncol/test/frame_ogone.asp?BRANDING=ogone&#038;ISP=OBE&#038;SubID=1&#038;SOLPRO=&#038;MODE=STD&#038;ACountry=BE&#038;Lang=1<br />
Note: ACountry=BE</a> (this indicates the country is chosen as &#8216;Belgium&#8217;)</p>
<p>When you register for Test or Production account, you need to consider the following things:-<br />
-	Provide PSPID (this will be required for login)<br />
-	Provide <strong>valid company email address</strong>. Gmail, hotmail, yahoo, etc. email addresses are not valid for Ogone account.</p>
<p>After you submit the registration form, Ogone team will review your data and if everything is okay and valid, then they will email you the login password. They will also email you, if the registration data is invalid.</p>
<h3>Making necessary settings in Ogone</h3>
<p><strong>Adding Payment Methods</strong></p>
<p>To add payment methods to Ogone, you can click on the &#8216;<strong>Payment methods</strong>&#8216; menu present in left sidebar.</p>
<p><a href="https://lh4.googleusercontent.com/-XMARk9BhBUs/TmijvMnrx0I/AAAAAAAAAAo/4O4ua5S-KtQ/1%252520payment%252520methods.png" rel="nofollow" target="_blank"><br />
	<img alt="payment methods menu" src="https://lh4.googleusercontent.com/-XMARk9BhBUs/TmijvMnrx0I/AAAAAAAAAAo/4O4ua5S-KtQ/1%252520payment%252520methods.png"><br />
</a></p>
<p>Then, you will see the following page. From here, you can add and edit payment methods present in Ogone.</p>
<p><a href="https://lh3.googleusercontent.com/-jtpNqdVZvkA/Tmijvf2pejI/AAAAAAAAAAs/TKgnDv_j5A0/s512/2%252520payment%252520methods%2525202.png" rel="nofollow" target="_blank"><br />
	<img alt="payment methods" src="https://lh3.googleusercontent.com/-jtpNqdVZvkA/Tmijvf2pejI/AAAAAAAAAAs/TKgnDv_j5A0/s512/2%252520payment%252520methods%2525202.png"><br />
</a></p>
<p><strong>Adjusting Technical Settings</strong></p>
<p>The other and the most important settings for Ogone payment method is the Technical Setting. You can access the technical settings page by clicking the &#8216;<strong>Technical information</strong>&#8216; menu present in left sidebar.</p>
<p><a href="https://lh3.googleusercontent.com/-HeTf3iqbFnA/TmijwZBpR8I/AAAAAAAAAA0/_b5MahpTG04/3%252520technical%252520information%252520menu.png" rel="nofollow" target="_blank"><br />
	<img alt="technical information menu" src="https://lh3.googleusercontent.com/-HeTf3iqbFnA/TmijwZBpR8I/AAAAAAAAAA0/_b5MahpTG04/3%252520technical%252520information%252520menu.png"><br />
</a></p>
<p>After that, you go to the technical settings page. The first tab is &#8216;<strong>Global transaction parameters</strong>&#8216; tab. Check if the settings in that page is like the below image.</p>
<p><a href="https://lh5.googleusercontent.com/-Y-8KjXAo_-c/TmijxZ8jLoI/AAAAAAAAAA4/rtTFmfFEGhU/s912/4%252520global%252520transaction%252520parameters.png" rel="nofollow" target="_blank"><br />
	<img width="580px" alt="global transaction parameters" src="https://lh5.googleusercontent.com/-Y-8KjXAo_-c/TmijxZ8jLoI/AAAAAAAAAA4/rtTFmfFEGhU/s912/4%252520global%252520transaction%252520parameters.png"><br />
</a></p>
<p style="text-align:center">Click on the image to view full size.</p>
<p>Click the &#8216;Confirm&#8217; button present in the bottom of this page. Then you will proceed to &#8216;<strong>Global security parameters</strong>&#8216; tab. Check if the settings in your page is similar to the image below.</p>
<p><a href="https://lh3.googleusercontent.com/-TvpTi9N4_Is/TmijyDgO2JI/AAAAAAAAAA8/RECT3KY_-24/s912/5%252520global%252520security%252520parameters.png" rel="nofollow" target="_blank"><br />
	<img width="580px" alt="global security parameters" src="https://lh3.googleusercontent.com/-TvpTi9N4_Is/TmijyDgO2JI/AAAAAAAAAA8/RECT3KY_-24/s912/5%252520global%252520security%252520parameters.png"><br />
</a></p>
<p style="text-align:center">Click on the image to view full size.</p>
<p>Click the &#8216;Confirm&#8217; button present in the bottom of this page. Then you will proceed to &#8216;<strong>Payment Page Layout</strong>&#8216; tab. Check if the settings in your page is similar to the image below. You must put your website URL instead of example.com.</p>
<p><strong>Note that your URL might also contain &#8216;www&#8217; in the beginning like http://www.your-site.com</strong></p>
<p><a href="https://lh6.googleusercontent.com/-hTY90RjG44Q/TmijyYzgEVI/AAAAAAAAABA/s8m8ph46PCY/s912/6%252520payment%252520page%252520layout.png" rel="nofollow" target="_blank"><br />
	<img width="580px" alt="payment page layout" src="https://lh6.googleusercontent.com/-hTY90RjG44Q/TmijyYzgEVI/AAAAAAAAABA/s8m8ph46PCY/s912/6%252520payment%252520page%252520layout.png"><br />
</a></p>
<p style="text-align:center">Click on the image to view full size.</p>
<p>Click the &#8216;Confirm&#8217; button present in the bottom of this page. Then you will proceed to &#8216;<strong>Data and origin verification</strong>&#8216; tab. Check if the settings in your page is similar to the image below.</p>
<p>Put your website URL instead of example.com. </p>
<p>SHA-IN Pass phrase should be 16 character long consisting alpha-numeric characters. For example: 123456789@abcdef</p>
<p><a href="https://lh6.googleusercontent.com/-I2P3C1D_Wlg/TmijytK_1NI/AAAAAAAAABE/S0X0BLgP074/s912/7%252520data%252520and%252520origin%252520verification.png" rel="nofollow" target="_blank"><br />
	<img width="580px" alt="data and origin verification" src="https://lh6.googleusercontent.com/-I2P3C1D_Wlg/TmijytK_1NI/AAAAAAAAABE/S0X0BLgP074/s912/7%252520data%252520and%252520origin%252520verification.png"><br />
</a></p>
<p style="text-align:center">Click on the image to view full size.</p>
<p>Click the &#8216;Confirm&#8217; button present in the bottom of this page. Then you will proceed to &#8216;<strong>Transaction Feedback</strong>&#8216; tab. Check if the settings in your page is similar to the image below.</p>
<p><strong>SHA-OUT Pass phrase</strong> should be 16 character long consisting alpha-numeric characters. It should be different from <strong>SHI-IN Pass phrase</strong>. For example: 123456789#abcdef</p>
<p><a href="https://lh4.googleusercontent.com/-h8_vc3-zTO0/TmijzHfr1jI/AAAAAAAAABI/bElk-xrlVao/s912/8%252520transaction%252520feedback.png" rel="nofollow" target="_blank"><br />
	<img width="580px" alt="transaction feedback 1" src="https://lh4.googleusercontent.com/-h8_vc3-zTO0/TmijzHfr1jI/AAAAAAAAABI/bElk-xrlVao/s912/8%252520transaction%252520feedback.png"><br />
</a></p>
<p style="text-align:center">Click on the image to view full size.</p>
<p><a href="https://lh4.googleusercontent.com/-haml_PnqiCU/Tmijzoq962I/AAAAAAAAABM/nkECKegcvPo/s912/9%252520transaction%252520feedback.png" rel="nofollow" target="_blank"><br />
	<img width="580px" alt="transaction feedback 2" src="https://lh4.googleusercontent.com/-haml_PnqiCU/Tmijzoq962I/AAAAAAAAABM/nkECKegcvPo/s912/9%252520transaction%252520feedback.png"><br />
</a></p>
<p style="text-align:center">Click on the image to view full size.</p>
<p><a href="https://lh5.googleusercontent.com/--OociE51xJs/Tmij0H7o0UI/AAAAAAAAABQ/xe3o-Sck-8k/s912/10%252520transaction%252520feedback.png" rel="nofollow" target="_blank"><br />
	<img width="580px" alt="transaction feedback 3" src="https://lh5.googleusercontent.com/--OociE51xJs/Tmij0H7o0UI/AAAAAAAAABQ/xe3o-Sck-8k/s912/10%252520transaction%252520feedback.png"><br />
</a></p>
<p style="text-align:center">Click on the image to view full size.</p>
<p>Click the &#8216;Confirm&#8217; button present in the bottom of this page. Then you will proceed to &#8216;<strong>Transaction e-mails</strong>&#8216; tab. Check if the settings in your page is similar to the image below.</p>
<p><a href="https://lh6.googleusercontent.com/-LtUfGvJSinA/Tmij0mEjFQI/AAAAAAAAABU/aU6yy0xbsmE/s912/11%252520transaction%252520emails.png" rel="nofollow" target="_blank"><br />
	<img width="580px" alt="transaction emails" src="https://lh6.googleusercontent.com/-LtUfGvJSinA/Tmij0mEjFQI/AAAAAAAAABU/aU6yy0xbsmE/s912/11%252520transaction%252520emails.png"><br />
</a></p>
<p style="text-align:center">Click on the image to view full size.</p>
<p>Click the &#8216;Confirm&#8217; button present in the bottom of this page. Then you will proceed to &#8216;<strong>Test Info</strong>&#8216; tab. Check if the settings in your page is similar to the image below.</p>
<p><a href="https://lh6.googleusercontent.com/-m9QgQJ6pWE4/Tmij1KrB96I/AAAAAAAAABY/ZFn4ZTrqZQo/s912/12%252520test%252520info.png" rel="nofollow" target="_blank"><br />
	<img width="580px" alt="test info" src="https://lh6.googleusercontent.com/-m9QgQJ6pWE4/Tmij1KrB96I/AAAAAAAAABY/ZFn4ZTrqZQo/s912/12%252520test%252520info.png"><br />
</a></p>
<p style="text-align:center">Click on the image to view full size.</p>
<h3>Making necessary settings in Magento Admin</h3>
<p>After completing the settings task in Ogone, we need to make changes in the Ogone payment module settings in <strong>Magento admin</strong>.</p>
<p>Go to: <strong>System -> Configuration -> Payment Methods -> Ogone</strong></p>
<p><strong>myPSPID </strong>should be your <strong>PSPID </strong>that you entered while registering in Ogone.</p>
<p><strong>SHA1-IN</strong> and <strong>SHA1-OUT</strong>  Signature should be the one which you entered in SHA-IN and SHA-OUT Pass phrase in Ogone settings.</p>
<p>You can adjust the <strong>Gateway URL</strong> for test account and production account.</p>
<p><strong>Test account Gateway URL</strong>: https://secure.ogone.com/ncol/test/orderstandard.asp<br />
<strong>Production account Gateway URL</strong>: https://secure.ogone.com/ncol/prod/orderstandard.asp </p>
<p><a href="https://lh6.googleusercontent.com/-2ezD1sQM-RQ/Tmijvxw-owI/AAAAAAAAAAw/nGf9xcOspnw/13%252520magento%252520admin.png" rel="nofollow" target="_blank"><br />
	<img width="580px" alt="magento admin" src="https://lh6.googleusercontent.com/-2ezD1sQM-RQ/Tmijvxw-owI/AAAAAAAAAAw/nGf9xcOspnw/13%252520magento%252520admin.png"><br />
</a> </p>
<p style="text-align:center">Click on the image to view full size.</p>
<p>Finally, Ogone configuration is completed and now you can use fully functional Ogone Payment method in your Magento shop.</p>
<p>Hope it helps. Thanks.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=1484&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-payment-method-not-displayed-in-multiple-shipping-adresses-checkout/' rel='bookmark' title='Permanent Link: Magento: Payment method not displayed in Multiple Shipping Adresses Checkout'>Magento: Payment method not displayed in Multiple Shipping Adresses Checkout</a></li>
<li><a href='http://blog.chapagain.com.np/ubuntu-linux-how-to-install-and-setup-xdebug-in-php-eclipse-images/' rel='bookmark' title='Permanent Link: Ubuntu Linux: How to install and setup XDebug in PHP Eclipse? [IMAGES]'>Ubuntu Linux: How to install and setup XDebug in PHP Eclipse? [IMAGES]</a></li>
<li><a href='http://blog.chapagain.com.np/magento-different-shipping-rate-for-different-country-and-region/' rel='bookmark' title='Permanent Link: Magento: Different shipping rate for different country and region'>Magento: Different shipping rate for different country and region</a></li>
<li><a href='http://blog.chapagain.com.np/magento-authorize-net-not-displayed-in-payment-information-section-while-checkout/' rel='bookmark' title='Permanent Link: Magento: Authorize.net not displayed in Payment Information section while Checkout'>Magento: Authorize.net not displayed in Payment Information section while Checkout</a></li>
<li><a href='http://blog.chapagain.com.np/magento-paypal-website-payments-standard-not-displayed/' rel='bookmark' title='Permanent Link: Magento: PayPal Website Payments Standard not displayed'>Magento: PayPal Website Payments Standard not displayed</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-how-to-setup-ogone-payment-method-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento: Reindex Data Programmatically</title>
		<link>http://blog.chapagain.com.np/magento-reindex-data-programmatically/</link>
		<comments>http://blog.chapagain.com.np/magento-reindex-data-programmatically/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 01:58:13 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[index management]]></category>
		<category><![CDATA[reindex data]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=1425</guid>
		<description><![CDATA[This article shows how to reindex Magento Data Programmatically (through code). You can manually reindex data from System -> Index Management. However, this article is concerned how this can be done through code/programming. Currently, there are 9 indexes. They are as under (with their respective key number):- 1. Product Attributes 2. Product Prices 3. Catalog [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-describing-flat-catalog/' rel='bookmark' title='Permanent Link: Magento: Describing Flat Catalog'>Magento: Describing Flat Catalog</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-get-all-associated-children-product-of-a-configurable-product/' rel='bookmark' title='Permanent Link: Magento: How to get all associated children product of a configurable product?'>Magento: How to get all associated children product of a configurable product?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-1-4-no-products-displayed-in-category-listing/' rel='bookmark' title='Permanent Link: Magento 1.4: No products displayed in category listing'>Magento 1.4: No products displayed in category listing</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-sub-categories-and-product-count/' rel='bookmark' title='Permanent Link: Magento: Get sub categories and product count'>Magento: Get sub categories and product count</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-category-name-and-url-from-product/' rel='bookmark' title='Permanent Link: Magento: Get category name and url from product'>Magento: Get category name and url from product</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This article shows how to reindex Magento Data Programmatically (through code).</p>
<p>You can manually reindex data from <strong>System -> Index Management</strong>. However, this article is concerned how this can be done through code/programming.</p>
<p>Currently, there are 9 indexes. They are as under (with their respective key number):-</p>
<p><span id="more-1425"></span></p>
<p>1. Product Attributes<br />
2. Product Prices<br />
3. Catalog URL Rewrites<br />
4. Product Flat Data<br />
5. Category Flat Data<br />
6. Category Products<br />
7. Catalog Search index<br />
8. Tag Aggregation Data<br />
9. Stock Status </p>
<p>So, if you want to reindex &#8220;Category Products&#8221; only then you can do as follows:-</p>
<pre class="brush: php; title: ; notranslate">
$process = Mage::getModel('index/process')-&gt;load(6);
$process-&gt;reindexAll();
</pre>
<p>If you want to reindex all data then you can loop through these indices and then reindex them:-</p>
<pre class="brush: php; title: ; notranslate">
for ($i = 1; $i &lt;= 9; $i++) {
    $process = Mage::getModel('index/process')-&gt;load($i);
    $process-&gt;reindexAll();
}
</pre>
<p>Hope this helps. Thanks.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=1425&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-describing-flat-catalog/' rel='bookmark' title='Permanent Link: Magento: Describing Flat Catalog'>Magento: Describing Flat Catalog</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-get-all-associated-children-product-of-a-configurable-product/' rel='bookmark' title='Permanent Link: Magento: How to get all associated children product of a configurable product?'>Magento: How to get all associated children product of a configurable product?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-1-4-no-products-displayed-in-category-listing/' rel='bookmark' title='Permanent Link: Magento 1.4: No products displayed in category listing'>Magento 1.4: No products displayed in category listing</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-sub-categories-and-product-count/' rel='bookmark' title='Permanent Link: Magento: Get sub categories and product count'>Magento: Get sub categories and product count</a></li>
<li><a href='http://blog.chapagain.com.np/magento-get-category-name-and-url-from-product/' rel='bookmark' title='Permanent Link: Magento: Get category name and url from product'>Magento: Get category name and url from product</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-reindex-data-programmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento: Create CMS Page &amp; Static Block programmatically</title>
		<link>http://blog.chapagain.com.np/magento-create-cms-page-static-block-programmatically/</link>
		<comments>http://blog.chapagain.com.np/magento-create-cms-page-static-block-programmatically/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 12:33:57 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[cms pages]]></category>
		<category><![CDATA[static blocks]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=1407</guid>
		<description><![CDATA[You can manually create CMS Pages in Magento from CMS -> Pages. Similarly, you can create Static Blocks from CMS -> Static Blocks. This article will show how to create CMS pages and Static blocks programmatically from code. Create CMS Page Create Static Block Please note the following line of code above. This is necessary [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-how-to-call-static-block-from-template-file/' rel='bookmark' title='Permanent Link: Magento: How to call static block from template file?'>Magento: How to call static block from template file?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-product-edit-warning-invalid-argument-supplied-for-foreach/' rel='bookmark' title='Permanent Link: Magento: Product Edit Warning: Invalid argument supplied for foreach()'>Magento: Product Edit Warning: Invalid argument supplied for foreach()</a></li>
<li><a href='http://blog.chapagain.com.np/magento-quick-way-to-create-order-invoice-programmatically/' rel='bookmark' title='Permanent Link: Magento: Quick way to create order invoice programmatically'>Magento: Quick way to create order invoice programmatically</a></li>
<li><a href='http://blog.chapagain.com.np/magento-create-catalog-price-rule-programmatically/' rel='bookmark' title='Permanent Link: Magento: Create Catalog Price Rule Programmatically'>Magento: Create Catalog Price Rule Programmatically</a></li>
<li><a href='http://blog.chapagain.com.np/magento-create-shopping-cart-price-rule-programmatically/' rel='bookmark' title='Permanent Link: Magento: Create Shopping Cart Price Rule Programmatically'>Magento: Create Shopping Cart Price Rule Programmatically</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>You can manually create CMS Pages in Magento from <strong>CMS -> Pages</strong>. Similarly, you can create Static Blocks from <strong>CMS -> Static Blocks</strong>.</p>
<p>This article will show how to create CMS pages and Static blocks programmatically from code.</p>
<p><span id="more-1407"></span></p>
<p><strong>Create CMS Page</strong></p>
<pre class="brush: php; title: ; notranslate">
Mage::app()-&gt;setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);

$cmsPage = array(
			'title' =&gt; 'Test Page',
			'identifier' =&gt; 'test-page',
			'content' =&gt; 'Sample Test Page',
			'is_active' =&gt; 1,
			'sort_order' =&gt; 0,
			'stores' =&gt; array(0),
			'root_template' =&gt; 'three_columns'
			);

Mage::getModel('cms/page')-&gt;setData($cmsPage)-&gt;save();
</pre>
<p><strong>Create Static Block</strong></p>
<pre class="brush: php; title: ; notranslate">
Mage::app()-&gt;setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);

$staticBlock = array(
				'title' =&gt; 'Test Block',
				'identifier' =&gt; 'test-block',
				'content' =&gt; 'Sample Test Block',
				'is_active' =&gt; 1,
				'stores' =&gt; array(0)
				);

Mage::getModel('cms/block')-&gt;setData($staticBlock)-&gt;save();
</pre>
<p>Please note the following line of code above. This is necessary when you are creating cms pages and static blocks from frontend.:-</p>
<pre class="brush: php; title: ; notranslate">
Mage::app()-&gt;setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
</pre>
<p>Hope this helps. Thanks.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=1407&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-how-to-call-static-block-from-template-file/' rel='bookmark' title='Permanent Link: Magento: How to call static block from template file?'>Magento: How to call static block from template file?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-product-edit-warning-invalid-argument-supplied-for-foreach/' rel='bookmark' title='Permanent Link: Magento: Product Edit Warning: Invalid argument supplied for foreach()'>Magento: Product Edit Warning: Invalid argument supplied for foreach()</a></li>
<li><a href='http://blog.chapagain.com.np/magento-quick-way-to-create-order-invoice-programmatically/' rel='bookmark' title='Permanent Link: Magento: Quick way to create order invoice programmatically'>Magento: Quick way to create order invoice programmatically</a></li>
<li><a href='http://blog.chapagain.com.np/magento-create-catalog-price-rule-programmatically/' rel='bookmark' title='Permanent Link: Magento: Create Catalog Price Rule Programmatically'>Magento: Create Catalog Price Rule Programmatically</a></li>
<li><a href='http://blog.chapagain.com.np/magento-create-shopping-cart-price-rule-programmatically/' rel='bookmark' title='Permanent Link: Magento: Create Shopping Cart Price Rule Programmatically'>Magento: Create Shopping Cart Price Rule Programmatically</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-create-cms-page-static-block-programmatically/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Magento: Redirect Customer to Login page if not logged in</title>
		<link>http://blog.chapagain.com.np/magento-redirect-customer-to-login-page-if-not-logged-in/</link>
		<comments>http://blog.chapagain.com.np/magento-redirect-customer-to-login-page-if-not-logged-in/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 02:40:25 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[customer]]></category>
		<category><![CDATA[login]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=1380</guid>
		<description><![CDATA[If you are developing a module which needs to give access to its content only to logged in user then the preDispatch function will be very useful. This dispatches event before action. Just write the following function in your module&#8217;s controller and customer log in is checked before each of your controller action. Hope this [...]


<strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-set-unset-session/' rel='bookmark' title='Permanent Link: Magento: Get Set Unset Session'>Magento: Get Set Unset Session</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-get-admin-user-id-name-username-email-etc/' rel='bookmark' title='Permanent Link: Magento: How to get admin user id, name, username, email, etc?'>Magento: How to get admin user id, name, username, email, etc?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-block-controller-model-helper-override/' rel='bookmark' title='Permanent Link: Magento: Block Controller Model Helper Override'>Magento: Block Controller Model Helper Override</a></li>
<li><a href='http://blog.chapagain.com.np/magento-solution-to-error-404-not-found-in-admin-login-page/' rel='bookmark' title='Permanent Link: Magento: Solution to &#8220;Error: 404 Not Found&#8221; in Admin Login Page'>Magento: Solution to &#8220;Error: 404 Not Found&#8221; in Admin Login Page</a></li>
<li><a href='http://blog.chapagain.com.np/magento-admin-login-problem/' rel='bookmark' title='Permanent Link: Magento Admin login problem'>Magento Admin login problem</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you are developing a module which needs to give access to its content only to logged in user then the <strong>preDispatch</strong> function will be very useful. This dispatches event before action.</p>
<p>Just write the following function in your module&#8217;s controller and customer log in is checked before each of your controller action.</p>
<p><span id="more-1380"></span></p>
<pre class="brush: php; title: ; notranslate">
/**
 * Checking if user is logged in or not
 * If not logged in then redirect to customer login
 */
public function preDispatch()
{
	parent::preDispatch();

	if (!Mage::getSingleton('customer/session')-&gt;authenticate($this)) {
		$this-&gt;setFlag('', 'no-dispatch', true);
	}
}
</pre>
<p>Hope this helps. Thanks.</p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small><img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=1380&type=feed" alt="" />

<p><strong>Related posts:</strong><ol><li><a href='http://blog.chapagain.com.np/magento-set-unset-session/' rel='bookmark' title='Permanent Link: Magento: Get Set Unset Session'>Magento: Get Set Unset Session</a></li>
<li><a href='http://blog.chapagain.com.np/magento-how-to-get-admin-user-id-name-username-email-etc/' rel='bookmark' title='Permanent Link: Magento: How to get admin user id, name, username, email, etc?'>Magento: How to get admin user id, name, username, email, etc?</a></li>
<li><a href='http://blog.chapagain.com.np/magento-block-controller-model-helper-override/' rel='bookmark' title='Permanent Link: Magento: Block Controller Model Helper Override'>Magento: Block Controller Model Helper Override</a></li>
<li><a href='http://blog.chapagain.com.np/magento-solution-to-error-404-not-found-in-admin-login-page/' rel='bookmark' title='Permanent Link: Magento: Solution to &#8220;Error: 404 Not Found&#8221; in Admin Login Page'>Magento: Solution to &#8220;Error: 404 Not Found&#8221; in Admin Login Page</a></li>
<li><a href='http://blog.chapagain.com.np/magento-admin-login-problem/' rel='bookmark' title='Permanent Link: Magento Admin login problem'>Magento Admin login problem</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-redirect-customer-to-login-page-if-not-logged-in/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
