|
I am trying to create a module that goes into action after a customer saves a billing address during onepage checkout. I want to replace the checkout/onepage controller with my own, replace the billing address save function with one that calls eventDispatcher.
But the router rewrite in my config.xml file does not seem to be working. Here is the config.xml file…
I am trying to create a module that goes into action after a customer saves a billing address during onepage checkout. I want to replace the checkout/onepage controller with my own, replace the billing address save function with one that calls eventDispatcher.
But the router rewrite in my config.xml file does not seem to be working. Here is the config.xml file…
<?xml version="1.0"?> <config> <modules> <Beverlys_CaTax> <version>0.1.1</version> <depends> <Mage_Customer /> <Mage_Checkout /> </depends> </Beverlys_CaTax> </modules> <global> <resources> <catax_setup> <setup> <module>Beverlys_CaTax</module> <class>Mage_Core_Model_Resource_Setup</class> </setup> <connection><use>core_setup</use></connection> </catax_setup> <catax_write> <connection><use>core_write</use></connection> </catax_write> <catax_read> <connection><use>core_read</use></connection> </catax_read> </resources> <models> <catax> <class>Beverlys_CaTax_Model</class> </catax> </models> <routers> <rewrite> <beverlys_catax_checkout_unopage> <from><![CDATA[#^/checkout/onepage/#]]></from> <override_actions>true</override_actions> <to>/catax/checkout_unopage/</to> </beverlys_catax_checkout_unopage> </rewrite> </routers> </global> <frontend> <events> <beverlys_catax_checkout_controller_onepage_save_billing_address> <observers> <recordOrderTax> <type>singleton</type> <class>catax/observer</class> <method>recordTaxForOrderEvent</method> </recordOrderTax> </observers> </beverlys_catax_checkout_controller_onepage_save_billing_address> </events> <routers> <beverlys_catax> <use>standard</use> <args> <module>Beverlys_CaTax</module> <frontName>catax</frontName> </args> </beverlys_catax> </routers> </frontend> </config>
There are so many upper/lower case rules here, as well as the naming conventions, I imagine there must still be something wrong with this statement. Can you see any error?
My controller is in app/code/local/Beverlys/CaTax/controllers/Checkout/unopageController.php.
Quick help is much appreciated.
Thanks!
|