<?xml version="1.0"?>
<!--
/**
 * MageWorx
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the MageWorx EULA that is bundled with
 * this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://www.mageworx.com/LICENSE-1.0.html
 *
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@mageworx.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade the extension
 * to newer versions in the future. If you wish to customize the extension
 * for your needs please refer to https://www.mageworx.com/ for more information
 * or send an email to sales@mageworx.com
 *
 * @category   design_default
 * @package    MageWorx_MultiFees
 * @copyright  Copyright (c) 2009 MageWorx (https://www.mageworx.com/)
 * @license    https://www.mageworx.com/LICENSE-1.0.html
 */

/**
 * Multi Fees extension
 *
 * @category   design_default
 * @package    MageWorx_MultiFees
 * @author     MageWorx Dev Team <dev@mageworx.com>
 */
-->
<layout version="0.1.0">
    <default>
        <reference name="head">
            <action method="addCss"><stylesheet>css/multifees.css</stylesheet></action>
        </reference>
    </default>

    <checkout_cart_index>
        <reference name="head">
            <action method="addItem"><type>js_css</type><name>lightbox/css/lightbox.css</name><params/><if/></action>
            <action method="addItem"><type>js</type><name>scriptaculous/scriptaculous.js</name><params/><if/></action>
            <action method="addItem"><type>js</type><name>lightbox/js/lightbox.js</name><params/><if/></action>

            <action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><if/></action>
            <action method="addItem"><type>js</type><name>calendar/calendar.js</name><params/><if/></action>
            <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><params/><if/></action>
        </reference>
        <reference name="checkout.cart">
            <action method="chooseTemplate" />
            <block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/>
            <block type="multifees/fee" name="checkout.cart.fee" as="fee" template="multifees/cart_fee.phtml" />
        </reference>
    </checkout_cart_index>

    <sales_order_view>
        <reference name="order_items">
            <action method="chooseTemplate" />
        </reference>
    </sales_order_view>

    <sales_order_invoice>
        <reference name="invoice_items">
            <action method="chooseTemplate" />
        </reference>
    </sales_order_invoice>

    <sales_order_creditmemo>
        <reference name="creditmemo_items">
            <action method="chooseTemplate" />
        </reference>
    </sales_order_creditmemo>

    <sales_order_print>
        <reference name="sales.order.print">
            <action method="chooseTemplate" />
        </reference>
    </sales_order_print>

    <sales_order_printinvoice>
        <reference name="sales.order.print.invoice">
            <action method="chooseTemplate" />
        </reference>
    </sales_order_printinvoice>

    <sales_order_printcreditmemo>
        <reference name="sales.order.print.creditmemo">
            <action method="chooseTemplate" />
        </reference>
    </sales_order_printcreditmemo>

    <!--sales_email_order_items>
        <reference name="items" template="email/order/items.phtml">
            <action method="setTemplate"><template>multifees/oldversion/email-order-items.phtml</template></action>
        </reference>
    </sales_email_order_items>

    <sales_email_order_invoice_items>
        <reference name="items" template="email/order/invoice/items.phtml">
            <action method="setTemplate"><template>multifees/oldversion/email-order-invoice-items.phtml</template></action>
        </reference>
    </sales_email_order_invoice_items>

    <sales_email_order_creditmemo_items>
        <reference name="items" template="email/order/creditmemo/items.phtml">
            <action method="setTemplate"><template>multifees/oldversion/email-order-creditmemo-items.phtml</template></action>
        </reference>
    </sales_email_order_creditmemo_items-->
</layout>
