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

How to overwrite onepageContoller? 
 
maroun
Jr. Member
 
Total Posts:  3
Joined:  2008-04-17
 

I am trying to overwrite onepageController. The controller seems to work well but got empty design when I go to checkout/onepage??
this is my config.xml

<?xml version="1.0"?>
<config>
    <
modules>
        <
Labb_Test>
            <
version>0.1.0</version>
        </
Labb_Test>
    </
modules>
    <global>
        <
rewrite>
            <
labb_test_onepage>
                <
from><![CDATA[#^/checkout/onepage/#]]></from>
                
<to>/test/onepage/</to>
            </
labb_test_onepage>
        </
rewrite>
        
       
    </global>
    <
frontend>
        <
layout>
            <
updates>
                <
checkout>
                    <
file>test.xml</file>
                </
checkout>
            </
updates>
        </
layout>
        <
routers>
            <
labb_test>
                <use>
standard</use>
                <
args>
                    <
module>Labb_Test</module>
                    <
frontName>test</frontName>
                </
args>
            </
labb_test>
        </
routers>
    </
frontend>
</
config>
this is my onepageController
require_once 'Mage/Checkout/controllers/OnepageController.php'

class 
Labb_Test_OnepageController extends Mage_Checkout_OnepageController
{
    
public function saveOrderAction()
    
{
       parent
::saveOrderAction();
    
}

}
my layout file test.xml is a copy of checkout.xml

why the design doesn’t appear when I go to mysit/checkout/onepage
appreciate any help.

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