3

I am trying to overwrite a module cron file like this:

<?xml version="1.0"?>
<config>
    <modules>
        <Nafees_Updatemandrill>
            <version>1.0.0</version>
        </Nafees_Updatemandrill>
    </modules>
    <global>
        <models>

            <ebizmarts_autoresponder>
                <rewrite>
                    <cron>Nafees_Updatemandrill_Model_Cron</cron>
                </rewrite>
            </ebizmarts_autoresponder>

        </models>
    </global>
</config>

but its not working.

Below is whats in that module config file:

<crontab>
    <jobs>
        <ebizmarts_autoresponder>
            <schedule>
                <cron_expr>0 * * * *</cron_expr>
            </schedule>
            <run>
                <model>ebizmarts_autoresponder/cron::autoresponder</model>
            </run>
        </ebizmarts_autoresponder>
    </jobs>
</crontab>
2

You need rewrite cron model class.

So you need to change:

<ebizmarts_autoresponder>
    <rewrite>
        <cron>nafees_updatemandrill/cron::autoresponder</cron>
    </rewrite>
</ebizmarts_autoresponder>

To:

<models>
    <ebizmarts_autoresponder>
        <rewrite>
            <cron>YourModuleNameSpace_ModuleName_Model_Cron</cron>
        </rewrite>
    </ebizmarts_autoresponder>
</models>

See how rewrite class:

3
  • thanks but its not working i updated my question
    – Seefan
    Apr 26 '16 at 12:47
  • ohh i forgot to add _Model . thanks for looking into it
    – Seefan
    Apr 26 '16 at 12:52
  • Can you check this question still haven't found solution for that [link] magento.stackexchange.com/questions/111537/…
    – Seefan
    Apr 26 '16 at 12:56

Your Answer

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

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