Magento Module Development Tutorial
You've built your amazing Magento e-commerce store for the best client on earth. Her fashion clothing sales are going well, and everything is smooth sailing. Then, while you are at lunch, you get the dreaded call from the client:
"Bruno Mars is wearing our product on Ellen's show tomorrow... I don't care about budget, we MUST have a new Press Release section up TONIGHT! -CLICK-"
The new Press Release section needs to be rolled out with all the normal features:
The client should be able to go into the control panel and as many press releases as she wants. Each press release will have a wysiwyg fieldInclude a file upload for the official PDF of the press releaseEach release may or may not highlight one or more of her productsAll of the above will be included in a specific "PR RSS Feed" for her site.When you click on the press release from the list, you'll see the detail press release page (with an SEO friendly title) and all of the info presented in the standard templateAnd, seriously, we need it before morning.
Magento is a massive, complex and highly flexible e-commerce platform able to run some of the best shopping sites on the internet. However, customizing Magento from scratch can make you want to abandon your high-tech career and take up painting for a living.
Here's how we will quickly solve our Client's crisis, done the Magento way:
Install the free "ultimate module creator" plugin (works with community and enterprise)Create, configure and install your new custom new moduleCustomize the front end to your client's specific needs
Once you've got this down, you can build out a new module with all the above features in less than 20 minutes.
Install the "ultimate module creator" plugin.The easiest way to do this is straight from Magento Connect - http://www.magentocommerce.com/magento-connect/ultimate-modulecreator-
8949.htmlOnce installed click the new menu item "module creator" in the "system" menu.
Enter the basic config settings about your installation and theme
Add a "News Release" entity
To the News Release add the following fields: "Headline" (text), "Body Text" (text area / wysiwyg) and "Document" (which is a "File" - the pdf document she can upload)Confirm the fields you want to display in the RSS feed are set.Go ahead and save to publish your module. (May want to clear your cache at this point)
At this point, the basic module is built and installed in your system. You can add records and begin to see them on the front end. Tweak the installed template files as desired.