Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I followed @Marius answer here

it worked fine in one site, in another site below error once i go to

System > configuration > Sales > checkout ,

Fatal error: Class 'StackExchange_Checkout_Helper_Data' not found in /var/www/html/sitename/app/Mage.php on line 547

compilation

Compiler Status : Enabled
Compilation State : Compiled

config.xml - app/code/local/StackExchange/Checkout/etc

<?xml version="1.0"?>
<config>
    <modules>
        <StackExchange_Checkout>
            <version>0.0.1</version>
        </StackExchange_Checkout>
    </modules>
    <global>
        <blocks>
            <checkout>
                <rewrite>
                    <onepage>StackExchange_Checkout_Block_Onepage</onepage><!-- rewrite the onepage chackout block -->
                </rewrite>
            </checkout>
        </blocks>
        <helpers>
            <stackexchange_checkout>
                <class>StackExchange_Checkout_Helper</class>
            </stackexchange_checkout>
        </helpers>
        <models>
            <stackexchange_checkout>
                <class>StackExchange_Checkout_Model</class>
            </stackexchange_checkout>
        </models>
    </global>
    <default>
        <checkout>
            <options>
                <hide_shipping>1</hide_shipping>
                <default_shipping>tablerate_bestway</default_shipping><!-- set the default shipping method code -->
            </options>
        </checkout>
    </default>
    <frontend>
        <routers>
            <checkout>
                <args>
                    <modules>
                        <StackExchange_Checkout before="Mage_Checkout">StackExchange_Checkout</StackExchange_Checkout>
                    </modules>
                </args>
            </checkout>
        </routers>
        <translate>
            <modules>
                <StackExchange_Checkout>
                    <files>
                        <default>StackExchange_Checkout.csv</default>
                    </files>
                </StackExchange_Checkout>
            </modules>
        </translate>
    </frontend>
</config>
share|improve this question
    
post your config.xml too – Qaisar Satti yesterday
    
do you have compilation on or off? – Marius yesterday
    
@QaisarSatti updated the question. – user9999 yesterday
    
@Marius updated the question. – user9999 yesterday
    
Disable the compilation and try again – Marius yesterday
up vote 4 down vote accepted

In case you have the compiler on, you need to disable it each time you add a new extension. You can enable it after that again.

share|improve this answer
1  
i am an idiot, did't followed standard procedure to install. Thanks. – user9999 yesterday

Ensure app/code/local/StackExchange/Checkout/Helper/Data.php exists in the right location.

And ensure the class name is correct StackExchange_Checkout_Helper_Data

Both file location and class name must be case sensitive

share|improve this answer
    
Thanks, cross checked it, file in right path & class name is also correct. – user9999 yesterday
    
Does your configure XML define stackexchange as a helper alias? – Robbie Averill yesterday
    
@RobbieAverill can you guide me path of configure XML file – user9999 yesterday
    
Config.xml in your modules etc folder – Robbie Averill yesterday
1  
@RaphaelatDigitalPianism sorry for delay, it worked fine after i recompiled. – user9999 yesterday

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.