0

I want custom function in Mage Checkout, and i add this code in config and create block, model but it not work, please help me

<global>
    <blocks>
        <checkout>
            <rewrite>
                <onepage_abstract>Name_Address_Block_Onepage_Abstract</onepage_abstract>
            </rewrite>
        </checkout>
    </blocks>
    <models>
        <checkout>
            <rewrite>
                <type_onepage>Name_Address_Model_Type_Onepage</type_onepage>
            </rewrite>
        </checkout>
    </models>
</global>

My block Name/Address/Block/Onepage/Abstract.php

<?php 

class Name_Address_Block_Onepage_Abstract extends Mage_Checkout_Block_Onepage_Abstract
{
}

My model Name/Address/Model/Type/Onepage.php

<?php 

class Name_Address_Model_Type_Onepage extends Mage_Checkout_Block_Onepage_Abstract
{
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.