Skip to content

rewrite of dailyCatalogUpdate does not work #6

Description

@jg-development

Hi,
I had a little problem with the rewrite config from the xml (regarding the cron jobs).
Following script:

<?php
require_once  __DIR__ . '/../../../htdocs/app/Mage.php';
Mage::app();

$model = Mage::getModel('catalogrule/observer');

$observer = null;
$model->dailyCatalogUpdate($observer);

With your config magento tries to load the file "Chuvisco_CatalogRuleFix_Model_Resource_Rule_Rule"
(duplicate Rule).
I changed the config to:

    <global>
        <models>
            <catalogrule>
                <rewrite>
                    <action_index_refresh>Chuvisco_CatalogRuleFix_Model_Action_Index_Refresh</action_index_refresh>
                </rewrite>
            </catalogrule>
            <catalogrule_resource>
                <rewrite>
                    <rule>Chuvisco_CatalogRuleFix_Model_Resource_Rule</rule>
                </rewrite>
            </catalogrule_resource>
        </models>
    </global>

That works for the rule part.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions