Php magento事件在签出后不会触发

Php magento事件在签出后不会触发,php,magento,Php,Magento,所以我对magento和所有人都是新手。所以我需要实现类似->的功能,当用户购买特定物品时,用户会自动移动到另一个组。当我在网上搜索时,我发现我可以为此定制模块 <!-- Whether our module is active: true or false --> <active>true</active> <!-- Which code pool to use: core, community or

所以我对magento和所有人都是新手。所以我需要实现类似->的功能,当用户购买特定物品时,用户会自动移动到另一个组。当我在网上搜索时,我发现我可以为此定制模块

        <!-- Whether our module is active: true or false -->
        <active>true</active>

        <!-- Which code pool to use: core, community or local -->
        <codePool>local</codePool>

    </GroupSwitcher_Switch>
</modules>
我在
/public\u html/app/code/local/
中创建了一个名为
GroupSwitcher
的目录,其中包含子目录
Switch
,正如教程所述,我需要
etc
Model

        <!-- Whether our module is active: true or false -->
        <active>true</active>

        <!-- Which code pool to use: core, community or local -->
        <codePool>local</codePool>

    </GroupSwitcher_Switch>
</modules>
所以我有3个文件 My
GroupSwitcher\u Switch.xml
包含

        <!-- Whether our module is active: true or false -->
        <active>true</active>

        <!-- Which code pool to use: core, community or local -->
        <codePool>local</codePool>

    </GroupSwitcher_Switch>
</modules>

        <!-- Whether our module is active: true or false -->
        <active>true</active>

        <!-- Which code pool to use: core, community or local -->
        <codePool>local</codePool>

    </GroupSwitcher_Switch>
</modules>

所以问题是当用户完成结账时它不会启动。。。你能告诉我正确的方向吗?

这只是我的第一个猜测,但有一个拼写错误:

        <!-- Whether our module is active: true or false -->
        <active>true</active>

        <!-- Which code pool to use: core, community or local -->
        <codePool>local</codePool>

    </GroupSwitcher_Switch>
</modules>
<class>groupswitcher_switch/observer</class>
groupswitcher\u开关/观察者
而不是

        <!-- Whether our module is active: true or false -->
        <active>true</active>

        <!-- Which code pool to use: core, community or local -->
        <codePool>local</codePool>

    </GroupSwitcher_Switch>
</modules>
<class>sroupSwitcher_switch/observer</class>
sroupSwitcher\u开关/观察者

是的,它与类有关,但我使用了GroupSwitcher\u Switch\u Model\u Observer,它运行。。。。。非常感谢。