All pastes #2109043 Raw Edit

Someone

public text v1 · immutable
#2109043 ·published 2012-02-02 14:01 UTC
rendered paste body
<?xml version="1.0"?>

<config>

    <modules>

       <Vax_CheckoutTotals>

          <version>0.1.0</version>

       </Vax_CheckoutTotals>

    </modules>

    <global>
        <fieldsets>
            <sales_convert_quote>
                <customerbalanceold>
                    <to_order>*</to_order>
                </customerbalanceold>
                
                <ordervalue>
                    <to_order>*</to_order>
                </ordervalue>
                
                <accountbalancenew>
                    <to_order>*</to_order>
                </accountbalancenew>
                
            </sales_convert_quote>
        </fieldsets>
        
        <sales>
            <quote>
                <totals>
                    <ordervalue>
                        <class>Vax_CheckoutTotals_Model_Ordervalue</class>
                        <after>tax</after>
                        <before>customerbalance</before>
                        <!--<renderer>vax_checkouttotals/checkout_ordervalue</renderer>
                        <renderer>enterprise_customerbalance/checkout_total</renderer>-->
                        <renderer>vax_checkouttotals/ordervalue</renderer>
                    </ordervalue>
                    
                    <customerbalanceold>
                        <class>Vax_CheckoutTotals_Model_Customerbalanceold</class>
                        <after>customerbalance</after>
                        <before>customerbalancenew</before>
                    </customerbalanceold>
                    
                    <customerbalancenew>
                        <class>Vax_CheckoutTotals_Model_CustomerBalanceNew</class>
                        <after>customerbalanceold</after>
                        <before>grand_total</before>
                    </customerbalancenew>
                    
                </totals>
            </quote>    
        </sales>
        
        <blocks>
            <checkouttotals>
                <class>Vax_CheckoutTotals_Block</class>
            </checkouttotals>   
        </blocks>



<!-- declare resource setup for new module -->

        <resources>

<!-- resource identifier -->

            <checkouttotals_setup>

<!-- specify that this resource is a setup resource and used for upgrades -->

                <setup>

<!-- which module to look for install/upgrade files in -->

                    <module>Vax_CheckoutTotals</module>

                </setup>

<!-- specify database connection for this resource -->

                <connection>

<!-- do not create new connection, use predefined core setup connection -->

                    <use>core_setup</use>

                </connection>

            </checkouttotals_setup>

            <checkouttotals_write>

                <connection>

                  <use>core_write</use>

                </connection>

            </checkouttotals_write>

            <checkouttotals_read>

               <connection>

                <use>core_read</use>

              </connection>

            </checkouttotals_read>

        </resources>

    </global>

 
    

</config>