Cinder Block Magento AppliedSB API Integration
Mar 9, 2011 · 3 minute readCategory: portfolio
Cinder Block are a USA based company who retail merchandise for a wide catalog bands and artists in the music industry.
The site is based upon a very large Magento Enterprise based multistore system with unique official store fronts for each band.
Cinder Block’s traditional merchandise is clothing, mainly T Shirts though they wanted to expand into selling downloadble music. Rather than use an inhouse system Cinder Block opted to use an external API and chose Applied SB.
The project requirements were broadly to do the follwing:
1. Populate the Product Page with API Data The Applied SB API provides image, title and price data for each product. For albums it also provides details of each individual track. Cinder Block needed to be able to get all of this data automatically from a single reference code or album_id. We created a Magento extension that handles all of the API communications to grab this data and also uses Magento block caching to keep the performance of the pages fast.
2. Allow Streaming of Sample Music from the Product Page
On the product page Cinder Block wanted visitors to be able to play from within the browser the sample tracks that the Applied SB API provides. Again all of this data is provided by the API and the Magento extension grabs and caches this data automatically. The previews are streamed directly from the Applied SB system and the browser player is based upon Sound Manager.
3. Allow Purchase of Downloadable Music through Standard Checkout Procedure
For upgrade compatability and general ease of use we kept modifications to the checkout procedure to a bear minimum. The downloadable products are standard Magento products in every way. On successful checkout the Magento extension uses the event/observer system in Magento to trigger the extra functionality to register the purchase with the Applied SB and to retrieve the download links and utilise Applied SB’s download manager.
This data is stored within a custom order attribute that is set up by the extension and is viewable from within the admin when looking at an order.
4. Supply Download Links Upon Successful Checkout in Account Area and via Email
After retrieving the download links, the extension sends a custom email with the download information. For this we hooked into Magento’s standard email templating system allowing Cinder Block to create a custom email template for each store front as they see fit. This works in the exact same way as all of the other email templates within Magento which means its very powerful and configurable.
All in all the project was both challenging and rewarding. We encountered a few setbacks including core Magento bugs which were reported back to Magento and actioned, no doubt they will be fixed in forth coming Magento enterprise releases.
Here is a quote from Mark at Cinder Block:
"Despite being faced with many challenges, Joseph worked over time to successfully integrate music downloads into our Magento platform. And the follow up refining has been swift and on the mark. The result is incontestable: It just works. Period. Thanks, Joseph!"
Here is a screen shot of one of the product pages including the MP3 previews and also a related products carousel which we threw into the project for free.
You can see the live page here.