<?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>Designer Sandbox &#187; Magento</title>
	<atom:link href="http://www.designersandbox.com/category/magento/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.designersandbox.com</link>
	<description>Online Tips for Web Developer/Designer</description>
	<lastBuildDate>Thu, 26 Jan 2012 09:33:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Installing Magento [version 1.4.2.0] on ICDSoft</title>
		<link>http://www.designersandbox.com/magento/installing-magento-version-1-4-2-0-on-icdsoft/</link>
		<comments>http://www.designersandbox.com/magento/installing-magento-version-1-4-2-0-on-icdsoft/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 05:59:54 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.designersandbox.com/?p=1428</guid>
		<description><![CDATA[You need to follow these steps to install Magento: 1. Download the installation files from the site of the vendor. Magento can be obtained from: http://www.magentocommerce.com/download Choose to download the full release of the software by selecting one of the archived packages from the drop-down menu next to &#8220;Full Release:&#8221; (magento-MagentoVersion.zip, magento-MagentoVersion.tar.gz, magento-MagentoVersion.tar.bz2) and click [...]]]></description>
			<content:encoded><![CDATA[<div id="post-refEl-1428"><p><a title="Web Hosting By ICDSoft.com" onclick="javascript:document.location='http://www.icdsoft.com?aff=vcspiritfruit.ICDSOFT';return false;" href="http://www.icdsoft.com"><img src="http://reseller.icdsoft.com/b/vcspiritfruit.ICDSOFT/icdsoft-300x250.gif" border="0" alt="Web Hosting By ICDSoft.com" width="300" height="250" style="float:left;" /></a>You need to follow these steps to install Magento:</p>
<p>1. Download the installation files from the site of the vendor. Magento can be obtained from:</p>
<p><a href="http://www.magentocommerce.com/download">http://www.magentocommerce.com/download</a></p>
<p>Choose to download the full release of the software by selecting one of the archived packages from the drop-down menu next to &#8220;<strong>Full Release:</strong>&#8221; (magento-MagentoVersion.zip, magento-MagentoVersion.tar.gz, magento-MagentoVersion.tar.bz2) and click on the &#8220;<strong>Download</strong>&#8221; button.</p>
<p>2. Once you have downloaded the archive that contains the installation, you need to upload it to your hosting space.</p>
<p>You can either extract all the files from the downloaded archive and upload them, or you can upload the archive and use the web hosting Control Panel&#8217;s File Manager to extract the package.</p>
<p>The best way to upload big files or multiple files is via FTP. If you are not sure how to upload the files, please visit <a href="http://www.suresupport.com/faq/17" target="_blank">this page</a>.</p>
<p>If you are installing the application in your main domain, or in a subdomain, you may need to delete the default <strong>index.php </strong>file first. You can do this either via FTP or through your web hosting Control Panel&#8217;s File Manager.</p>
<p>3. You need to create a MySQL database for the Magento application. You can do this through your web hosting Control Panel&#8217;s MySQL section. Be sure to create the database in MySQL 5 format.<br />
<span id="more-1428"></span></p>
<p>You also need to create a MySQL subuser for Magento. You can create it from the MySQL section of your Control Panel as well. Be sure to grant all privileges to the MySQL subuser.</p>
<p>4. To start the instillation wizard, open in your browser the URL where the extracted Magento files are located.</p>
<p>5. On the first step of the installation, you have to agree to the Magento license terms. Check the &#8220;<strong>I agree to the above terms and conditions.</strong>&#8221; box and click on &#8220;<strong>Continue</strong>&#8220;.</p>
<p>6. On the next step choose the preferred &#8220;<strong>Locale</strong>&#8220;, &#8220;<strong>Time zone</strong>&#8221; and &#8220;<strong>Default Currency</strong>&#8221; settings for your installation from the drop-down menus and click on &#8220;<strong>Continue</strong>&#8220;.</p>
<p>7. On the following page - <strong>Configuration </strong>- use the following settings:</p>
<p>•<strong> Database Connection</strong></p>
<p><strong>Host</strong>: /tmp/mysql5.sock<br />
<strong>Database Name</strong>: You need to specify the MySQL database you created for your Magento application.<br />
<strong>User Name</strong>: You need to enter the MySQL username you created at your web hosting Control Panel&#8217;s MySQL section for your Magento application.<br />
<strong>User Password</strong>: You need to enter the password you assigned to your MySQL user.<br />
<strong>Table Prefix</strong>: You do not need to modify this setting if you are installing Magento for the first time under this account.</p>
<p><img title="Magento Database Connection" src="https://www2.suresupport.com/faq_img/177-1231175629.png" alt="Magento Database Connection" width="695" height="288" /></p>
<p>• <strong>Web аccess оptions</strong></p>
<p><strong>Base URL</strong>: You can leave the default value if you are installing Magento to the same directory where you have extracted the installation files.<br />
<strong>Admin Path</strong>: Choose a directory name for the Magento administration interface.<br />
<strong>Enable Charts</strong> &#8211; Check this option.<br />
<strong>Skip Base URL validation before next step</strong> – You can leave this option un-checked.<br />
<strong>Use Web Server (Apache) Rewrites</strong> &#8211; mod_rewrite is installed on our servers, so you can check this option to enable search engine friendly URLs for your site.<br />
<strong>Use Secure URLs (SSL)</strong> – Check this option if you own a certificate for your domain and wish to use SSL. Enter the base URL for accessing your site via SSL (Secure Base URL). If you wish to use an encrypted connection for the administration interface as well, check the Run admin interface with SSL option.<br />
<strong>Skip Secure URL validation before next step</strong> &#8211; If the base URL for SSL connections is protected by a HTTP password, you have to check this option.</p>
<p><img title="Magento Web аccess оptions" src="https://www2.suresupport.com/faq_img/798-1292197717.png" alt="Magento Web аccess оptions" width="705" height="428" /></p>
<p>• <strong>Session storage options</strong></p>
<p>You can choose the location where the user session information is stored – as files on the hosting space (&#8220;<strong>File system</strong>&#8220;) or as entries in the database (&#8220;<strong>Database</strong>&#8220;).</p>
<p><img title="Magento Session storage options" src="https://www2.suresupport.com/faq_img/797-1292197717.png" alt="Magento Session storage options" width="713" height="117" /></p>
<p>Click on &#8220;<strong>Continue</strong>&#8220;.</p>
<p>8. On the next step &#8211; &#8220;<strong>Create Admin Account</strong>&#8221; &#8211; you have to create an administrative account.</p>
<p>• <strong>Personal Information</strong></p>
<p>Enter your names in the (&#8220;<strong>First Name</strong>&#8220;) and (&#8220;<strong>Last Name</strong>&#8220;) fields and an email address for the administrative account in the (&#8220;<strong>Email</strong>&#8220;) field.</p>
<p>• <strong>Login Information</strong></p>
<p>Enter a username (&#8220;<strong>Username</strong>&#8220;) and password (&#8220;<strong>Password</strong>&#8220;, &#8220;<strong>Confirm Password</strong>&#8220;) for the administrative account.</p>
<p>• <strong>Encryption Key</strong></p>
<p>If you wish you can enter a key for Magento to use for encrypting passwords, credit card numbers and other information. If you leave the field empty, the system will automatically generate a key which will be shown to you on the next step of the installation.</p>
<p>Click on &#8220;<strong>Continue</strong>&#8220;.</p>
<p>9. You are ready! &#8211; Magento was successfully installed. Write down the automatically generated key (if you have not entered your own one on the previous step) and store it in a safe place. For security reasons, we do not recommend to store it in a file on your hosting space.</p>
<p><strong>10. O</strong><strong>pen the file <strong>/lib/Zend/Cache/Backend/File.php</strong> using the File Manager of the online Control Panel and change</strong></p>
<pre class="brush: php;">
protected $_options = array(
'cache_dir' =&gt; null,
</pre>
<p>to</p>
<pre class="brush: php;">protected $_options = array(
'cache_dir' =&gt; '/tmp',
</pre>
<p><strong>11. </strong>Click on &#8220;<strong>Go To Frontend</strong>&#8221; to open the main page of your Magento online store, or click on &#8220;<strong>Go To Backend</strong>&#8221; to open the Magento administration interface.</p>
<p><strong>Important notice</strong>: You should monitor the site of the software vendor for any security updates of your installed application.</p>
<img src="http://www.designersandbox.com/?ak_action=api_record_view&id=1428&type=feed" alt="" /><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.designersandbox.com/magento/how-to-completely-disable-magento-module/" title="How to completely disable Magento module">How to completely disable Magento module</a> (1)</li><li><a href="http://www.designersandbox.com/magento/how-to-create-coupon-code-for-fixed-amount-discount/" title="How to create coupon code for fixed amount discount">How to create coupon code for fixed amount discount</a> (13)</li><li><a href="http://www.designersandbox.com/magento/magento-hide-the-price-for-a-free-product-using-jquery/" title="Magento &#8211; Hide the price for a free product using jQuery">Magento &#8211; Hide the price for a free product using jQuery</a> (6)</li><li><a href="http://www.designersandbox.com/magento/shortening-increment-id-length-for-orders-invoices-creditmemo-and-shipments/" title="Shortening Increment ID length for Orders, Invoices, Creditmemo and Shipments">Shortening Increment ID length for Orders, Invoices, Creditmemo and Shipments</a> (0)</li><li><a href="http://www.designersandbox.com/magento/how-to-get-attribute-option-label-in-magento-with-different-store-view/" title="How to get attribute option label in Magento with different store view">How to get attribute option label in Magento with different store view</a> (5)</li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.designersandbox.com/magento/installing-magento-version-1-4-2-0-on-icdsoft/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to completely disable Magento module</title>
		<link>http://www.designersandbox.com/magento/how-to-completely-disable-magento-module/</link>
		<comments>http://www.designersandbox.com/magento/how-to-completely-disable-magento-module/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 06:31:14 +0000</pubDate>
		<dc:creator>Michael Wai</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.designersandbox.com/?p=1383</guid>
		<description><![CDATA[Disable Magento module? Easy, in admin panel, click the menu “System” -> “Configuration” -> “Advanced” in “Advanced” Section, select “disable” for the module you would like to disable, and it’s finish, right? Sorry but … NO! If you disable the module in admin panel, it will only disable the module output, not the module functionalities. [...]]]></description>
			<content:encoded><![CDATA[<div id="post-refEl-1383"><p>Disable Magento module? Easy, in admin panel, click the menu “System” -> “Configuration” -> “Advanced” in “Advanced” Section, select “disable” for the module you would like to disable, and it’s finish, right?</p>
<p>Sorry but … NO! If you disable the module in admin panel, it will only disable the module output, not the module functionalities. The Observer, cornjob, setting in config.xml are still in use and running.<br />
<span id="more-1383"></span><br />
Then … how to disable the module completely? Well, it’s also easy, you only have to change the ‘active’ tag to false in module XML file storing in ‘/app/etc/modules/YourNameSpace_YourModuleName.xml’:</p>
<pre class="brush: xml;">
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;config&gt;
    &lt;modules&gt;
        &lt;YourNameSpace_YourModuleName&gt;
            &lt;active&gt;false&lt;/active&gt;
            &lt;codepool&gt;local&lt;/codepool&gt;
        &lt;/YourNameSpace_YourModuleName&gt;
    &lt;/modules&gt;
&lt;/config&gt;
</pre>
<p>or simply rename the file extension (eg. YourNameSpace_YourModuleName.xml_old); or delete this file which is not recommended.</p>
<p>Happy Magento’ing ~</p>
<img src="http://www.designersandbox.com/?ak_action=api_record_view&id=1383&type=feed" alt="" /><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.designersandbox.com/magento/installing-magento-version-1-4-2-0-on-icdsoft/" title="Installing Magento [version 1.4.2.0] on ICDSoft">Installing Magento [version 1.4.2.0] on ICDSoft</a> (4)</li><li><a href="http://www.designersandbox.com/magento/how-to-create-coupon-code-for-fixed-amount-discount/" title="How to create coupon code for fixed amount discount">How to create coupon code for fixed amount discount</a> (13)</li><li><a href="http://www.designersandbox.com/magento/magento-hide-the-price-for-a-free-product-using-jquery/" title="Magento &#8211; Hide the price for a free product using jQuery">Magento &#8211; Hide the price for a free product using jQuery</a> (6)</li><li><a href="http://www.designersandbox.com/magento/shortening-increment-id-length-for-orders-invoices-creditmemo-and-shipments/" title="Shortening Increment ID length for Orders, Invoices, Creditmemo and Shipments">Shortening Increment ID length for Orders, Invoices, Creditmemo and Shipments</a> (0)</li><li><a href="http://www.designersandbox.com/magento/how-to-get-attribute-option-label-in-magento-with-different-store-view/" title="How to get attribute option label in Magento with different store view">How to get attribute option label in Magento with different store view</a> (5)</li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.designersandbox.com/magento/how-to-completely-disable-magento-module/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to create coupon code for fixed amount discount</title>
		<link>http://www.designersandbox.com/magento/how-to-create-coupon-code-for-fixed-amount-discount/</link>
		<comments>http://www.designersandbox.com/magento/how-to-create-coupon-code-for-fixed-amount-discount/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 07:55:25 +0000</pubDate>
		<dc:creator>Michael Wai</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.designersandbox.com/?p=1384</guid>
		<description><![CDATA[In your selling period, sometimes you would like to make offer for promotion or festival. Here I will show you how to create a coupon code between a specific period for all products and customers with unlimited usage. In admin panel, click the menu “Promotions” -&#62; “Shopping Cart Price Rules”, then the list for all [...]]]></description>
			<content:encoded><![CDATA[<div id="post-refEl-1384"><p>In your selling period, sometimes you would like to make offer for  promotion or festival. Here I will show you how to create a coupon code  between a specific period for all products and customers with unlimited  usage.</p>
<p>In admin panel, click the menu “Promotions” -&gt; “Shopping Cart  Price Rules”, then the list for all coupon codes for all websites are  shown. Clicking “Add New Rule” button on right hand side and input the  following:<br />
<span id="more-1384"></span></p>
<ul>
<li>in “Rule Information” Section:
<ul>
<li>Rule Name: the name of the discount.</li>
<li>Description: description of this coupon code, will not show to customer.</li>
<li>Status: always set to “active” if you want this coupon to be used.</li>
<li>Websites: only select the store this coupon code will be available.</li>
<li>Customer Groups: select all of them by Ctrl + mouse left button.</li>
<li>Coupon: select “Specifc Coupon”, and the “Coupon Code” input box will be shown. Please enter the coupon code in that box.</li>
</ul>
</li>
<li>in “Action” Section:
<ul>
<li>Apply: select “Fixed amount discount”</li>
<li>Discount Amount: input the fixed discount amount</li>
<li>in “Labels” Section:</li>
<li>In Default Label:</li>
<li>Default Rule Label for All Store Views: Please input the wordings that you want to display in the all documents, shopping cart.</li>
</ul>
</li>
</ul>
<p>After all input finished, click “Save Rule”. This coupon code is  available to use. You can check it by adding a product to shopping cart  and enter the coupon code.</p>
<p>Happy Magento’ing ~</p>
<img src="http://www.designersandbox.com/?ak_action=api_record_view&id=1384&type=feed" alt="" /><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.designersandbox.com/magento/installing-magento-version-1-4-2-0-on-icdsoft/" title="Installing Magento [version 1.4.2.0] on ICDSoft">Installing Magento [version 1.4.2.0] on ICDSoft</a> (4)</li><li><a href="http://www.designersandbox.com/magento/how-to-completely-disable-magento-module/" title="How to completely disable Magento module">How to completely disable Magento module</a> (1)</li><li><a href="http://www.designersandbox.com/magento/magento-hide-the-price-for-a-free-product-using-jquery/" title="Magento &#8211; Hide the price for a free product using jQuery">Magento &#8211; Hide the price for a free product using jQuery</a> (6)</li><li><a href="http://www.designersandbox.com/magento/shortening-increment-id-length-for-orders-invoices-creditmemo-and-shipments/" title="Shortening Increment ID length for Orders, Invoices, Creditmemo and Shipments">Shortening Increment ID length for Orders, Invoices, Creditmemo and Shipments</a> (0)</li><li><a href="http://www.designersandbox.com/magento/how-to-get-attribute-option-label-in-magento-with-different-store-view/" title="How to get attribute option label in Magento with different store view">How to get attribute option label in Magento with different store view</a> (5)</li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.designersandbox.com/magento/how-to-create-coupon-code-for-fixed-amount-discount/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Hide the price for a free product using jQuery</title>
		<link>http://www.designersandbox.com/magento/magento-hide-the-price-for-a-free-product-using-jquery/</link>
		<comments>http://www.designersandbox.com/magento/magento-hide-the-price-for-a-free-product-using-jquery/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 14:04:39 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.designersandbox.com/?p=1370</guid>
		<description><![CDATA[In the new version it was moved to the /catalog/product/view/type files. There is a separate file for each product type. Inside those file the line: getPriceHtml($_product) ?> is responsible for outputting the price. But better yet, this tutorial I will show you how to write a simple jQuery script to change all &#8220;$0.00&#8243; to &#8220;FREE&#8221; [...]]]></description>
			<content:encoded><![CDATA[<div id="post-refEl-1370"><p>In the new version it was moved to the /catalog/product/view/type files. There is a separate file for each product type. Inside those file the line: getPriceHtml($_product) ?> is responsible for outputting the price.</p>
<p>But better yet, this tutorial I will show you how to write a simple jQuery script to change all &#8220;$0.00&#8243; to &#8220;FREE&#8221;</p>
<p>First create a new javascript file and name it ds.js and insert the following code as follow.</p>
<pre class="brush: jscript;">
jQuery(document).ready(function() {
	jQuery(&quot;span&quot;).each(function(i, e) {
		if ( (jQuery(e).attr('class') == &quot;price&quot;) &amp;&amp; (jQuery(e).text() == &quot;$0.00&quot;) ) {
			jQuery(e).text(&quot;FREE&quot;);
		}
	})
})
</pre>
<p>Now create a folder name called js within your folder and save the following file under it. skin/frontend/default/YOURTHEME/js/ds.js</p>
<p>Simply open your page.xml which located<br />
app/design/frontend/default/YOURTHEME/layout/page.xml<br />
and add the following line </p>
<pre class="brush: xml;">
&lt;action method=&quot;addItem&quot;&gt;&lt;type&gt;skin_js&lt;/type&gt;&lt;name&gt;js/ds.js&lt;/name&gt;&lt;/action&gt;
</pre>
<p>Be sure that your magento site had jQuery enable.</p>
<img src="http://www.designersandbox.com/?ak_action=api_record_view&id=1370&type=feed" alt="" /><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.designersandbox.com/magento/installing-magento-version-1-4-2-0-on-icdsoft/" title="Installing Magento [version 1.4.2.0] on ICDSoft">Installing Magento [version 1.4.2.0] on ICDSoft</a> (4)</li><li><a href="http://www.designersandbox.com/magento/how-to-completely-disable-magento-module/" title="How to completely disable Magento module">How to completely disable Magento module</a> (1)</li><li><a href="http://www.designersandbox.com/magento/how-to-create-coupon-code-for-fixed-amount-discount/" title="How to create coupon code for fixed amount discount">How to create coupon code for fixed amount discount</a> (13)</li><li><a href="http://www.designersandbox.com/magento/shortening-increment-id-length-for-orders-invoices-creditmemo-and-shipments/" title="Shortening Increment ID length for Orders, Invoices, Creditmemo and Shipments">Shortening Increment ID length for Orders, Invoices, Creditmemo and Shipments</a> (0)</li><li><a href="http://www.designersandbox.com/magento/how-to-get-attribute-option-label-in-magento-with-different-store-view/" title="How to get attribute option label in Magento with different store view">How to get attribute option label in Magento with different store view</a> (5)</li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.designersandbox.com/magento/magento-hide-the-price-for-a-free-product-using-jquery/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Magento Fixed &#8211; Description not showing, Change on your old template to work with 1.4.1.1</title>
		<link>http://www.designersandbox.com/magento/magento-fixed-description-not-showing-change-on-your-old-template-to-work-with-1-4-1-1/</link>
		<comments>http://www.designersandbox.com/magento/magento-fixed-description-not-showing-change-on-your-old-template-to-work-with-1-4-1-1/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 04:19:29 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.designersandbox.com/?p=1359</guid>
		<description><![CDATA[After the new updates to magento, if your template description field suddenly disappear from the frontend, don&#8217;t panic. It&#8217;s just a simple line of code change will fix this problem. Open catalog.xml and view.phtml, and you will need to make the following change. This is the code that magento had changed. Old line of code, [...]]]></description>
			<content:encoded><![CDATA[<div id="post-refEl-1359"><p>After the new updates to magento, if your template description field suddenly disappear from the frontend, don&#8217;t panic. It&#8217;s just a simple line of code change will fix this problem. Open catalog.xml and view.phtml, and you will need to make the following change.</p>
<p>This is the code that magento had changed.<br />
Old line of code, this code can be find under this location,<br />
app/design/frontend/default/YOURTHEME/template/catalog/product/view.phtml or<br />
app/design/frontend/base/default/template/catalog/product/view.phtml</p>
<pre class="brush: php;">
&lt;?php echo $this-&gt;getChildHtml('description') ?&gt;
</pre>
<p>New implementation from magento core for 1.4.1.1</p>
<pre class="brush: php;">
&lt;?php foreach ($this-&gt;getChildGroup('detailed_info', 'getChildHtml') as $alias =&gt; $html):?&gt;
    &lt;div class=&quot;box-collateral &lt;?php echo &quot;box-{$alias}&quot;?&gt;&quot;&gt;
        &lt;?php if ($title = $this-&gt;getChildData($alias, 'title')):?&gt;
        &lt;h2&gt;&lt;?php echo $this-&gt;escapeHtml($title); ?&gt;&lt;/h2&gt;
        &lt;?php endif;?&gt;
        &lt;?php echo $html; ?&gt;
    &lt;/div&gt;
&lt;?php endforeach;?&gt;
</pre>
<p>So next you will need to look for the following code in your template file.<br />
<span id="more-1359"></span><br />
app/design/frontend/default/YOURTHEME/layout/catalog.xml<br />
Old Code look like this.</p>
<pre class="brush: php;">
&lt;block type=&quot;catalog/product_view_description&quot; name=&quot;product.description&quot; as=&quot;description&quot; template=&quot;catalog/product/view/description.phtml&quot;/&gt;
</pre>
<p>New updated code for ver 1.4.1.1</p>
<pre class="brush: php;">
&lt;block type=&quot;catalog/product_view_description&quot; name=&quot;product.description&quot; as=&quot;description&quot; template=&quot;catalog/product/view/description.phtml&quot;&gt;
	&lt;action method=&quot;addToParentGroup&quot;&gt;&lt;group&gt;detailed_info&lt;/group&gt;&lt;/action&gt;
&lt;/block&gt;
</pre>
<p>By changing to the updated code, you are now able to view the description again.</p>
<img src="http://www.designersandbox.com/?ak_action=api_record_view&id=1359&type=feed" alt="" /><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.designersandbox.com/magento/installing-magento-version-1-4-2-0-on-icdsoft/" title="Installing Magento [version 1.4.2.0] on ICDSoft">Installing Magento [version 1.4.2.0] on ICDSoft</a> (4)</li><li><a href="http://www.designersandbox.com/magento/how-to-completely-disable-magento-module/" title="How to completely disable Magento module">How to completely disable Magento module</a> (1)</li><li><a href="http://www.designersandbox.com/magento/how-to-create-coupon-code-for-fixed-amount-discount/" title="How to create coupon code for fixed amount discount">How to create coupon code for fixed amount discount</a> (13)</li><li><a href="http://www.designersandbox.com/magento/magento-hide-the-price-for-a-free-product-using-jquery/" title="Magento &#8211; Hide the price for a free product using jQuery">Magento &#8211; Hide the price for a free product using jQuery</a> (6)</li><li><a href="http://www.designersandbox.com/magento/shortening-increment-id-length-for-orders-invoices-creditmemo-and-shipments/" title="Shortening Increment ID length for Orders, Invoices, Creditmemo and Shipments">Shortening Increment ID length for Orders, Invoices, Creditmemo and Shipments</a> (0)</li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.designersandbox.com/magento/magento-fixed-description-not-showing-change-on-your-old-template-to-work-with-1-4-1-1/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Shortening Increment ID length for Orders, Invoices, Creditmemo and Shipments</title>
		<link>http://www.designersandbox.com/magento/shortening-increment-id-length-for-orders-invoices-creditmemo-and-shipments/</link>
		<comments>http://www.designersandbox.com/magento/shortening-increment-id-length-for-orders-invoices-creditmemo-and-shipments/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 03:52:50 +0000</pubDate>
		<dc:creator>Michael Wai</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.designersandbox.com/?p=1356</guid>
		<description><![CDATA[By default, Magento use 8 digits for Orders, Invoices, Creditmemo and Shipments’ increment ID. However, sometime you would like to change the length to meet 3rd party’s system requirement. This can be easily accomplished by: modify the field “increment_pad_length” in the “eav_entity_type” table for whatever entity you’re wanting to modify. modify the field “increment_last_id” in [...]]]></description>
			<content:encoded><![CDATA[<div id="post-refEl-1356"><p>By default, Magento use 8 digits for Orders, Invoices, Creditmemo and Shipments’ increment ID. However, sometime you would like to change the length to meet 3rd party’s system requirement. This can be easily accomplished by:</p>
<ul>
<li>modify the field “increment_pad_length” in the “eav_entity_type” table for whatever entity you’re wanting to modify.</li>
<li>modify the field “increment_last_id” in “eav_entity_store” table with the same “entity_type_id” in table “eav_entity_type” which the document type’s increment ID you would like to change. Remember to change all existing records for this “entity_type_id”.</li>
</ul>
<p>After you changed them, the coming new document will use the new increment ID.</p>
<p>Happy Magento’ing ~</p>
<img src="http://www.designersandbox.com/?ak_action=api_record_view&id=1356&type=feed" alt="" /><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.designersandbox.com/magento/installing-magento-version-1-4-2-0-on-icdsoft/" title="Installing Magento [version 1.4.2.0] on ICDSoft">Installing Magento [version 1.4.2.0] on ICDSoft</a> (4)</li><li><a href="http://www.designersandbox.com/magento/how-to-completely-disable-magento-module/" title="How to completely disable Magento module">How to completely disable Magento module</a> (1)</li><li><a href="http://www.designersandbox.com/magento/how-to-create-coupon-code-for-fixed-amount-discount/" title="How to create coupon code for fixed amount discount">How to create coupon code for fixed amount discount</a> (13)</li><li><a href="http://www.designersandbox.com/magento/magento-hide-the-price-for-a-free-product-using-jquery/" title="Magento &#8211; Hide the price for a free product using jQuery">Magento &#8211; Hide the price for a free product using jQuery</a> (6)</li><li><a href="http://www.designersandbox.com/magento/how-to-get-attribute-option-label-in-magento-with-different-store-view/" title="How to get attribute option label in Magento with different store view">How to get attribute option label in Magento with different store view</a> (5)</li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.designersandbox.com/magento/shortening-increment-id-length-for-orders-invoices-creditmemo-and-shipments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get attribute option label in Magento with different store view</title>
		<link>http://www.designersandbox.com/magento/how-to-get-attribute-option-label-in-magento-with-different-store-view/</link>
		<comments>http://www.designersandbox.com/magento/how-to-get-attribute-option-label-in-magento-with-different-store-view/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 03:37:23 +0000</pubDate>
		<dc:creator>Michael Wai</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.designersandbox.com/?p=1354</guid>
		<description><![CDATA[In Magento customization, sometimes you may want to get the value of attribute’s option. In below example I will show you how to do it. Assuming that there is an attribute named “dropdown_field” and contains 4 options label: “Option 1″, “Option 2″, “Option 3″, “Option 4″. The codes below get the option label which is [...]]]></description>
			<content:encoded><![CDATA[<div id="post-refEl-1354"><p>In Magento customization, sometimes you may want to get the value of attribute’s option. In below example I will show you how to do it.</p>
<p>Assuming that there is an attribute named “dropdown_field” and contains 4 options label: “Option 1″, “Option 2″, “Option 3″, “Option 4″. The codes below get the option label which is set in product:</p>
<pre class="brush: php;">
// get product Model
$_product = Mage::getModel('catalog/product');

// get the attribute object
$dropdownAttributeObj = $_product-&gt;getResource()-&gt;getAttribute(&quot;dropdown_field&quot;);

// if input type for this attribute is dropdown or multi-select
if ($dropdownAttributeObj-&gt;usesSource()) {
      // get the option label
      $dropdown_option_label = $dropdownAttributeObj-&gt;getSource()-&gt;getOptionText($_product-&gt;getData('dropdown_field'));
}
</pre>
<p>How about multiple websites / store / store view? No worry, it’s automatically get the correct label for you; or you can use $this->__() translation method in your template files.</p>
<p>Happy Magento’ing ~</p>
<img src="http://www.designersandbox.com/?ak_action=api_record_view&id=1354&type=feed" alt="" /><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.designersandbox.com/magento/installing-magento-version-1-4-2-0-on-icdsoft/" title="Installing Magento [version 1.4.2.0] on ICDSoft">Installing Magento [version 1.4.2.0] on ICDSoft</a> (4)</li><li><a href="http://www.designersandbox.com/magento/how-to-completely-disable-magento-module/" title="How to completely disable Magento module">How to completely disable Magento module</a> (1)</li><li><a href="http://www.designersandbox.com/magento/how-to-create-coupon-code-for-fixed-amount-discount/" title="How to create coupon code for fixed amount discount">How to create coupon code for fixed amount discount</a> (13)</li><li><a href="http://www.designersandbox.com/magento/magento-hide-the-price-for-a-free-product-using-jquery/" title="Magento &#8211; Hide the price for a free product using jQuery">Magento &#8211; Hide the price for a free product using jQuery</a> (6)</li><li><a href="http://www.designersandbox.com/magento/shortening-increment-id-length-for-orders-invoices-creditmemo-and-shipments/" title="Shortening Increment ID length for Orders, Invoices, Creditmemo and Shipments">Shortening Increment ID length for Orders, Invoices, Creditmemo and Shipments</a> (0)</li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.designersandbox.com/magento/how-to-get-attribute-option-label-in-magento-with-different-store-view/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Delete all orders, reset bestseller and most viewed products in Magento</title>
		<link>http://www.designersandbox.com/magento/delete-all-orders-reset-bestseller-and-most-viewed-products-in-magento/</link>
		<comments>http://www.designersandbox.com/magento/delete-all-orders-reset-bestseller-and-most-viewed-products-in-magento/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 01:48:34 +0000</pubDate>
		<dc:creator>Michael Wai</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.designersandbox.com/?p=1349</guid>
		<description><![CDATA[In your Magento development period, you may create many order to test the checkout process. Before the website launch, you should find that there is no “delete” action for orders. What? Is it crazy? Unfortunately, it’s really crazy (maybe) that you cannot delete order in Magento by default. Like me, there are over hundred orders [...]]]></description>
			<content:encoded><![CDATA[<div id="post-refEl-1349"><p>In your Magento development period, you may create many order to test the checkout process. Before the website launch, you should find that there is no “delete” action for orders. What? Is it crazy?</p>
<p>Unfortunately, it’s really crazy (maybe) that you cannot delete order in Magento by default. Like me, there are over hundred orders leave in backend which make our sales confused. In this case, you can execute following SQL statements to delete the ALL orders in MySQL database:</p>
<pre class="brush: sql;">
TRUNCATE TABLE {prefix}sales_flat_order;
TRUNCATE TABLE {prefix}sales_order_tax;
TRUNCATE TABLE {prefix}downloadable_link_purchased;
DELETE FROM {prefix}eav_entity_store WHERE entity_type_id IN (SELECT entity_type_id FROM {prefix}eav_entity_type WHERE entity_type_code IN ('order', 'invoice', 'creditmemo', 'shipment'));
</pre>
<p>Then go to backend, then Reports > Refresh Statistics, select all items and run Refresh Lifetime Statistics.</p>
<p>But wait, most viewed products and bestseller haven’t reset yet. How?</p>
<p>Fine, here is the SQL statement to reset the most viewed products report:</p>
<pre class="brush: sql;">
DELETE FROM {prefix}report_event WHERE event_type_id IN (SELECT event_type_id FROM {prefix}report_event_types WHERE event_name IN ('catalog_product_view'));
</pre>
<p>If you need to delete other reports, you can add the following types to the previous SQL construction in last WHERE statement: ‘sendfriend_product’, ‘catalog_product_compare_add_product’, ‘checkout_cart_add_product’, ‘wishlist_add_product’, ‘wishlist_share’. These types are easily to find in {prefix}report_event_types table.</p>
<p>To truncate Bestsellers you will need to truncate the table ‘sales_bestsellers_aggregated_daily’, ‘sales_bestsellers_aggregated_monthly’ and ‘sales_bestsellers_aggregated_yearly’. Here are the SQL statements to truncate them:</p>
<pre class="brush: sql;">
TRUNCATE TABLE {prefix}sales_bestsellers_aggregated_daily;
TRUNCATE TABLE {prefix}sales_bestsellers_aggregated_monthly;
TRUNCATE TABLE {prefix}sales_bestsellers_aggregated_yearly;
</pre>
<p>That is. It’s not easy job and you may have to get some basic SQL / MySQL knowledge. Of course, using <a href="http://www.phpmyadmin.net/" target="_blank">phpMyAdmin </a>is the better way.</p>
<p>Thanks for Magento Support for this help.</p>
<p>Happy Magento’ing ~</p>
<img src="http://www.designersandbox.com/?ak_action=api_record_view&id=1349&type=feed" alt="" /><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.designersandbox.com/magento/installing-magento-version-1-4-2-0-on-icdsoft/" title="Installing Magento [version 1.4.2.0] on ICDSoft">Installing Magento [version 1.4.2.0] on ICDSoft</a> (4)</li><li><a href="http://www.designersandbox.com/magento/how-to-completely-disable-magento-module/" title="How to completely disable Magento module">How to completely disable Magento module</a> (1)</li><li><a href="http://www.designersandbox.com/magento/how-to-create-coupon-code-for-fixed-amount-discount/" title="How to create coupon code for fixed amount discount">How to create coupon code for fixed amount discount</a> (13)</li><li><a href="http://www.designersandbox.com/magento/magento-hide-the-price-for-a-free-product-using-jquery/" title="Magento &#8211; Hide the price for a free product using jQuery">Magento &#8211; Hide the price for a free product using jQuery</a> (6)</li><li><a href="http://www.designersandbox.com/magento/shortening-increment-id-length-for-orders-invoices-creditmemo-and-shipments/" title="Shortening Increment ID length for Orders, Invoices, Creditmemo and Shipments">Shortening Increment ID length for Orders, Invoices, Creditmemo and Shipments</a> (0)</li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.designersandbox.com/magento/delete-all-orders-reset-bestseller-and-most-viewed-products-in-magento/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Adding external product link for all your products</title>
		<link>http://www.designersandbox.com/code/magento-adding-custom-product-link-for-all-your-products/</link>
		<comments>http://www.designersandbox.com/code/magento-adding-custom-product-link-for-all-your-products/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 06:32:45 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[attribute set]]></category>
		<category><![CDATA[templates]]></category>

		<guid isPermaLink="false">http://www.designersandbox.com/?p=1267</guid>
		<description><![CDATA[This tutorial is all about add an external link, either it is a Amazon product link, demo link, or any external link. This script is what you need for your magento. Within this page, you will find the step by step screenshot of creating your own attribute/set, and calling those attribute from your own template. [...]]]></description>
			<content:encoded><![CDATA[<div id="post-refEl-1267"><p><img class="alignnone size-full wp-image-1268" title="external_product_link" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link.png" alt="" width="470" height="64" /></p>
<p>This tutorial is all about add an external link, either it is a Amazon product link, demo link, or any external link. This script is what you need for your magento. Within this page, you will find the step by step screenshot of creating your own attribute/set, and calling those attribute from your own template.</p>
<p>First you will need to create all the attribute / attribute set for your products. Below is an example of creating an external product links.</p>
<p>Here&#8217;s something I had created for my template selling site.<span id="more-1267"></span></p>
<p><img class="alignnone size-full wp-image-1271" title="external_product_link_001" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_001.png" alt="" width="500" height="377" /></p>
<p>First select the Attribute from the menu, and click on Manage Attributes</p>
<p><img title="external_product_link_menu" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_menu.png" alt="" width="340" height="325" /></p>
<p>Click the Add New icon to create your Attribute. <img title="external_product_link_addnew" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_addnew.png" alt="" width="95" height="25" /></p>
<p><img class="alignnone size-full wp-image-1272" title="external_product_link_002" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_002.png" alt="" width="500" height="352" /></p>
<p>Now Save the attribute you had just created.<img title="external_product_link_save" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_save.png" alt="" width="128" height="30" /></p>
<p>Click the Add New icon to create your Attribute. <img title="external_product_link_addnew" src="../wp-content/uploads/2010/10/external_product_link_addnew.png" alt="" width="95" height="25" /></p>
<p><img class="alignnone size-full wp-image-1273" title="external_product_link_003" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_003.png" alt="" width="500" height="890" /></p>
<p>Now Save the attribute you had just created.<img title="external_product_link_save" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_save.png" alt="" width="128" height="30" /></p>
<p>Click the Add New icon to create your Attribute. <img title="external_product_link_addnew" src="../wp-content/uploads/2010/10/external_product_link_addnew.png" alt="" width="95" height="25" /></p>
<p><img class="alignnone size-full wp-image-1274" title="external_product_link_004" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_004.png" alt="" width="500" height="835" /><br />
Click on the Side tab &#8220;Manage Label/Options&#8221;<br />
<img class="alignnone size-full wp-image-1282" title="external_product_link_b" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_b.png" alt="" width="228" height="106" /></p>
<p>Then type the following.<br />
<img class="alignnone size-full wp-image-1289" title="external_product_link_011" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_011.png" alt="" width="500" height="299" /></p>
<p>Now Save the attribute you had just created.<img title="external_product_link_save" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_save.png" alt="" width="128" height="30" /></p>
<p>Click the Add New icon to create your Attribute. <img title="external_product_link_addnew" src="../wp-content/uploads/2010/10/external_product_link_addnew.png" alt="" width="95" height="25" /></p>
<p><img class="alignnone size-full wp-image-1275" title="external_product_link_005" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_005.png" alt="" width="500" height="885" /></p>
<p>Now Save the attribute you had just created.<img title="external_product_link_save" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_save.png" alt="" width="128" height="30" /></p>
<p>Click the Add New icon to create your Attribute. <img title="external_product_link_addnew" src="../wp-content/uploads/2010/10/external_product_link_addnew.png" alt="" width="95" height="25" /></p>
<p><img class="alignnone size-full wp-image-1276" title="external_product_link_006" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_006.png" alt="" width="499" height="888" /></p>
<p>Now Save the attribute you had just created.<img title="external_product_link_save" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_save.png" alt="" width="128" height="30" /></p>
<p><img title="external_product_link_menuset" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_menuset.png" alt="" width="340" height="325" /></p>
<p>Click on the Add New Set</p>
<p><img class="alignnone size-full wp-image-1277" title="external_product_link_007" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_007.png" alt="" width="500" height="300" /></p>
<p>Here&#8217;s the product set that we had created &#8220;Product External Link&#8221;<br />
<img class="alignnone size-full wp-image-1278" title="external_product_link_008" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_008.png" alt="" width="343" height="358" /></p>
<p>Drag and drop the Attributes you just created and drop it into the Product External Link</p>
<p><img class="alignnone size-full wp-image-1279" title="external_product_link_009" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_009.png" alt="" width="200" height="184" /></p>
<p>Like the below image</p>
<p><img class="alignnone size-full wp-image-1280" title="external_product_link_010" src="http://www.designersandbox.com/wp-content/uploads/2010/10/external_product_link_010.png" alt="" width="329" height="502" /></p>
<p>Now save, and open your code and tweak the the following</p>
<p>Please open list.phtml and view.phtml. This file should be located at your template folder<br />
app/design/frontend/default/[YOUR_THEME]/template/catalog/product/list.phtml<br />
app/design/frontend/default/[YOUR_THEME]/template/catalog/product/view.phtml<br />
Your button phtml may look a bit different, the idea is to get find this similar code and make a tiny tweak to it.</p>
<pre class="brush: php;">
&lt;?php if($_product-&gt;isSaleable()): ?&gt;
	&lt;p&gt;&lt;button type=&quot;button&quot; title=&quot;&lt;?php echo $this-&gt;__('Add to Cart') ?&gt;&quot; class=&quot;button btn-cart&quot; onclick=&quot;setLocation('&lt;?php echo $this-&gt;getAddToCartUrl($_product) ?&gt;')&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Add to Cart') ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;&lt;/p&gt;
&lt;?php else: ?&gt;
	&lt;p class=&quot;availability out-of-stock&quot;&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Out of stock') ?&gt;&lt;/span&gt;&lt;/p&gt;
&lt;?php endif; ?&gt;
</pre>
<p>Put the following code above your button code.</p>
<pre class="brush: php;">
&lt;?php
    $_productForExternalLink = Mage::getModel('catalog/product')-&gt;load($_product-&gt;getId());
    if (1 == $_productForExternalLink-&gt;getData('product_external_link')) {
        $linkTargetAttributeObj = $_productForExternalLink-&gt;getResource()-&gt;getAttribute(&quot;product_external_link_target&quot;);
        if ($linkTargetAttributeObj-&gt;usesSource()) {
            $link_target = $linkTargetAttributeObj-&gt;getSource()-&gt;getOptionText($_productForExternalLink-&gt;getData('product_external_link_target'));
        }
?&gt;

    &lt;div class=&quot;product_external_link&quot;&gt;
        &lt;a href=&quot;&lt;?php echo $_productForExternalLink-&gt;getData('product_external_link_url'); ?&gt;&quot; target=&quot;&lt;?php echo $link_target; ?&gt;&quot; style=&quot;background:url('&lt;?php echo $_productForExternalLink-&gt;getData('product_external_link_image'); ?&gt;') repeat-x; display:inline-block; margin:0 3px 8px;&quot;&gt;
            &lt;span&gt;&lt;?php echo $_productForExternalLink-&gt;getData('product_external_link_text'); ?&gt;&lt;/span&gt;
        &lt;/a&gt;
    &lt;/div&gt;

&lt;?php
    } else {
?&gt;

	&lt;?php if($_product-&gt;isSaleable()): ?&gt;
        &lt;p&gt;&lt;button type=&quot;button&quot; title=&quot;&lt;?php echo $this-&gt;__('Add to Cart') ?&gt;&quot; class=&quot;button btn-cart&quot; onclick=&quot;setLocation('&lt;?php echo $this-&gt;getAddToCartUrl($_product) ?&gt;')&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Add to Cart') ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;&lt;/p&gt;
    &lt;?php else: ?&gt;
        &lt;p class=&quot;availability out-of-stock&quot;&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Out of stock') ?&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;?php endif; ?&gt;
&lt;?php
    }
?&gt;
</pre>
<img src="http://www.designersandbox.com/?ak_action=api_record_view&id=1267&type=feed" alt="" /><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.designersandbox.com/magento/magento-fix-for-google-analytics-not-tracking-not-receiving-data/" title="Magento Fix for Google Analytics &#8211; Not Tracking &#8211; Not Receiving Data">Magento Fix for Google Analytics &#8211; Not Tracking &#8211; Not Receiving Data</a> (4)</li><li><a href="http://www.designersandbox.com/magento/ds-mobishop-our-first-magento-theme-landed-on-themeforest/" title="DS MobiShop &#8211; Our first magento theme landed on Themeforest">DS MobiShop &#8211; Our first magento theme landed on Themeforest</a> (0)</li><li><a href="http://www.designersandbox.com/code/centering-a-div-block-without-the-width-using-pure-css-all-browser/" title="Centering a div block without the width using pure CSS (All Browser)">Centering a div block without the width using pure CSS (All Browser)</a> (0)</li><li><a href="http://www.designersandbox.com/joomla/adding-multiple-attachment-for-joomla-k2-component-according-to-the-number-of-joomfishs-language/" title="Adding Multiple Attachment for Joomla K2 Component according to the number of JoomFish&#8217;s language hack">Adding Multiple Attachment for Joomla K2 Component according to the number of JoomFish&#8217;s language hack</a> (1)</li><li><a href="http://www.designersandbox.com/code/the-beginning-of-web3-0-web-design-new-approach-scrolling-page-animation/" title="The beginning of web3.0 &#8211; Web Design New Approach &#8211; Scrolling Page Animation">The beginning of web3.0 &#8211; Web Design New Approach &#8211; Scrolling Page Animation</a> (5)</li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.designersandbox.com/code/magento-adding-custom-product-link-for-all-your-products/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Add custom layout in CMS page</title>
		<link>http://www.designersandbox.com/magento/add-custom-layout-in-cms-page/</link>
		<comments>http://www.designersandbox.com/magento/add-custom-layout-in-cms-page/#comments</comments>
		<pubDate>Mon, 25 Oct 2010 07:55:04 +0000</pubDate>
		<dc:creator>Michael Wai</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.designersandbox.com/?p=1340</guid>
		<description><![CDATA[You may design some nice templates and layouts for your Magento shopping cart, but you cannot choose these layouts in CMS. You can add the following XML codes in “global” section in either one of config.xml in any module, but I suggest you to create a new custom module to change it. For example, if [...]]]></description>
			<content:encoded><![CDATA[<div id="post-refEl-1340"><p>You may design some nice templates and layouts for your Magento shopping cart, but you cannot choose these layouts in CMS.</p>
<p>You can add the following XML codes in “global” section in either one of config.xml in any module, but I suggest you to create a new custom module to change it.</p>
<p>For example, if you’ve added a new layout named “Two-Column Right Column Full Layout Pages” in “page.xml”:</p>
<pre class="brush: php;">
&lt;layout&gt;
      ...
      &lt;page_two_columns_right_full translate=&quot;label&quot;&gt;
            &lt;label&gt;Two-Column Right Column Full Layout Pages&lt;/label&gt;
            &lt;reference name=&quot;root&quot;&gt;
                  &lt;action method=&quot;setTemplate&quot;&gt;&lt;template&gt;page/2columns-right-full.phtml&lt;/template&gt;&lt;/action&gt;
                  &lt;!-- Mark root page block that template is applied --&gt;
                  &lt;action method=&quot;setIsHandle&quot;&gt;&lt;applied&gt;1&lt;/applied&gt;&lt;/action&gt;
            &lt;/reference&gt;
      &lt;/page_two_columns_right_full&gt;
      ...
&lt;/layout&gt;
</pre>
<p>Then in the config.xml in a new custom module or a existing module:</p>
<pre class="brush: php;">
&lt;global&gt;
      ...
      &lt;page&gt;
            &lt;layouts&gt;
                  &lt;two_columns_right_full module=&quot;page&quot; translate=&quot;label&quot;&gt;
                        &lt;label&gt;Two-Column Right Column Full Layout Pages&lt;/label&gt;
                        &lt;template&gt;page/2columns-right-full.phtml&lt;/template&gt;
                        &lt;layout_handle&gt;page_two_columns_right_full&lt;/layout_handle&gt;
                  &lt;/two_columns_right_full&gt;
            &lt;/layouts&gt;
      &lt;/page&gt;
      ...
&lt;/global&gt;
</pre>
<p>Then in your backend CMS page, you should be able to choose this new layout.</p>
<p>Happy Magento’ing ~</p>
<img src="http://www.designersandbox.com/?ak_action=api_record_view&id=1340&type=feed" alt="" /><h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.designersandbox.com/magento/installing-magento-version-1-4-2-0-on-icdsoft/" title="Installing Magento [version 1.4.2.0] on ICDSoft">Installing Magento [version 1.4.2.0] on ICDSoft</a> (4)</li><li><a href="http://www.designersandbox.com/magento/how-to-completely-disable-magento-module/" title="How to completely disable Magento module">How to completely disable Magento module</a> (1)</li><li><a href="http://www.designersandbox.com/magento/how-to-create-coupon-code-for-fixed-amount-discount/" title="How to create coupon code for fixed amount discount">How to create coupon code for fixed amount discount</a> (13)</li><li><a href="http://www.designersandbox.com/magento/magento-hide-the-price-for-a-free-product-using-jquery/" title="Magento &#8211; Hide the price for a free product using jQuery">Magento &#8211; Hide the price for a free product using jQuery</a> (6)</li><li><a href="http://www.designersandbox.com/magento/magento-fixed-description-not-showing-change-on-your-old-template-to-work-with-1-4-1-1/" title="Magento Fixed &#8211; Description not showing, Change on your old template to work with 1.4.1.1">Magento Fixed &#8211; Description not showing, Change on your old template to work with 1.4.1.1</a> (4)</li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.designersandbox.com/magento/add-custom-layout-in-cms-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	<img style='margin:0;padding:0;border:0;' width='1px' height='1px' src="http://www.designersandbox.com/wp-content/plugins/mystat/mystat.php?act=time_load&id=2325515&rnd=2024934546" /></channel>
</rss>

