<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title><![CDATA[Blog]]></title>
    <link>http://www.customy.com/blog/</link>
    <description><![CDATA[Blog]]></description>
    <pubDate>Sun, 20 May 2012 05:52:44 +0000</pubDate>
    <generator>Zend_Feed</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <item>
      <title><![CDATA[Redirect to specific page after newsletter subscription]]></title>
      <link>http://www.customy.com/blog/redirect-to-specific-page-after-newsletter-subscription/</link>
      <description><![CDATA[<p>If you wish to redirect customers to specific page after newsletter subscription, here's how. <br/>Copy <br/><em>app\code\<strong>core</strong>\Mage\Newsletter\controllers\SubscriberController.php</em><br/> to<br/> <em>app\code\<strong>local</strong>\Mage\Newsletter\controllers\SubscriberController.php</em><br />Open the created local file. Find in two places:
<pre class="brush: php">$this->_redirectReferer();</pre>Change it to:
<pre class="brush: php">$this->_redirectUrl(Mage::getBaseUrl());</pre>
That will redirect user to the home page after newsletter subscription. If you wish to redirect to specific page, use this:
<pre class="brush: php">$this->_redirectUrl(Mage::getBaseUrl().'cms-page-identifier');</pre>
Thats it. Now you control the page the user is redirected after newsletter subscription in magento.
</p>]]></description>
      <pubDate>Wed, 25 Jan 2012 11:42:26 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Currency Sign and Fooman PDF Customiser Issue]]></title>
      <link>http://www.customy.com/blog/currency-sign-and-fooman-pdf-customiser/</link>
      <description><![CDATA[<p>If you are using Fooman pdf customiser and have modified your currency tag <a href="http://www.customy.com/blog/styling-currency-sign-in-magento-store/">according to our tutorial</a>, probably you will have trouble on pdf printouts, as the price will be something like: &lt;span&gt;$&lt;/span&gt;22.00<br />To fix that issue open: <em>app\code\community\Fooman\PdfCustomiser\Model\Mypdf.php</em><br />Find public function OutputTotalPrice and replace it with this:</p>
<pre class="brush: php">    public function OutputTotalPrice($price, $basePrice,$displayBoth,$order)
    {
        $priceForPrint = strip_tags($order->formatPriceTxt($price));
        
        if($displayBoth){
            $this->MultiCell(2.25*$this->getFontSizePt(), 0, $priceForPrint, 0, 'R', 0, 0);
        }
        $this->MultiCell(0, 0, $priceForPrint, 0, 'R', 0, 1);
    }</pre>
<p>The key word is "strip_tags" which clears all html tags and gives us clean currency and price</p>
<p>&nbsp;</p>]]></description>
      <pubDate>Wed, 04 Jan 2012 22:35:19 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Update Shopping Cart Button Fix for IE6]]></title>
      <link>http://www.customy.com/blog/magento-cart-update-button-internet-explorer/</link>
      <description><![CDATA[<p>There are still store owners who care about customers surfing with Internet Explorer (IE) 6. Recently I was working on IE6 compatibility issues and found the problem which was easy to fix. "Update Shopping Cart" button on shopping cart page doesn't work in IE6. To fix that issue open <em>app\design\frontend\[yourpackage]\[yourtheme]\template\checkout\cart.phtml</em><br />Find:<pre class="brush: php">&lt;form action="&lt;?php echo $this-&gt;getUrl('checkout/cart/updatePost') ?&gt;" method="post"&gt;</pre>Change it to:<pre class="brush: php">&lt;form name="update_form" action="&lt;?php echo $this-&gt;getUrl('checkout/cart/updatePost') ?&gt;" method="post"&gt;</pre>Find:<pre class="brush: php">&lt;button type="submit" title="&lt;?php echo $this-&gt;__('Update Shopping Cart') ?&gt;" class="button btn-update"&gt;&lt;span&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Update Shopping Cart') ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;</pre>Change it to:<pre class="brush: php">&lt;button onclick="document.getElementById('update_form').submit();" type="submit" title="&lt;?php echo $this-&gt;__('Update Shopping Cart') ?&gt;" class="button btn-update"&gt;&lt;span&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Update Shopping Cart') ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;</pre>Now the update cart button works in IE6.</p>]]></description>
      <pubDate>Tue, 03 Jan 2012 23:14:01 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Set quality of magento product images]]></title>
      <link>http://www.customy.com/blog/set-quality-of-magento-product-images/</link>
      <description><![CDATA[<p class="a-center"><img src="http://www.customy.com/media/wysiwyg/blog/bike.png" alt="" /></p>
<p>Set quality of magento catalog product images directly in template files.</p>
<p>There is no need to dublicate and edit core files or adapters. New method called setQuality has been implemented since Magento CE 1.4 and can be used directly in template files. For example if you want to improve the quality of product images in category view, open app/design/frontend/yourpackage/yourtheme/template/catalog/product/list.phtml and add -&gt;setQuality(100) in the end of img src as follows:</p>
<pre class="brush: php">﻿&lt;img src="&lt;?php echo $this-&gt;helper('catalog/image')-&gt;init($_product, 'small_image')-&gt;resize(122,180)-&gt;setQuality(100); ?&gt;" alt="" /&gt;</pre>
<p>Now we have good quality images in the product list.</p>
<p>Don't forget to empty the cache of images via System&gt; Cache Management.</p>]]></description>
      <pubDate>Thu, 11 Aug 2011 09:37:26 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[How to use Magento`s category or product design programmatically]]></title>
      <link>http://www.customy.com/blog/how-to-use-magento-category-or-product-design-programmatically/</link>
      <description><![CDATA[<p>I needed to load a block using AJAX request on catalog/category page.&nbsp;There is no problem to pass the category ID of the current category, but how can i load category`s design?</p>
<p>During my research&nbsp;<em>app/core/Mage/Catalog </em>files I found a simple solution:</p>
<!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } -->
<pre class="brush: css">$category = Mage::getModel('catalog/category')-&gt;load($categoryId);
if ($category-&gt;getId() &amp;&amp; $category-&gt;getCustomDesign()) {
    Mage::getModel('catalog/design')
        -&gt;applyDesign($category, Mage_Catalog_Model_Design::APPLY_FOR_CATEGORY);
}
</pre>
<p>The main purpose of model <em>catalog/design</em> is to apply category`s or product`s design to current design. If you want to apply product`s design, you must use Mage_Catalog_Model_Design::APPLY_FOR_PRODUCT as the second parameter and Mage_Catalog_Model_Product object as the first one. For example:</p>
<pre class="brush: css">$product = Mage::getModel('catalog/product')-&gt;load($productId);
if ($product-&gt;getId() &amp;&amp; $product-&gt;getCustomDesign()) {
    Mage::getModel('catalog/design')
        -&gt;applyDesign($product, Mage_Catalog_Model_Design::APPLY_FOR_PRODUCT);
}
</pre>
<p>I hope this will help somebody.</p>]]></description>
      <pubDate>Tue, 28 Jun 2011 18:29:52 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Styling currency sign in Magento store]]></title>
      <link>http://www.customy.com/blog/styling-currency-sign-in-magento-store/</link>
      <description><![CDATA[<img  class="img" src="http://www.customy.com/media/wysiwyg//blog/currencysign.jpg" alt="" />
If you want to style your currency sign there is no class or element by default you can hook and style with css. Here's how to wrap it in &lt;span&gt;&lt;/span&gt; tags to be able to style the currency via css.
<p>If you use english locale open: lib/Zend/Locale/Data/en.xml<br /><br />Change this around line 3848:
<pre class="brush: php">﻿&lt;symbol&gt;$&lt;/symbol&gt;</pre> 
to this:
<pre class="brush: php">﻿&lt;symbol&gt;&amp;lt;span&amp;gt;$&amp;lt;/span&amp;gt;&lt;/symbol&gt;</pre> 
</p>
<p>Thats it. Now the currency sign is wrapped in &lt;span&gt; tag and you can style it with css.</p>
<p>For example: 
<pre class="brush: css">﻿.price-box .price span { color:red; font-size:26px; font-weight:bold; }</pre> will make it red, big and bold.</p>]]></description>
      <pubDate>Sat, 25 Jun 2011 12:24:47 +0000</pubDate>
    </item>
  </channel>
</rss>

