Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Adding a step to one page checkout
 
Zardinuk
Jr. Member
 
Total Posts:  7
Joined:  2008-07-14
 

So here I will ask and solve my own problem in one post, so that others may learn from my problem::::::::::

I am trying to add a step to the one-page checkout…

I have added a file called app/code/local/MyCompany/Checkout/Block/Onepage/Installation.php

This file apparently never gets loaded. I’ve put some code in there to redefine the class (which normally causes an exception to come up in the app) and the app loads fine.

When I move this file into the core/Mage path, and set the class name with ^Mage, it loads up just fine.

I’ve copied other peoples code, for the most part, here is my config.xml:

<?xml version="1.0"?>
<config>
    <
modules>
        <
MyCompany_Checkout>
            <
version>0.1.0</version>
        </
MyCompany_Checkout>
    </
modules>
    <global>
        <
blocks>
            <
checkout>
                <
rewrite>
                    <
onepage>MyCompany_Checkout_Block_Onepage</onepage>
                </
rewrite>
                <class>
MyCompany_Checkout_Block</class>
            </
checkout>
        </
blocks>
    </global>
</
config>

Another interesting this is that the rewrite statement is working, I have confirmed this with debug code also.

Been stumped on this one, the error output is being suppressed, is there any way to see what the hold-up is?

SOLUTION!

<?xml version="1.0"?>
<config>
    <
modules>
        <
MyCompany_Checkout>
            <
version>0.1.0</version>
        </
MyCompany_Checkout>
    </
modules>
    <global>
        <
blocks>
            <
checkout>
                <
rewrite>
                    <
onepage>MyCompany_Checkout_Block_Onepage</onepage>
                    <
onepage_installation>MyCompany_Checkout_Block_Onepage_Installation</onepage_installation>
                </
rewrite>
                <class>
MyCompany_Checkout_Block</class>
            </
checkout>
        </
blocks>
    </global>
</
config>

Ta-da! works…

 
Magento Community Magento Community
Magento Community
Magento Community
 
zemigata
Jr. Member
 
Total Posts:  20
Joined:  2008-07-24
Milan
 

ok, good post.

thanks

Z

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top