<?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>Fluid 7 Mutterings &#187; Magento</title>
	<atom:link href="http://fluid7.co.uk/blog/category/php/magento-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://fluid7.co.uk/blog</link>
	<description>where fluff meets grit</description>
	<lastBuildDate>Fri, 18 May 2012 19:44:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Building Magento around Booksonix</title>
		<link>http://fluid7.co.uk/blog/2011/12/19/building-magento-around-booksonix/</link>
		<comments>http://fluid7.co.uk/blog/2011/12/19/building-magento-around-booksonix/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 16:47:45 +0000</pubDate>
		<dc:creator>Matt Martin</dc:creator>
				<category><![CDATA[Clients]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Booksonix]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://fluid7.co.uk/blog/?p=484</guid>
		<description><![CDATA[
			
				
			
		
Practical Action Publishing approached FLUID7 to redesign their Development Bookshop. It was an exciting opportunity to move them off of an ageing OSCommerce site and into a shiny new Magento instal. To really spice things up we wanted to connect their shop with their book  [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ffluid7.co.uk%2Fblog%2F2011%2F12%2F19%2Fbuilding-magento-around-booksonix%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffluid7.co.uk%2Fblog%2F2011%2F12%2F19%2Fbuilding-magento-around-booksonix%2F&amp;source=webjetty&amp;style=normal&amp;service=bit.ly&amp;hashtags=Booksonix,magento&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Practical Action Publishing approached FLUID7 to redesign their Development Bookshop. It was an exciting opportunity to move them off of an ageing OSCommerce site and into a shiny new <a title="Magento: Ecommerce" href="http://www.magentocommerce.com/">Magento</a> instal. To really spice things up we wanted to connect their shop with their book management software, <a title="Booksonix: Booklist Management Service" href="http://www.booksonix.info/">Booksonix</a>. Creating a slick solution that pulls new and updated titles from Booksonix into Magento automatically, cutting out the need for the team to manage titles in both applications independently.</p>
<p>You can check out the new bookshop here: <a href="http://developmentbookshop.com/">http://developmentbookshop.com/</a></p>
<p>&nbsp;</p>
<h3>Redesigning the Bookshop</h3>
<p>The new design pulled in core styles that had been created for the recent group site redesign for <a title="Practical Action Website" href="http://practicalaction.org">Practical Action</a>. Presenting enough similarities in the layout and navigation to enhance the group connections, whilst also creating a unique colour scheme and content elements that would let it stand out from the group and allow it to stand alongside its bookshop peers.</p>
<p><img class=" wp-image-485 alignnone" title="Development Bookshop Home" src="http://fluid7.co.uk/blog/wp-content/uploads/2011/12/blog-bookshop1.jpg" alt="" width="576" height="347" /></p>
<p>The Magento store offers Practical Action Publishing a firm ecommerce platform to promote and distribute their titles from. It includes specific listings for each of the publishers that they sell titles on behalf of, such as Oxfam. Not only can titles be viewed exclusively by Publisher but standard category listings can also be filtered by publisher allowing the visitor to navigate the site in a number of different ways, to find the titles of interest.</p>
<p><img class="alignnone  wp-image-488" title="Oxfam Publisher Listing" src="http://fluid7.co.uk/blog/wp-content/uploads/2011/12/blog-bookshop22.jpg" alt="" width="576" height="347" /></p>
<p>With the designs in place we turned our attention to the build. Anyone working with Magento knows it&#8217;s a real beast to wresstle, but once tamed yeilds exceptional results. After developing a number of Magento sites for our clients we&#8217;ve already overcome the hosting issues. Magento is very large and requires a hefty server to allow it to run quickly, so we&#8217;ve got a sweet server over at Amazon specifically tuned for our Magento sites. Yet the challenge of importing and managing data from Booksonix was to proove pretty tricky.</p>
<p>&nbsp;</p>
<h3>Importing data from Booksonix</h3>
<p>Early on we discovered that booksonix didn&#8217;t have a live XML feed, instead they ftp an XML to your server on a nightly basis. So instead of being able to use a nice XML module already created for Magento imports, we had to write a custom importer that would pick up any un-imported xml files (and their associated jacket images) and push all that data into Magento.</p>
<p>Booksonix XML consists of a range of shortcodes to represent all the fields managed by their book management software. It took some time to determine what fields were relevant to the clients store-front requirements and with a little processing we were able to format the data and assign it to fields in our Magento site. Probably the hardest challenge was developing a way for the client to manage the store categories from within Booksonix. We were able to utilise the custom fields of Booksonix to allow the client to assign titles to categories. When the importer runs it will now create a new Magento category (if it doesn&#8217;t already exist) and assign all coresponding titles to it.</p>
<p>It took a little time to run the first few imports given the sheer volume of data (and image files) that had to be processed, but after a lot of tweaking our importer now runs daily, reading the files from Booksonix and importing anything that is new into Magento.</p>
<p>&nbsp;</p>
<h3>Managing the Magento Store</h3>
<p>Whilst the importing of data into a Magento store dramatically enhances the efficiently of the site, there&#8217;s still a fair amount that needs to be handled manually within the Magento environment. Core Manageo features allow the client to select featured titles and title of the month, leaving bestsellers to be driven by sales. Practical Action Publishing are also responsible for Managing offers and processing sales, but the beatify of this solution is that now they can focus on selling the titles with reduced time managing the data behind the products.</p>
<p>&nbsp;</p>
<p>This article doesn&#8217;t do the coding behind this solution any justice. We ourselves certainly underestimated the challenge of connecting Booksonix with Magento but we are extremely proud of our achievements (and grateful to the client for bearing with us as we worked through the issues). The benefit of managing data in one place (booksonix) and having other systems (Magento) use that data automatically is a model we try and replicate wherever possible, using technology to simplify the work of our clients (and ourselves).</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://fluid7.co.uk/blog/2011/12/19/building-magento-around-booksonix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Add custom content layouts for CMS pages</title>
		<link>http://fluid7.co.uk/blog/2010/09/30/magento-add-custom-content-layouts-for-cms-pages/</link>
		<comments>http://fluid7.co.uk/blog/2010/09/30/magento-add-custom-content-layouts-for-cms-pages/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 15:43:40 +0000</pubDate>
		<dc:creator>James Herring</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://webjetty.co.uk/blog/?p=267</guid>
		<description><![CDATA[
			
				
			
		

Sometimes in the main content block of your theme, the design requires to have a complicated CMS page content layout that stray from using basic linear content (Adding blocks below whatever is under the main content block). You may want various blocks to be set anywhere you want  [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ffluid7.co.uk%2Fblog%2F2010%2F09%2F30%2Fmagento-add-custom-content-layouts-for-cms-pages%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffluid7.co.uk%2Fblog%2F2010%2F09%2F30%2Fmagento-add-custom-content-layouts-for-cms-pages%2F&amp;source=webjetty&amp;style=normal&amp;service=bit.ly&amp;hashtags=cms,custom,layout,magento&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://fluid7.co.uk/blog/2010/09/30/magento-add-custom-content-layouts-for-cms-pages/magento/" rel="attachment wp-att-276"><img src="http://fluid7.co.uk/blog/wp-content/uploads/2010/09/magento.jpg" alt="Magento" title="Magento" width="176" height="160" class="alignright size-full wp-image-276" /></a></p>
<p>Sometimes in the main content block of your theme, the design requires to have a complicated CMS page content layout that stray from using basic linear content (Adding blocks below whatever is under the main content block). You may want various blocks to be set anywhere you want EG the homepage..</p>
<p>This post shows a good clean way to use the layout XML and PPH in your layout files to position blocks of content exactly where you want inside your main content block.<br />
<span id="more-267"></span><br />
One possible solution would be to add Magento&#8217;s block tag shortcode into the CMS page content editor:</p>
<pre class="brush: bash">
{{block type="wjfeatured/wjfeatured" template="wjfeatured/accordian.phtml" limit="5" position_set="1"}}
</pre>
<p>You could then add as many CMS or other module blocks and arrange them in DIVs to get the desired layout. This isn&#8217;t bad as such.. actually its quite cool. But could get a little difficult to manage from a store editors point of view. If the store user doesn&#8217;t understand your HTML, but still wants to manage various content, the layout could break quite easily. Not to mention you don&#8217;t get to take full advantage of Magento&#8217;s Custom Design (being able to overwrite your XML over selected dates.. Great for seasonal promotions).</p>
<p>Here is how you would add a block under the content.</p>
<pre class="brush: bash">
<reference name="content">
   <block type="featured/featured" name="featured" template="blockPath/featured.phtml" >/block>
</reference>
</pre>
<p>That&#8217;s cool, but as I said before it will only appear linear, meaning only allows you to add blocks above or below the content block..<br />
So what we&#8217;ll do is add a new custom block called something like &#8216;custom_content&#8217; that will appear below the existing content block, and apply a new HTML template so we can do what we want to it..</p>
<p>You want to add a new custom block in page.xml that we will reference after in the Design tab on the Magneto CMS edit page screen.</p>
<p>Enter in page.xml (inside the block name=&#8221;root&#8221;):</p>
<pre class="brush: bash">
	    <!-- Custom Block -->
	    <block type="core/template" name="custom_content"></block>
	    <!-- Custom Block END -->
</pre>
<p>Notice we have given the name of the new block &#8220;custom_content&#8221;.. We will now reference this block in the CMS Design screen, instead of the Content screen. Then set the template of the custom_content. In this case a homepage template file (home.phtml)</p>
<pre class="brush: bash">
<reference name="custom_content">
   <!-- Set the template to whatever you want in your template directory -->
   <action method="setTemplate"><template>pathToTemplate/home.phtml</template></action>

    <!-- Add your block -->
   <block type="featured/featured" name="featured" template="blockPath/featured.phtml" ></block>
</reference>
</pre>
<p>This will now inject your blocks into the layout file using the getChildHtml() method. Note the value of &#8216;name&#8217; in the block element matches the value in the method..</p>
<pre class="brush: bash">
<div class="home">
  <?php echo $this->getChildHtml('featured') ?>
</div>
</pre>
<p>That&#8217;s it! Seems a bit complicated but once you&#8217;ve got your head around Magento&#8217;s layout XML it works quite smoothly.</p>
<p>Hope this helps anyone, feel free to comment for any help.</p>
]]></content:encoded>
			<wfw:commentRss>http://fluid7.co.uk/blog/2010/09/30/magento-add-custom-content-layouts-for-cms-pages/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

