Magento Expert Forum - Improve your Magento experience

Results 1 to 10 of 10

Magento 2 - Idea and Structure

  1. #1
    Junior Member jaredovi's Avatar
    Join Date
    Mar 2013
    Posts
    69
    Thanks
    2
    Thanked 11 Times in 8 Posts

    Thumbs up Magento 2 - Idea and Structure

    After success of Magento 1.x, Magento Team in a process of developing Magento 2. Magento 2 is an open source eCommerce R&D project facilitating the improvement of Magento Core products. With the new and improved features in Magento 2, developers will be able to offer more functionality to merchants and continue to grow with the platform. Magento 2 is a prospective future version of the Magento e-commerce software, currently still in the development stage. This is the first of many posts in the next few months that will provide further insight and updates about the progress, process, technical architecture and strategy as well as many other facets that involve this important project and milestone for the Magento community.

    Some of Features That Magento 2 Offers



    • Magento 2.0 will run on PHP 5.3 and Zend Framework as 1.0. And it will support MSSQL, Oracle and some other database as well. This is a good news for Windows Platform Server. We can see that Magento keep growing and seek to support more and more popular platform soon
    • Performance is always an issue for Magento so it is recognized as resource hungry and not efficient. The team of Magento keep improving the performance of Magento version by version. With the 2.0, the performance of Magento will be at least 20% more faster than the latest Magento 1.x versions
    • Magento 2.0 uses jQuery library as its default JavaScript library. It’s a big plus for those who want to get rid of prototype and jquery conflict
    • The modules like catalog, customer, checkout, CMS, sales, etc will be components with high code coupling between each other. Now if you don’t want to use a certain module, you can simply disable it and write your own one
    • Magento uses Zend Framework but you can’t get this information easily as the directories structure of Magento 1.x series are quite different from the Zend Framework. For Magento 2.0, the directories structures will be quite similar to the Zend Framework. This is very Exciting for theme development as things like Layout Templates, CSS, Images, JavaScript become more modular. You can manage all of them within a module folder
    • Previously Magento 1.x using module.xml file @ app/etc/modules/ to activate our module but in Magento2 it has been changed. Now we will use config.xml file to activate our module means adding active and codePool tags into your config.xml. Like:


    HTML Code:
    <config>
        <modules>
            <Mage_Catalog>
                <version>1.6.0.0.20</version>
                <active>true</active>
                <codePool>core</codePool>
            </Mage_Catalog>
        </modules>
    .....
     In Magento2 , factory method has been removed .The way you call models, helpers, blocks is fully different in Magento2 .Instead of factory names you need to use the full class name now as:

    PHP Code:
        Mage::helper(‘Mage_Catalog_Helper_Product_View’);
        
        
        
    Mage::getModel(‘Mage_Catalog_Model_Category’);
        
        
        
    Mage::getSingleton(‘Mage_Catalog_Model_Session’); 
    And Change in layout xml is introduced in Magento 2. Each module has it’s own layout.xml in module view folder. And Block type uses Class name of block instead of class alias as :

    HTML Code:
    <block type="Mage_Catalog_Block_Product_Compare_Sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="product/compare/sidebar.phtml"/>
                <block type="Mage_Core_Block_Template" name="right.permanent.callout" template="Mage_Page::callouts/right_col.phtml">
                    <action method="setImgSrc"><src>Mage_Catalog::images/media/col_right_callout.jpg</src></action>
                    <action method="setImgAlt" translate="alt" module="Mage_Catalog"><alt>Keep your eyes open for our special Back to School items and save A LOT!</alt></action>
                </block>

    Magento 2 Admin



    • Introduction of Visual design editor. The Visual Design Editor is an easy to use, “drag and drop” interface for editing Magento Page Layout. Implementation of the Visual Design Editor means that modifying the arrangement/configuration of Containers and Blocks no longer requires specialized technical knowledge; many of these changes can be made easily in the Admin Panel by any site administrator. The Visual Design Editor represents website pages and page types as collections of block elements: Blocks and Containers.
    • All-new look & feel of backend UI — “Magento 2 backend” theme
    • Block: A block is a block-level HTML element on a page, which can be manipulated by the visual design editor. Regardless of whether the element has content or not, the design editor visually distinguishes it from other elements and provides necessary controls for manipulating it. In future: A block cannot contain other blocks
    • Container: A container, like a block, is a block-level HTML element which is visually distinguished and can be manipulated by the design editor. Containers don’t have own content, but consist of other blocks or containers. Containers represent area for “dropping”. Container stores information about sort order for elements within
    • Removal of Category Tree from Create Product Page in Admin, Addition of Drag – n – Drop Product image feature , Change Attribute set while creating and editing of Product


    Magento 2 Admin Structure






    Directory structure and Module Structure of Magento 2




    Source: Magento

    View more threads in the same category:


  2. #2
    Junior Member
    Join Date
    Aug 2014
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi, The config is the beating heart of the Magento System. It describes, in whole, almost any module, model, class, template, etc. than you'll need to access. It's a level of abstraction that most PHP developers aren't used to working with, and while it adds development time in the form of confusion and head scratching, it also allows you an unprecedented amount of flexibility as far as overriding default system behaviors go.

  3. #3
    New member
    Join Date
    May 2016
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Pitamaas is one of the best Web Development Company in India giving ecommerce site Development & outlining, shopping basket advancement, site improvement, web applications & portable applications improvement administrations.

  4. #4
    New member
    Join Date
    Mar 2016
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for sharing such a useful topic regarding Magento 2.
    As we know, Magento 2 is the next generation open source platform that is faster, easier and more secure than Magento 1.
    Migration to Magento 2 promises greater security, performance, and scalability for businesses.

    Here I am also sharing video about" Exploring SEO Potential of Magento 2."
    https://www.youtube.com/watch?v=-OCqNf0cdeY

  5. #5

  6. #6

  7. #7
    Junior Member
    Join Date
    Jun 2016
    Posts
    201
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thank you! read more extensions for magento:
    Magento 2 Extensions

    Magento 2 Free Extensions

  8. #8
    Junior Member superkool2011's Avatar
    Join Date
    Nov 2014
    Location
    Vietnam
    Posts
    243
    Thanks
    49
    Thanked 41 Times in 40 Posts

    Default

    With Magento 2, everything is placed directly under the “app” structure, except for config.xml. It is easy for you to access all templates, layouts and js, css file. Mangento 2 also support new built-in technologies under the hood.
    Name:  New built in technologies magento 2.jpg
Views: 69
Size:  47.8 KB

    How to upgrade magento 1.9 to 2.0: https://www.magentocommerce.com/mage...tion-tool.html

  9. #9
    Junior Member
    Join Date
    Apr 2015
    Posts
    138
    Thanks
    0
    Thanked 3 Times in 3 Posts

  10. #10
    New member
    Join Date
    May 2017
    Location
    Ahmedabad
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thnks for this featuresof Magento 2.. And if you want you can also have a look on more features and extensions of Magento..

    Magento
    Magento 2
    Web Development Company

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •