Skip to main content

Posts

Showing posts from June, 2012

Answers to Common Questions

      Magento’s naming conventions are crazy! ·         How do I run a raw query against the database? ·         How do I turn off the price in the layerednavigation? ·         How do I move the admin panel to a new namefor security? ·         How do I use installation and upgrade files in my custommodules? ·         How do I runMagento code without building amodule? ·          How do I show the root catalog category onthe home page? ·         How do I hide the price of products before they go into the cart or if a person is not logged in? ·          How do I find out the proper table name? ·         How do I showMagento products on anon-Magento page? ·         Help, my product changes don’t show up on thefrontend! ·           How do I get the URL of a file in the skin directory? ·           How do I get the Magento Home Directory? ·          How do I format a price value? ·         How do I get the display value of a (multi-)select product attribu

Backend Integration

·        Starting a NewModule ·        The Controller ·        CRUD Controller ·        Read Action ·        Update Action ·        Delete Action ·        Create Action ·        Securing the Controller ·        Client Access

Points and RewardsModule

·        Plan of attack ·        Adding New Attributes to Products ·        Creating a ShellModule ·        Recording Points Ordered ·        Making aModel ·        Event Listeners ·        Dashboard Layout ·        Dynamic Coupons ·        CouponModels ·        Deducting Points

Made to Order Module

·        Example Scenario:  In Magento, everything you wish to sell must be defined as a Simple Product having i ts own SKU and price. But there are times when a merchant wishes to sell items that   do not have a unique identifying code, like a SKU. The reason that some products   might not have an identifying SKU depend largely on the type of item being sold and the organization of themerchant’s business.   These types of situations are especially common for manufacturers who take special  orders for items that they may only make one time. An example that most anybody can relate to would be purchasing produce or meat at a supermarket. Apples  are sold by the pound, purchasing one pound of apples costsmore than purchasing a  half pound of apples, or any fractional weight in between. But, each possible weight  of apples does not have its own predetermined and unique SKU number. The type  of apple probably has a unique PLU, or Price Look-Up code, but the final

CMS Integration

·        CMS Driven Approach ·        Technical Considerations ·        The UserConnectModule ·        Passwords ·        Entity Attributes ·        Dealing with Legacy Attributes ·        Registration ·        Synchronizing Sessions ·        Magento Listeners ·        CMS Sessions ·        Shared Themes ·        Store Driven Integration

CustomModules

Modules are the core of Magento. Every action on the site, frontend or backend, goes through a module. Modules act as containers for one or more of the following: settings, database schemas, rendering objects, utility helpers, data models, or action controllers. A module can be made of all six of these things, or just one. Modules are defined as being on or off in an XML configuration system located in app/etc/modules/. Each module can specify its own settings in an XML file as well, located under themodule’s etc/ directory. Since everything in Magento is a module, and modules have self-contained configuration and database settings, this allows you, as a developer, to extend Magento exactly as the core system is built . Module Structure: ·        Module and     Default Directories All models exist under a package directory. The package serves no purpose other  than to allow for consistent naming of classes. All Magento modules are part of the  Mage pac