<?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>Brad Frost Web &#187; Brad Frost Web | Magento Static Blocks &#8211; The Definitive Guide</title>
	<atom:link href="http://bradfrostweb.com/blog/tag/magento/feed/" rel="self" type="application/rss+xml" />
	<link>http://bradfrostweb.com</link>
	<description>Web Design, Music and Art</description>
	<lastBuildDate>Thu, 02 Feb 2012 01:25:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Magento Static Blocks &#8211; The Definitive Guide</title>
		<link>http://bradfrostweb.com/blog/web/magento/magento-static-blocks/</link>
		<comments>http://bradfrostweb.com/blog/web/magento/magento-static-blocks/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 07:00:42 +0000</pubDate>
		<dc:creator>brad</dc:creator>
				<category><![CDATA[magento]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[static block]]></category>

		<guid isPermaLink="false">http://bradfrostweb.com/blog/?p=177</guid>
		<description><![CDATA[There&#8217;s more than one way to skin a hippo and adding CMS static blocks in Magento is no exception. In case you&#8217;re unfamiliar with CMS static blocks, they are powerful little buggers in Magento&#8217;s admin that allows the site&#8217;s administrator to add and control chunks of HTML that can be displayed throughout the site. They&#8217;re perfect for seasonal banners, sale blocks, return policies, size charts and anything that would make sense to modularize to make maintaining your site easier. But [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_267" class="wp-caption alignnone" style="width: 495px"><img src="http://bradfrostweb.com/wp-content/uploads/2009/11/picture-4.png" alt="Magento Static Block in Action" title="Magento Static Block in Action" width="485" height="244" class="size-full wp-image-267" /><p class="wp-caption-text">Magento Static Block</p></div>
<p>There&#8217;s more than one way to skin a hippo and adding CMS static blocks in Magento is no exception.</p>
<p>In case you&#8217;re unfamiliar with CMS static blocks, they are powerful little buggers in Magento&#8217;s admin that allows the site&#8217;s administrator to add and control chunks of HTML that can be displayed throughout the site.  They&#8217;re perfect for seasonal banners, sale blocks, return policies, size charts and anything that would make sense to modularize to make maintaining your site easier.</p>
<p><em>But wait, aren&#8217;t there already &#8216;callouts&#8217; in Magento?</em> Well, if you&#8217;re talking about those annoying graphics of the dog and chalkboard that take editing multiple files to update then <em>yes</em>. Magento&#8217;s built-in callouts are a terrible way of handling regularly updated content.</p>
<p>Your Magento website should be as updatable as possible to keep you from getting phone calls every time a client wants to advertise a new sale.  Which is exactly why <strong>we want to control these blocks from the admin</strong>.  Keep in mind <a title="Magento 1.4 supports WYSIWIG editor in admin" href="http://www.magentocommerce.com/download/release_notes#Release%20Notes%20-%20Magento%201.4.0.0-alpha2%20%28September%2025,%202009%29" target="_blank">Magento&#8217;s upcoming release of 1.4 will be implementing a WYSIWIG editor</a> so clients can handle their own changes instead of pestering you.</p>
<p><span id="more-177"></span></p>
<h3>Creating a Static Block</h3>
<ol>
<li>Log into your Magento store&#8217;s admin</li>
<li>Navigate to <strong>CMS>Static Blocks</strong></li>
<li>Click <strong>Add New Block</strong> in the top right corner</li>
<li>Give your block a recognizable Block Title such as <strong>Social Media Links</strong> or &#8220;Fall Sale Banner&#8221;</li>
<li>Give your block an <strong>Identifier</strong> which will be used to call the block. Make sure the Identifier is all lowercase and separated by underscores to follow Magento&#8217;s nomenclature i.e. your_block_id</li>
<li>Choose what store view the block belongs to. Just leave as <strong>All Store Views</strong> unless you have a good reason not to</li>
<li>Set Status to <strong>Enabled</strong></li>
<li>Enter your HTML in the <strong>Content</strong> field. The editor is currently a raw HTML editor, but 1.4 will support a WYSIWIG editor.  Alternately, there is a <a href="http://www.magentocommerce.com/extension/586/fontis-wysiwyg-editor">Magento WYSIWIG extention</a> to help out.</li>
<li>Click <strong>Save Block</strong> or <strong>Save and Continue Edit</strong> to save your settings.</li>
</ol>
<p>You&#8217;ve set up your block, so how do you plug it into your site?  Well it depends on how you need it to function, but you have several options at your disposal:</p>
<h3>1. XML</h3>
<p>Adding a static block to a page template is a great way to control global elements of your site, such as footer links, custom callouts in the sidebar (ultimately replacing that damn dog) and more.  You can embed this code in <strong><em>app &gt; design &gt; frontend &gt; default &gt; your_theme &gt; layout.</em></strong> Open the appropriate the file, lets say <strong>catalog.xml</strong> and plunk the following code in the <em><reference name="left"></em> block for our category view:</p>
<pre>
<code>&lt;block type="cms/block" name="your_block_id" before="-"&gt;
      &lt;action method="setBlockId"&gt;&lt;block_id&gt;your_block_id&lt;/block_id&gt;&lt;/action&gt;
&lt;/block&gt;
</code>
</pre>
<p>This code will place the block &#8220;your_block_id&#8221; that you have created in the admin above the content on the category pages (notice the <em>before=&#8221;-&#8221;</em> attribute, which makes sure your block gets displayed before the rest of the content). This is perfect for a seasonal banner that could advertise a current sale on all product listings.</p>
<p>Controlling static blocks with XML is geared for content that will remain in a consistent position in your theme.</p>
<p>Sometimes however you gotta get down and dirty and place your CMS static block inline in your template.  That&#8217;s where the next method comes in.</p>
<h3>2. PHP</h3>
<p>Adding your static block inline with PHP is the quickest way to get your block in your template. Let&#8217;s say you want to add a quick blurb about your return policy right after the &#8220;Add to Cart&#8221; button. The client needs to be able to occassionaly update this blurb from time to keep it current. So you open your template file that contains the &#8220;Add to Cart&#8221; button  <strong><em>app &gt; design &gt; frontend &gt; default &gt; your_theme &gt; template &gt; catalog &gt; product &gt; view &gt; addtocart.phtml. </em></strong>Find the <em>&lt;button&gt;</em> tag and right afterwards add the following code:<br />
<code>[cc lang="php" tab_size="2" lines="40"]<br />
     &lt;?php echo $this-&gt;getLayout()-&gt;createBlock('cms/block')-&gt;setBlockId('your_block_id')-&gt;toHtml(); ?&gt;<br />
[/cc]<br />
</code></p>
<p>This code will add the block <em>&#8220;your_block_id&#8221;</em> right after the button. Jobs done. This method is perfect for getting into those nooks and crannies in Magento&#8217;s vast and awkward file structure.</p>
<h3>3. Shortcode</h3>
<p>This method is used when you need to pull in a static block while in Magento&#8217;s admin creating CMS pages or other static blocks. A possible example would be injecting contact information into multiple CMS pages. So you create a contact static block, and then can insert the contact info on the contact us page, your privacy policy page, customer service page, etc.  If the contact info changes, you simply update the static block and the changes will be reflected across all your CMS pages.</p>
<p><code>{{block type="cms/block" block_id="your_block_id"}}</code></p>
<p>This code will place the block &#8220;your_block_id&#8221; inline in your CMS page.</p>
<h3>Conclusion</h3>
<p>The whole idea of creating these static blocks is to streamline the amount of time it takes to update your site. Clients won&#8217;t have to bother you to change their 800 number. Your design team or site administer can simply FTP a new image and update the image path. Or if you own the site, you don&#8217;t have to go dumpster diving through your template files to find where you put that couple paragraphs of content.</p>
<p>Do you have a preferred method of adding a static blocks or creative uses of static blocks in your Magento site? Let me know in the comments.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>54</slash:comments>
		</item>
		<item>
		<title>Magento Beginner&#8217;s Guide Review: Part 1</title>
		<link>http://bradfrostweb.com/blog/web/magento/magento-beginners-guide-review-part-1/</link>
		<comments>http://bradfrostweb.com/blog/web/magento/magento-beginners-guide-review-part-1/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 02:41:15 +0000</pubDate>
		<dc:creator>brad</dc:creator>
				<category><![CDATA[magento]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[magento beginner's guide]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[packt]]></category>

		<guid isPermaLink="false">http://bradfrostweb.com/blog/?p=161</guid>
		<description><![CDATA[Magento Ecommerce is a powerful, flexible open-source system that can produce great results right out of the box.  At Pod1, we work exclusively with Magento to deliver custom ecommerce websites for high end fashion brands and more.  Because I&#8217;ve seen an incredible amount of client success with Magento I&#8217;m quick to recommend it as an extremely capable  e-commerce solution. While Magento is a great tool, its learning curve is steep (relative to other platforms) and reliable, thorough documentation is often [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_162" class="wp-caption alignnone" style="width: 550px"><img class="size-full wp-image-162" title="1847195946" src="http://bradfrostweb.com/wp-content/uploads/2009/09/1847195946.jpg" alt="Magento Beginner's Guide by Packt Publishing" width="540" height="686" /><p class="wp-caption-text">Magento Beginner&#39;s Guide by Packt Publishing</p></div>
<p>Magento Ecommerce is a powerful, flexible open-source system that can produce great results right out of the box.  At <a title="Ecommerce Web Design Company" href="http://pod1.com">Pod1</a>, we work exclusively with Magento to deliver custom <a title="custom Magento ecommerce websites" href="http://www.pod1.com/magento-ecommerce/">ecommerce websites</a> for high end fashion brands and more.  Because I&#8217;ve seen an incredible amount of client success with Magento I&#8217;m quick to recommend it as an extremely capable  e-commerce solution.</p>
<p>While Magento is a great tool, its learning curve is steep (relative to other platforms) and reliable, thorough documentation is often hard to come by.</p>
<p>Enter the good people at Packt Publishing.   Their Magento books are invaluable tools of navigating a powerful but daunting platform.  I&#8217;ve read <a title="Magento 1.3 Theme Design" href="http://www.packtpub.com/magento-1-3-theme-design/book">Magento 1.3 Theme Design</a> and it does a great job explaining how to customize Magento, so when Packt asked me to review <a title="Magento Beginner's Guide by Packt Publishing" href="http://www.packtpub.com/magento-beginners-guide">Magento Beginner&#8217;s Guide</a> I knew I&#8217;d have  some great reading ahead of me.</p>
<h3>Who This Book is For</h3>
<p>Typically people asking me for e-commerce advice are small business owners or do-it-yourselfers who want an online presence that they can set up and manage themselves.   I recommend Magento to them because of its scalability so as their business grows, their e-commerce presence can grow with it.  However, everyone  who has taken my advice and decided on Magento usually come running back to me after about an hour saying <em>&#8220;Sooooo, how exactly do you do this?&#8221;</em> Several painstaking hours later they are online and ready to dig in.  I then get another call saying something along the lines of <em> &#8220;How do I make the background green?&#8221;</em><span id="more-161"></span></p>
<p>Magento Beginner&#8217;s Guide does a great job introducing you to the platform, its features and holds your hand through a whole build.  It could very well be a &#8220;For Dummies&#8221; book because of the required knowledge needed to get started (essentially that the store owner can turn on a computer and check their email).  All of the content is extremely relevant to the beginner and lays out a great plan of attack for getting a store up and functional.</p>
<h3>Chapter 2: Installation</h3>
<p>The book begins by giving a good introduction of Magento and its features, then the next chapter is entirely devoted to the installation process.   I would guess that the installation process for Magento is one of the biggest turnoffs for beginner site owners.  They get 10% -50% of the way through the installation, depending on how patient they are and walk away because of the hoops they have to jump through to get it up and running.  The book&#8217;s author does a great job highlighting what to look for in a good Magento host, setting up a database, how to properly set permissions (he does a beautiful job explaining the intricacies of permissions and ownership so that any layman can understand) and finalizing the installation.   All the content is valuable however he doesn&#8217;t get into the potential problems associated with a Magento install. These issues, which can be attributed to the host, ftp client, etc can quickly turn a step by step tutorial on its head.  Which is why the <a title="Installation Problems" href="http://www.magentocommerce.com/boards/viewforum/9/">Installation Problems </a>section of Magento&#8217;s forum is so popular.<strong><a title="Installation Problems" href="http://www.magentocommerce.com/boards/viewforum/9/"><strong></strong></a></strong></p>
<h3>Chapter 3:  Categories and Attributes</h3>
<p>Configuring categories and attributes is an essential aspect of setting up a Magento store, and this chapter does a great job defining the myriad dropdowns, tabs and settings needed to set things up right.   Learning how Magento needs at least on active category under &#8220;Default Category&#8221; set to &#8220;Is Anchor&#8221; for the navigation to appear on the frontend is something that is not at all intuitive and in my opinion poorly highlighted in Magento&#8217;s official documentation.</p>
<p>Rice does a great job showing step by step how to create new attributes, assign them to an attribute set (another Magento annoyance of mine), and how to structure categories to get the desired result.  A reoccurring feature of the book is the &#8220;What Just Happened&#8221; notes which appears at the end of each section.  This consistent feature helps recap what&#8217;s going on, reinforces the ideas presented throughout the book, and maintains the &#8220;For Dummies&#8221; element of the book.   If you&#8217;re interested in reading this chapter in its entirety, <a title="Magento Beginner's Guide Chapter 3: Categories and Attributes" href="http://www.packtpub.com/files/magento-sample-chapter-3-categories-and-attributes.pdf">Packt has made it available on their site free to preview</a>.</p>
<h3>Chapter 4: Tax Rules</h3>
<p>Well you learn something new everyday, and I must say I learned a lot from this chapter.  As a web developer (and as a warm-blooded human being), tax rates, rules and classes sound about as fun as a sidekick to the stomach.  Rice highlights the importance of configuring tax rules properly and setting them up for different customer groups so your store stays legal and flexible.  After all, e-commerce is there to spread your brand&#8217;s visibility beyond your hometown (population 380) and onto the national stage (watch out Amazon!).  In order to do this properly, you need to have a great understanding of the intricacies of how taxes are configured for your store.  Learn to hate New York and its per-county rates.  Learn to import an XML sheet to take the pain away from manual data entry (something we did back before Magento 1.1).  Setting up tax rules and classes is another area that Magento Beginner&#8217;s Guide covers a whole lot better than Magento&#8217;s own site.</p>
<h3>Chapter 5: Adding Simple Products</h3>
<p>Chapter 5 goes over arguably the most intuitive part of Magento, which is to add a simple product to your store.   In helping many people get off the ground with their own Magento builds, I&#8217;ve noticed that they can figure their way around the &#8220;Add Product&#8221; panel better than mostly anything else in the backend.  With that being said, the book does a great job defining a lot of the form fields, which tabs are absolutely essential to create a new product, and what areas you can simply ignore.   It also lays the groundwork for further product configurations, which is outlined in Chapter 7.</p>
<h3>Chapter 6: Minimum Customization of Your Store&#8217;s Appearance</h3>
<p>Here we go! Finally, the real branding of the website!  If I just installed Magento for the first time the first thing I would do is figure out how to get rid of that stupid dog and chalkboard plaguing every page of my pristine new site.  This is the chapter where logos get swapped, callouts get removed, footer info gets changed, and the rest of it.  And it is in this chapter where the real weakness of this book lies.  I say this because while this book does a fantastic job running through Magento for non-technical people, it really is impossible to do any REAL customization without getting your hands dirty with some XML, template and skin files.  The book gently touches on customizing the XML to change the callouts, but it fails to mention that its how about 85% of things get customized in Magento is by using a Find and Replace tool in a text editor, and not through the admin panel.</p>
<p>A great guy and former Magento novice Brian Lord of <a title="Artist Designed Tshirts" href="http://dankaclothing.com/">Danka Clothing</a> brilliantly described his first experiences with Magento one he was up and running:</p>
<blockquote><p><span id=":2a6" dir="ltr">I felt like a first grader when I first was messing with it.  Once I got over the hump though it really made a lot of sense.  It took me about 5 minutes before my hands were covered in Magento oil</span></p></blockquote>
<p>At the end of the day, Magento is a freaking Russian nesting doll of directories, XML nodes, code snippets and blocks.  However, it is not the role of <em>Magento Beginner&#8217;s Guide</em> to cover that level of customization. Doing so would  would be akin to teaching organic chemistry to a 2nd grader.  That&#8217;s where <em>Magento 1.3 Theme Design</em> comes into play.  Packt&#8217;s got you covered!  So thankfully, the main weakness of this book is 100% covered once the reader graduates to the next level of Magento Zen.</p>
<h3>Wrap Up</h3>
<p><em>Magento Beginner&#8217;s Guide</em> lays a solid  foundation for comprehending what is ultimately a very capable yet involved  system.  While the learning curve of Magento is steep, I strongly feel that the effort is worthwhile.  One of Magento&#8217;s biggest advantages is its flexibility and everyone who has  taken the time to learn Magento&#8217;s structure is extremely pleased with the results. However, you have to start at the beginning like anything in life, and this book does a great job of setting the cornerstone of the Magento Cathedral of Knowledge.  Stay tuned for Part 2 of this review where I&#8217;ll review customizable products, payment methods and more!</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Magento Enterprise Edition: How to Stifle a Growing Community</title>
		<link>http://bradfrostweb.com/blog/web/ecommerce/magento-enterprise-edition-stifles-growing-community/</link>
		<comments>http://bradfrostweb.com/blog/web/ecommerce/magento-enterprise-edition-stifles-growing-community/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 16:30:00 +0000</pubDate>
		<dc:creator>brad</dc:creator>
				<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[enterprise edition]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://bradfrostweb.com/blog/?p=128</guid>
		<description><![CDATA[Yesterday Varien announced Magento Enterprise Edition, which is a commercially-licensed e-commerce platform built on their free open source version.  From Varien&#8217;s standpoint, I can understand their need to monetize their product, however I feel this is a big disappointment to the growing Magento development community.  With over to 750,000 downloads in less than a year, Magento&#8217;s growth has been quick and has gained a ton of momentum from developers and critics.  What better way to totally reverse that momentum by [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-133" title="Magento Logo" src="http://bradfrostweb.com/wp-content/uploads/2009/04/magento-logo1.png" alt="Magento Logo" width="318" height="100" /></p>
<p>Yesterday Varien <a href="http://www.magentocommerce.com/blog/comments/announcing-the-magento-enterprise-edition/">announced Magento Enterprise Edition</a>, which is a commercially-licensed e-commerce platform built on their free open source version.  From Varien&#8217;s standpoint, I can understand their need to monetize their product, however I feel this is a big disappointment to the growing Magento development community.  With over to 750,000 downloads in less than a year, Magento&#8217;s growth has been quick and has gained a ton of momentum from developers and critics.  What better way to totally reverse that momentum by locking up the best features in a premium version and slapping a huge pricetag on it ($8,900 A YEAR?!).</p>
<p>From a developer&#8217;s standpoint, I was really looking forward to a lot of the features that were being hyped up by the team on the <a href="http://www.magentocommerce.com/roadmap">roadmap</a> and/or forums (specifically the gift cards).  Now that a lot of beneficial features will be locked up in an expensive premium version, I expect to see that excitement and momentum from the community fade.<span id="more-375"></span></p>
<p>I liken Magento Enterprise Edition to <a href="http://en.wikipedia.org/wiki/Trickle-down_economics">Trickle Down Economics</a>.  Varien will argue that developing these new features for the premium version will have a positive impact on the rest of the Magento community.  Those features will essentially trickle down into the free version over time and everyone will benefit from them. But I feel the reality is that as long as Varien is profiting from those advanced features, there&#8217;s absolutely no incentive for them to release them to the rest of the community until they&#8217;ve made their buck.  Varien will be the gatekeeper and will control the growth of the community.</p>
<p>Despite the &#8220;Commitment to Open Source&#8221; paragraph in their announcement, the fact remains now they have to split their attention between their community version and their commercial version.  Varien knows that its community is its biggest asset, so why alienate its passionate user base by moonlighting on a premium product?   Their release of a commercial version muddies its relationship with their community.  In forum discussions Magento team members are amazing resources.  Now that they have premium features, can they fully support the community without giving away their premium features/advice/info?  Will community demand for a certain feature result in a feature that will be released to the community version, or will Varien develop it themselves for their premium version?</p>
<p>It will be interesting to see where it goes from here.  How many people will jump on board with Magneto Enterprise Edition? How will the community react?  How will the development of Magento change now that there are multiple versions?</p>
<p>I continue to look forward developing websites using Magento. I think its a fantastic platform with a host of great tools and a ton of potential.  But I can&#8217;t help but wonder what would have happened if Mozilla came out with a &#8220;premium&#8221; version of Firefox when version 2 was released.  Would Firefox 3 be what it is today?  Is Varien stifling the growth of its open source community?</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

