Git Product home page Git Product logo

layoutunremove's Introduction

#LayoutUnremove Magento Module

Undo removes and action method calls from layout.

Undo removes

This Magento module allows you to easily undo removes from layout.

Here is the checkout.xml layout from base_default package.

    <checkout_multishipping translate="label">
        <!-- Mage_Checkout -->
        <remove name="right"/>
        <remove name="left"/>
    </checkout_multishipping>

And you need to return left column back in your module.

So you should create a layout for your module and add 'unremove' tag to the handle.

    <checkout_multishipping translate="label">
        <unremove name="left" />
    </checkout_multishipping>

Undo action methods calls

Action method calls can be undone easily too. For instance, Magento has the following code in bundle.xml file

<action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>

And there are no such methods as removePriceBlockType, so we wan't to remove this action. We can do it!

<unaction method="addPriceBlockType" />

layoutunremove's People

Contributors

obukhow avatar

Stargazers

 avatar

Watchers

 avatar

layoutunremove's Issues

Unaction

Magento has the following code in bundle.xml file

<action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>

I don't want this action to be callend, so I definetely need a feature like

<unaction method="addPriceBlockType" />

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.