<?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>Webmaster Bulletin &#187; magento</title>
	<atom:link href="http://www.webmasterbulletin.net/tag/magento/feed" rel="self" type="application/rss+xml" />
	<link>http://www.webmasterbulletin.net</link>
	<description>Rambling around the web publishing industry</description>
	<lastBuildDate>Thu, 02 Sep 2010 07:39:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Magento configurable products : display images of sub product</title>
		<link>http://www.webmasterbulletin.net/2010/08/magento-configurable-products-display-images-of-sub-product/1285</link>
		<comments>http://www.webmasterbulletin.net/2010/08/magento-configurable-products-display-images-of-sub-product/1285#comments</comments>
		<pubDate>Fri, 27 Aug 2010 08:09:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=1285</guid>
		<description><![CDATA[In a previous article, I explored a technique that displays the first image of a sub product when selected in Magento&#8217;s configurable product page. This time we go one step further by changing the set of thubmnails to display all images associated with the selected sub / simple product. this tutorial requires completion of the [...]]]></description>
			<content:encoded><![CDATA[<p>In a previous article, I explored a technique that displays the first image of a sub product when selected in Magento&#8217;s configurable product page. This time we go one step further by changing the set of thubmnails to display all images associated with the selected sub / simple product. this tutorial requires completion of the the <a href="http://www.webmasterbulletin.net/2010/06/magento-configurable-products-change-product-image-on-thumbnail-option/1255">previous one  including the magento wiki &#8216;Change Product Image on View Page to Associated Product&#8217;s Image&#8217;</a> before you go ahead :</p>
<ol>
<li>in your media.phtml file, the big images are loaded via html. the image id is a collection of images from which only the first one is displayed initially, the other are waiting for the thumbail to be clicked. Simply add here the images collection from associated products,  each image being allocated a css ID built from product id and the increment
<pre class="brush:php">        &lt;?//&lt;associated product all images&gt;
            if ($_product-&gt;getTypeId() == "configurable") {
        $associated_products = $_product-&gt;loadByAttribute('sku', $_product-&gt;getSku())-&gt;getTypeInstance()-&gt;getUsedProducts();
          foreach ($associated_products as $assoc)
            {
            $assocProduct =Mage::getModel('catalog/product')-&gt;load($assoc-&gt;getId());
             $i=0; 

             if (count($assocProduct-&gt;getMediaGalleryImages()) &gt; 0) {
                   foreach ($assocProduct-&gt;getMediaGalleryImages() as $_image)
                    {
                     $imageFile=str_replace(Mage::getBaseUrl('media'),"",$_image-&gt;url);
                     $imageId=$assoc-&gt;getId() . "_" . $i++;?&gt;
                      &lt;div onclick="showZoom('&lt;?=$imageFile?&gt;')" class="jqzoom"&gt;
              &lt;img style="z-index:-1;display:none" id="image&lt;?php echo $imageId; ?&gt;"
              width="340px"
              height="250px"
              src="&lt;?php echo $this-&gt;helper('catalog/image')-&gt;init($assocProduct, 'thumbnail2', $_image-&gt;getFile())-&gt;resize(350, 250); ?&gt;"
              alt="&lt;?php echo $this-&gt;htmlEscape($assocProduct-&gt;getName()) ?&gt;"
                jqimg="&lt;?php echo $_image-&gt;url; ?&gt;"&gt;&lt;/div&gt;
            &lt;?php
                     }
                }
            }
            } //&lt;/associated product all images&gt;
        ?&gt;</pre>
</li>
<li>in the same file, below, the images thumbnails are displayed in unordered lists. What you need to do here to create one unordered list per associated product, with a<em> display none </em>styling  :
<pre class="brush:php">            &lt;?//&lt;associated product all images&gt;
            if ($_product-&gt;getTypeId() == "configurable") {
        $associated_products = $_product-&gt;loadByAttribute('sku', $_product-&gt;getSku())-&gt;getTypeInstance()-&gt;getUsedProducts();
          foreach ($associated_products as $assoc)
            {
            $assocProduct =Mage::getModel('catalog/product')-&gt;load($assoc-&gt;getId());
            $i=0;
             if (count($assocProduct-&gt;getMediaGalleryImages()) &gt; 0) { ?&gt;&lt;ul id="teckLoom&lt;?=$assoc-&gt;getId()?&gt;" style="z-index:-1;display:none"&gt;   &lt;?
                   foreach ($assocProduct-&gt;getMediaGalleryImages() as $_image)
                    {
                     $imageFile=str_replace(Mage::getBaseUrl('media'),"",$_image-&gt;url);
                     $imageId=$assoc-&gt;getId() . "_" . $i++;?&gt;
                     &lt;li&gt;
            &lt;a href="#" onclick="jSelectImage('&lt;?=$imageId ?&gt;'); return false;"&gt;
            &lt;img src="&lt;?php echo $this-&gt;helper('catalog/image')-&gt;init($assocProduct, 'thumbnail', $_image-&gt;getFile())-&gt;resize(70); ?&gt;" alt="&lt;?php echo $this-&gt;htmlEscape($_image-&gt;getLabel()) ?&gt;" title="&lt;?php echo $this-&gt;htmlEscape($_image-&gt;getLabel()) ?&gt;" /&gt;
        &lt;/a&gt;         &lt;/li&gt;

            &lt;?php
                     }      ?&gt;&lt;/ul&gt; &lt;?
                }
            }  }
              //&lt;/associated product all images&gt;   ?&gt;</pre>
</li>
<li>use the select color  function from our <a href="http://www.webmasterbulletin.net/2010/06/magento-configurable-products-change-product-image-on-thumbnail-option/1255">previous article</a> to display the associated image set when an option is selected via image click :
<pre class="brush:js">function selectColor(idAttribute, idProduct)
{
jQuery('#attribute76').val(idAttribute);
spConfig.reloadPrice();
displayProductConfigImage(idProduct);
jQuery(".more-views ul").hide();
jQuery(".more-views ul#teckLoom" + idProduct).show();
}</pre>
</li>
<li>add the following code to js/varien/product.js to let the effect work when an option is selected in the dropdown menu :
<pre class="brush:js">var productNo = intersect(selectedAssocProducts) || selectedAssocProducts[attributeId][0];
//alert(jQuery("#image0").attr('src'));
//$('image').attr("src", assocIMG[productNo]);
displayProductConfigImage(productNo);
jQuery(".more-views ul").hide();
jQuery(".more-views ul#teckLoom" + productNo).show();</pre>
</li>
<li>Have a look at the result on ruedesiam&#8217;s lovely designed multi color loom furniture : try  the <a href="http://www.ruedesiam.com/collection/chaise-fauteuil-canape-banc/chaise-fauteuil-canape-loom/chaise-loom-giulietta.html">chaise giulietta</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2010/08/magento-configurable-products-display-images-of-sub-product/1285/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento : find out which xml fails</title>
		<link>http://www.webmasterbulletin.net/2010/07/magento-find-out-which-xml-fails/1274</link>
		<comments>http://www.webmasterbulletin.net/2010/07/magento-find-out-which-xml-fails/1274#comments</comments>
		<pubDate>Wed, 21 Jul 2010 09:45:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=1274</guid>
		<description><![CDATA[If you&#8217;ve been working with Magento extensions or layout, you might have encountered the frustration of trying to find out which XML generates the following error, potentially harming the whole magento installation :
Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 61: parser error : StartTag: invalid element name  in C:\aa_work\RueDeSiam\www\lib\Varien\Simplexml\Config.php on line 502

#0 C:\aa_work\RueDeSiam\www\lib\Varien\Simplexml\Config.php(502): mageCoreErrorHandler(2, 'simplexml_load_...', 'C:\aa_work\RueD...', [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve been working with Magento extensions or layout, you might have encountered the frustration of trying to find out which XML generates the following error, potentially harming the whole magento installation :</p>
<pre class="brush:plain">Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 61: parser error : StartTag: invalid element name  in C:\aa_work\RueDeSiam\www\lib\Varien\Simplexml\Config.php on line 502

#0 C:\aa_work\RueDeSiam\www\lib\Varien\Simplexml\Config.php(502): mageCoreErrorHandler(2, 'simplexml_load_...', 'C:\aa_work\RueD...', 502, Array)
#1 C:\aa_work\RueDeSiam\www\lib\Varien\Simplexml\Config.php(489): Varien_Simplexml_Config-&gt;loadString('?????? ...', 'Mage_Core_Model...')
#2 C:\aa_work\RueDeSiam\www\app\code\core\Mage\Adminhtml\Model\Config.php(102): Varien_Simplexml_Config-&gt;loadFile('?????? ...', 'Mage_Core_Model...')
#3 C:\aa_work\RueDeSiam\www\app\code\core\Mage\Adminhtml\Model\Config.php(63): Mage_Adminhtml_Model_Config-&gt;_initSectionsAndTabs('C:\aa_work\RueD...')
#4 C:\aa_work\RueDeSiam\www\app\code\core\Mage\Adminhtml\controllers\System\ConfigController.php(70): Mage_Adminhtml_Model_Config-&gt;getSections()
#5 C:\aa_work\RueDeSiam\www\app\code\core\Mage\Core\Controller\Varien\Action.php(367): Mage_Adminhtml_System_ConfigController-&gt;editAction(NULL)
#6 C:\aa_work\RueDeSiam\www\app\code\core\Mage\Core\Controller\Varien\Router\Admin.php(143): Mage_Core_Controller_Varien_Action-&gt;dispatch()
#7 C:\aa_work\RueDeSiam\www\app\code\core\Mage\Core\Controller\Varien\Front.php(158): Mage_Core_Controller_Varien_Router_Admin-&gt;match('edit')
#8 C:\aa_work\RueDeSiam\www\app\Mage.php(457): Mage_Core_Controller_Varien_Front-&gt;dispatch(Object(Mage_Core_Controller_Request_Http))
#9 C:\aa_work\RueDeSiam\www\index.php(66): Mage::run()
#10 {main}</pre>
<p>the problem with this kind of error is that it doesn&#8217;t tell you which file is causing the error. To find out, work with your local installation</p>
<ul>
<li>set the developer mode in index.php : Mage::setIsDeveloperMode(true);</li>
<li>open the app/code/core/Mage/Adminhtml/Model/Config.php and let the _initSectionsAndTabs tell you which xml is being loaded in the modules loop, just after $configFile is defined : echo $configFile;</li>
<li>the last file that pops before the error is thrown out is likely to cause the breakout !!</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2010/07/magento-find-out-which-xml-fails/1274/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Configurable products : change product image on thumbnail option</title>
		<link>http://www.webmasterbulletin.net/2010/06/magento-configurable-products-change-product-image-on-thumbnail-option/1255</link>
		<comments>http://www.webmasterbulletin.net/2010/06/magento-configurable-products-change-product-image-on-thumbnail-option/1255#comments</comments>
		<pubDate>Mon, 14 Jun 2010 10:21:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=1255</guid>
		<description><![CDATA[This article describes a  color chooser for magento product page, a technique that automatically use product attributes from a Magento admin to display color thumbnails that

allows end user to choose color option by clicking on thumbnail
change product image to associated product image

the technique above is inspired from Magento Wiki page that describes the javascript that [...]]]></description>
			<content:encoded><![CDATA[<p>This article describes a  color chooser for magento product page, a technique that automatically use product attributes from a Magento admin to display color thumbnails that</p>
<ul>
<li>allows end user to choose color option by clicking on thumbnail</li>
<li>change product image to associated product image</li>
</ul>
<p>the technique above is inspired from<a href="http://www.magentocommerce.com/wiki/how-to/change_product_image_on_view_page_to_associated_product_s_image" target="_blank"> Magento Wiki</a> page that describes the javascript that catches the Options price select event to modifyu the product image. We&#8217;ve changed a few things though</p>
<ol>
<li><span id="more-1255"></span>this example is a color chooser. First thing is to create a folder in media/productColors with thumbnails of available colors, all stored in a file with the name of the color</li>
<li>follow the <a href="http://www.magentocommerce.com/wiki/how-to/change_product_image_on_view_page_to_associated_product_s_image" target="_blank">Magento Wiki tutorial carefully</a></li>
<li>instead of adding the code to view.phtml, create a new phtml file<br />
app/design/frontend/*/*/template/catalog/product/view/WebmasterBulletin_JsConfigColors.phtml with the following code</p>
<pre class="brush:php">&lt;?
    $_helper = $this-&gt;helper('catalog/output');
    $_product = $this-&gt;getProduct();
?&gt;
&lt;script type="text/javascript"&gt;
    var optionsPrice = new Product.OptionsPrice(&lt;?php echo $this-&gt;getJsonConfig() ?&gt;);

    var assocIMG = { // Added
    &lt;?php
    if ($_product-&gt;getTypeId() == "configurable") {
        $associated_products = $_product-&gt;loadByAttribute('sku', $_product-&gt;getSku())-&gt;getTypeInstance()-&gt;getUsedProducts();

        foreach ($associated_products as $assoc)
            {$dados[] = $assoc-&gt;getId().":'".($assoc-&gt;image == "no_selection" || $assoc-&gt;image == "" ? $this-&gt;helper('catalog/image')-&gt;init($_product, 'image', $_product-&gt;image)-&gt;resize(365,400) : $this-&gt;helper('catalog/image')-&gt;init($assoc, 'image', $assoc-&gt;image)-&gt;resize(365,400))."'";
            }
    } else {
        $dados[] =  "''";
    }
    echo implode(',', $dados );
    ?&gt;
    }   

function displayProductConfigImage(id)
{
jQuery('#image0').attr('src', assocIMG[id]) ;
jQuery('#image0').attr('jqimg', assocIMG[id]) ;
jSelectImage('0');
}
function selectColor(idAttribute, idProduct)
{
jQuery('#attribute76').val(idAttribute);
spConfig.reloadPrice();
displayProductConfigImage(idProduct);
}
var tipConfigImgThumb = "Choose your color :";
&lt;/script&gt;
&lt;?  $ii=0;foreach ($associated_products as $assoc)
         {
         $color=$assoc-&gt;getAttributeText("color");
         $w=100; $h=100;
         $imageColorSource =  "/media/productColors/" . strtolower($color) . ".jpg";
         $imageColorResized =  Mage::getBaseUrl() . "/media/phpThumb_1.7.9/phpThumb.php?src=" .  $imageColorSource . "&amp;w=$w&amp;h=$h&amp;iar=1";?&gt;
         &lt;a href="javascript:selectColor(&lt;?=$assoc-&gt;getColor()?&gt;, &lt;?=$assoc-&gt;getId()?&gt;)" id="ConfigImgThumb&lt;?=$assoc-&gt;getId()?&gt;"&gt;&lt;img src="&lt;?=$imageColorResized?&gt;" width="&lt;?=$w?&gt;" height="&lt;?=$h?&gt;" alt="&lt;?=$color?&gt;" border="0"&gt;&lt;/a&gt;
&lt;script&gt;new Tip('ConfigImgThumb&lt;?=$assoc-&gt;getId()?&gt;', tipConfigImgThumb + '&lt;b&gt;&lt;?=$color?&gt;&lt;/b&gt;');&lt;/script&gt;&lt;?
         }
     ?&gt;</pre>
</li>
<li>reference WebmasterBulletin_JsConfigColors.phtml in layout/catalog.xml, in the catalog/product_view block section :
<pre class="brush:xml">    &lt;block type="catalog/product_view" name="product.products_jsConfigColors" as="webmasterbulletin_products_js_config_colors" template="catalog/product/view/WebmasterBulletin_JsConfigColors.phtml" /&gt;</pre>
</li>
<li>in the product.view.phtml you can now place your color chooser where you like
<pre class="brush:php">&lt;?if ($_product-&gt;isSaleable() &amp;&amp; $this-&gt;hasOptions()) echo $this-&gt;getChildHtml('poleouest_products_js_config_colors');?&gt;</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2010/06/magento-configurable-products-change-product-image-on-thumbnail-option/1255/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento : how to learn from free templates</title>
		<link>http://www.webmasterbulletin.net/2009/10/magento-how-to-learn-from-free-templates/1030</link>
		<comments>http://www.webmasterbulletin.net/2009/10/magento-how-to-learn-from-free-templates/1030#comments</comments>
		<pubDate>Thu, 29 Oct 2009 11:08:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[E commerce]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=1030</guid>
		<description><![CDATA[The power of Magento is great but it requires long days of learning and suffering to get through relative simple features, such as the now common front page slide banner. I had a quick look at magento free templates on google and was conquered by Magento &#8217;s classic theme, the kind of  stuff that&#8217;s really [...]]]></description>
			<content:encoded><![CDATA[<p>The power of Magento is great but it requires long days of learning and suffering to get through relative simple features, such as the now common front page slide banner. I had a quick look at magento free templates on google and was conquered by Magento &#8217;s classic theme, the kind of  stuff that&#8217;s really given free of charge when I would have paid for it. It actually comes with an interesting development of Magento&#8217;s block systems, and demonstrates how to add a custom block between navigation and content : the prototype glider that scrolls images is defined a cms static block, which is then called in the home page CMS  custom xml definition, with a reference to the slider block that&#8217;s positionned in phtml files and declared in the xml layouts as a core/text_list type . Impressive stuff : that&#8217;s pure  magento design and illustrates how versatile the system is.</p>
<p>Links : <a href="http://www.smashingmagazine.com/2009/05/05/25-magento-templates-for-your-e-commerce-business/" target="_blank">25 free templates for Magento</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2009/10/magento-how-to-learn-from-free-templates/1030/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento log cleaner</title>
		<link>http://www.webmasterbulletin.net/2009/10/magento-log-cleaner/1013</link>
		<comments>http://www.webmasterbulletin.net/2009/10/magento-log-cleaner/1013#comments</comments>
		<pubDate>Mon, 12 Oct 2009 09:41:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[E commerce]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=1013</guid>
		<description><![CDATA[Magento, in earlier versions, does not seem to handle log cleaning very well. A lot of configuration options are vailable under the configuration  / Advanced / System menu, that seem to have an impact on the cron.php process. But trying to remove logs this way is a complicated task that involves full log counting (select [...]]]></description>
			<content:encoded><![CDATA[<p>Magento, in earlier versions, does not seem to handle log cleaning very well. A lot of configuration options are vailable under the configuration  / Advanced / System menu, that seem to have an impact on the cron.php process. But trying to remove logs this way is a complicated task that involves full log counting (select count on mage_log_visitor) and the result is not always there, don&#8217;t know why. A full truncate on log tables seems more appropriate, as described on the knowledge base, to use with caution obviously : <a href="http://www.magentocommerce.com/wiki/groups/227/maintenance_script" target="_blank">Magento Maintenance Script</a> was posted a few days ago but I tried it and it&#8217;s pretty efficient. Let us know how it performed on your install, on mine it works well. Go ahead after you&#8217;ve performed the appropriate backups !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2009/10/magento-log-cleaner/1013/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Magento email configuration pain and how to solve it</title>
		<link>http://www.webmasterbulletin.net/2009/09/magento-email-configuration-pain-and-how-to-solve-it/1011</link>
		<comments>http://www.webmasterbulletin.net/2009/09/magento-email-configuration-pain-and-how-to-solve-it/1011#comments</comments>
		<pubDate>Mon, 28 Sep 2009 14:41:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[E commerce]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=1011</guid>
		<description><![CDATA[It&#8217;s nice to setup a magento shop, but one particular task is painful and time consuming : the modification  of automatic email templates . By defautl, email tempaltes in Magento are well designed as a sample given out to the developer, but when you expect to have your shop running in a few hours  time, [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s nice to setup a magento shop, but one particular task is painful and time consuming : the modification  of automatic email templates . By defautl, email tempaltes in Magento are well designed as a sample given out to the developer, but when you expect to have your shop running in a few hours  time, it is really a pain to go through all emails jsut to change phone numbers, shop name, and opening times especially when this information could be centralized in the database.  The subject is not new and here a few hacks to let you work faster when setting up a shop</p>
<ul>
<li>You can use a linux script to automatically modify magento email template files in your language / email folder
<ul>
<li>script 1<br />
<a href="http://www.osetemplates.com/?p=138">http://www.osetemplates.com/?p=138</a></li>
<li>script 2 (slightly better because incorporates store specific vairables in the script)<br />
<a href="http://www.pridedesign.ie/content/magento-email-template-script">http://www.pridedesign.ie/content/magento-email-template-script</a></li>
</ul>
</li>
<li>You can also use the<a href="http://www.magentocommerce.com/extension/1692/email-template-adapter" target="_blank"> email template adapter extension</a> to get the job done via magento&#8217;s administration interface</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2009/09/magento-email-configuration-pain-and-how-to-solve-it/1011/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento / facebook : display new products on your wall</title>
		<link>http://www.webmasterbulletin.net/2009/08/magento-facebook-display-new-products-on-your-wall/982</link>
		<comments>http://www.webmasterbulletin.net/2009/08/magento-facebook-display-new-products-on-your-wall/982#comments</comments>
		<pubDate>Mon, 31 Aug 2009 13:01:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=982</guid>
		<description><![CDATA[Using the RSS feature of Mangeto to update your wall automatically is an easy task that you can finish in ea few inutes tuime, when you know where to go.

Magento&#8217;s default layout is shipped with a rss page that requires activation in the admin, in the system-&#62;configuration, check rss feed to activate the /rss page that [...]]]></description>
			<content:encoded><![CDATA[<p>Using the RSS feature of Mangeto to update your wall automatically is an easy task that you can finish in ea few inutes tuime, when you know where to go.</p>
<ul>
<li>Magento&#8217;s default layout is shipped with a rss page that requires activation in the admin, in the system-&gt;configuration, check rss feed to activate the /rss page that displays available feeds (<a href="http://www.ruedesiam.com/rss">check out our example on Rue de Siam</a>)</li>
<li>Import your feed to your facebook page or profile to get new produtcs or product special published automatically on your wall :
<ol>
<li>Connect to facebook, and click  &#8221;My Notes&#8221; from the navigational menu. If you have already entered notes on your page, then they will load for you to preview or edit.</li>
<li>If you have not written an article, write one that announces the rss publication (e.g. new articles coming soon), in order to enable the settings menu. Select the &#8220;Import Blog&#8221; or &#8220;Edit Import Settings&#8221; link in the Notes Setting section. If you are already importing from a blog, the URL will appear here. Remeber that in the Notes applications, you can only import from 1 source at a time.  To change the url of the feed, click  &#8221;Stop Importing&#8221;</li>
<li>Enter the URL for the RSS feed in the box. Check the box next to the statement that you actually own the content.</li>
<li>Click the &#8220;Start Importing&#8221; button. Facebook will import the content of the RSS feed for you to preview. If everything looks good, then go ahead and hit the &#8220;Continue&#8221; button. Now your RSS feed is automatically imported into your &#8220;Notes&#8221; section.</li>
<li>Administrators note : Facebook RSS in articles application will not put a heavy load on your server , as they are pulled every 2 hours, but be careful of heavy loads if you have a larger reader base as images will be loaded from full article display in facebook</li>
</ol>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2009/08/magento-facebook-display-new-products-on-your-wall/982/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento : display product image on invoice + shipping PDF</title>
		<link>http://www.webmasterbulletin.net/2009/06/magento-display-product-image-on-invoice-shipping-pdf/873</link>
		<comments>http://www.webmasterbulletin.net/2009/06/magento-display-product-image-on-invoice-shipping-pdf/873#comments</comments>
		<pubDate>Thu, 04 Jun 2009 14:36:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Components]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=873</guid>
		<description><![CDATA[Magento&#8217;s wiki has a few articles on the subject of Magento&#8217;s PDF generation, which is not very efficient in its default version : one of the main critics I&#8217;ve seen is the size of the generated PDF, which can fly to more than 1MB, where a simple font replacement can bring the weight to less [...]]]></description>
			<content:encoded><![CDATA[<p>Magento&#8217;s wiki has a few articles on the subject of Magento&#8217;s PDF generation, which is not very efficient in its default version : one of the main critics I&#8217;ve seen is the size of the generated PDF, which can fly to more than 1MB, where <a href="http://www.magentocommerce.com/wiki/how-to/editing_an_invoice_pdf">a simple font replacement</a> can bring the weight to less than a few KBs ! The subject of the article below is to illustrate how to display images on each line of the generated invoice and shipping PDF.<br />
The product line display occurs in specific PHP classes within  the app/code/core/Mage/sales/Model/order/pdf folder</p>
<p>there is one folder for shipment, one for invoice, and one for credit. The product display occurs in the DEfault file where the Mage_Sales_Model_Order_Pdf_Items_Abstract is defined. What I did was simply instanciate a product object using the id from order / items, and get the image file using the following code in the draw function :</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="co1">//&lt;display image&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$id</span> = Mage::<span class="me2">getModel</span><span class="br0">&#40;</span><span class="st0">&#8216;catalog/product&#8217;</span><span class="br0">&#41;</span>-&gt;<span class="me1">getIdBySku</span><span class="br0">&#40;</span><span class="re0">$this</span>-&gt;<span class="me1">getSku</span><span class="br0">&#40;</span><span class="re0">$item</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$product</span>= &nbsp;Mage::<span class="me2">getModel</span><span class="br0">&#40;</span><span class="st0">&#8216;catalog/product&#8217;</span><span class="br0">&#41;</span>-&gt;<span class="me1">load</span><span class="br0">&#40;</span><span class="re0">$id</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$imageUrl</span> = <span class="re0">$product</span>-&gt;<span class="me1">getSmallImageUrl</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2"><span class="re0">$imageFile</span>= &nbsp;<a href="http://www.php.net/str_replace"><span class="kw3">str_replace</span></a><span class="br0">&#40;</span>Mage::<span class="me2">getBaseUrl</span><span class="br0">&#40;</span><span class="st0">&#8216;media&#8217;</span><span class="br0">&#41;</span>,<span class="st0">&quot;media/&quot;</span>,<span class="re0">$imageUrl</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// $page-&gt;drawText($imageFile , 65, $pdf-&gt;y-$shift{1}, &#8216;UTF-8&#8242;);</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$imageWidth</span> = <span class="nu0">100</span>; <span class="re0">$imageHeight</span> = <span class="nu0">50</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$image</span> = Zend_Pdf_Image::<span class="me2">imageWithPath</span><span class="br0">&#40;</span><span class="re0">$imageFile</span>,<span class="re0">$imageWidth</span>,<span class="re0">$imageHeight</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$y</span>=<span class="re0">$pdf</span>-&gt;<span class="me1">y</span> &#8211; <span class="re0">$imageHeight</span> /<span class="nu0">3</span>;</div>
</li>
<li class="li2">
<div class="de2"><span class="re0">$page</span>-&gt;<span class="me1">drawImage</span><span class="br0">&#40;</span><span class="re0">$image</span>, <span class="nu0">35</span>,<span class="re0">$y</span>, <span class="nu0">35</span>+ <span class="re0">$imageWidth</span> / <span class="nu0">2</span>, <span class="re0">$y</span> + <span class="re0">$imageHeight</span>/<span class="nu0">2</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">//&lt;/display image&gt;</span></div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2009/06/magento-display-product-image-on-invoice-shipping-pdf/873/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Magento one page checkout : display shopping cart details in sidebar</title>
		<link>http://www.webmasterbulletin.net/2009/05/magento-one-page-checkout-display-shopping-cart-details-in-sidebar/867</link>
		<comments>http://www.webmasterbulletin.net/2009/05/magento-one-page-checkout-display-shopping-cart-details-in-sidebar/867#comments</comments>
		<pubDate>Wed, 27 May 2009 14:20:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web Components]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=867</guid>
		<description><![CDATA[
There are a lot of discussions going on about Magento&#8217;s one page checkout procedure : it is supposed to enhance customer payment experience by probviding ajax based single page order progress. But there are alos some discussions in the forum on how to enhance this process which is quite unusual and might discourage some customers. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.webmasterbulletin.net/wp-content/uploads/2009/05/magentoonepagecheckoutorder.jpg" rel="lightbox[867]"><img class="size-full wp-image-869 aligncenter" title="magentoonepagecheckoutorder" src="http://www.webmasterbulletin.net/wp-content/uploads/2009/05/magentoonepagecheckoutorder.jpg" alt="magentoonepagecheckoutorder" width="500" height="318" /></a></p>
<p>There are a lot of discussions going on about Magento&#8217;s one page checkout procedure : it is supposed to enhance customer payment experience by probviding ajax based single page order progress. But there are alos some discussions in the forum on how to enhance this process which is quite unusual and might discourage some customers. In a previous post I reviewed the code that produces sidebar shopping cart in default pages with right margin. The solution below explains how to add a full shopping cart display for the customer&#8217;s that trying to complete an order.</p>
<p><span id="more-867"></span></p>
<p><strong>Full template vs AJAX based loading</strong></p>
<p>The code that builds the one page checkout (checkout/onepage/) sidebar display is made of two separate components :</p>
<ul>
<li>the first loading of the page is a full template loading, meaning every component of the page is loaded at once, and returned to the browser via a standard HTTP request, returning HTML. The HTML produced at this stage for the right column is described in the <strong>checkout_onepage_index section of the layout/checkout.xml </strong>configuration file. I added the shopping cart display by  simply adding a block to the right :
<pre>       &lt;reference name="right"&gt;
            &lt;action method="unsetChildren"&gt;&lt;/action&gt;
            &lt;block type="checkout/onepage_progress" name="checkout.progress" before="-" template="checkout/onepage/progress.phtml"/&gt;
            &lt;block type="checkout/cart_sidebar" before="-" name="catalog.cart.sidebar"    template="checkout/cart/sidebarCheckout.phtml"/&gt;
      &lt;/reference&gt;</pre>
</li>
<li>Following steps are processed via AJAX calls (function reloadProgressBlock in opcheckout.js) that invoke the the<strong> checkout_onepage_progress section of the layout/checkout.xml </strong>configuration file. Below you&#8217;ll find the same code added to this section, that adds a cart block to the raw HTML returned by this AJAX call.
<pre>   &lt;checkout_onepage_progress&gt;
        &lt;!-- Mage_Checkout --&gt;
        &lt;remove name="right"/&gt;
        &lt;remove name="left"/&gt;
 &lt;block type="checkout/cart_sidebar" output="toHtml"  name="catalog.cart.sidebar"    template="checkout/cart/sidebarCheckout.phtml"/&gt;

        &lt;block type="checkout/onepage_progress" name="root" output="toHtml" template="checkout/onepage/progress.phtml"&gt;
            &lt;block type="checkout/onepage_payment_info" name="payment_info"&gt;
                &lt;action method="setInfoTemplate"&gt;&lt;method&gt;&lt;/method&gt;&lt;template&gt;&lt;/template&gt;&lt;/action&gt;
            &lt;/block&gt;
        &lt;/block&gt;

    &lt;/checkout_onepage_progress&gt;</pre>
</li>
</ul>
<p>You will notice that we deliberately position the sidebar cart XML block , in the first case after, and in the second case before other blocks, so that this block always appears first on your <strong>one page chcekout right margin</strong>. What you finally need now in order for this to work is to code the sidebarCheckout template : take the checkout/cart/sidebar.phtml  template and modify the display to produce best reassuring order total for your customer before he finally decides to pay !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2009/05/magento-one-page-checkout-display-shopping-cart-details-in-sidebar/867/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Magento showcase : Rue de Siam</title>
		<link>http://www.webmasterbulletin.net/2009/04/magento-showcase-rue-de-siam/773</link>
		<comments>http://www.webmasterbulletin.net/2009/04/magento-showcase-rue-de-siam/773#comments</comments>
		<pubDate>Mon, 20 Apr 2009 21:15:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design showcase]]></category>
		<category><![CDATA[E commerce]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.webmasterbulletin.net/?p=773</guid>
		<description><![CDATA[
I&#8217;ve finally released my first Magento website, and it proves to be a  real SEO winner (100% increase in visits after 2 weeks). RuedeSiam is a furniture importer based in Brittany. Now you know why I bothered comparing commercial and opensource Flash based zoomers : Rue de Siam&#8217;s website site features an implementation of image  [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.webmasterbulletin.net/wp-content/uploads/2009/04/screenshot1.jpg" rel="lightbox[773]"><img class="aligncenter size-full wp-image-778" title="screenshot1" src="http://www.webmasterbulletin.net/wp-content/uploads/2009/04/screenshot1.jpg" alt="screenshot1" width="500" height="359" /></a></p>
<p>I&#8217;ve finally released my first Magento website, and it proves to be a  real SEO winner (100% increase in visits after 2 weeks). RuedeSiam is a <a href="http://www.ruedesiam.com">furniture importer based in Brittany</a>. Now you know why I bothered<a href="http://www.webmasterbulletin.net/2009/02/zoom-and-pan-with-flash/663"> comparing commercial and opensource Flash based zoomers</a> : Rue de Siam&#8217;s website site features an implementation of image  a flash based zoom within a prototype lightbox gallery   (<a title="chaise design chair" href="http://www.ruedesiam.com/collection/patrick-robert/meuble-patrick-robert/p-robert-chaise-medaillon.html">check out this one</a>) . Interesting too is the specific template for the &#8220;<a href="http://www.ruedesiam.com/chez-vous.html/">At your home</a>&#8221; showcase category that uses products with  specific layout. Magento is really great for customising layouts, I suppose that&#8217;s partly a big feature of Zend Framework expressed at its best. One technique I used a lot is the <a href="http://www.webmasterbulletin.net/2008/07/laying-text-over-title-image-in-wordpress/148">css based text over image transparency effect </a>that I detailed a while ago for Wordpress on this blog. Works fine with Magento images categories except that the background image really has to be adjusted perfectly so I used <a href="http://phpthumb.sourceforge.net/">phpthumbs</a> instead of Magento&#8217;s resizing helpers that seemed to complicated to understand at first.   I&#8217;ve also covered  various development challenges that I shared on this blog during the development :</p>
<ul>
<li> <a title="Magento products specials" href="http://www.webmasterbulletin.net/2009/04/product-specials-on-home-page/757">products special display on home page</a>,</li>
<li><a href="http://www.webmasterbulletin.net/2009/03/magento-product-display-new-product-icon-on-product-list/740">display new product icon on product list</a></li>
<li><a href="http://www.webmasterbulletin.net/2009/02/magento-product-page-how-to-display-other-products-from-same-category/647">how to display products from other categories on the product view page</a></li>
</ul>
<p><strong>And a few tips :</strong></p>
<ul>
<li><a href="http://www.webmasterbulletin.net/2009/03/magento-custom-attributes-display-on-product-page/693">Display custom attributes on product page</a></li>
<li><a href="http://www.webmasterbulletin.net/2009/02/magento-cms-2-methods-for-static-blocks/657">Magento static blocks display</a></li>
</ul>
<p><strong>One advice : </strong>once you&#8217;re running a Magento production web site, be careful with upgrades. The Sales extension did not work with 1.3.0 on my development server and I&#8217;m sticking to 1.2.x for the moment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterbulletin.net/2009/04/magento-showcase-rue-de-siam/773/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
