|
Hi, I’m trying to ovewrite checkout/onepage with my own class. But have a strange problem.
What I do:
1. In my module config.xml I have placed this part of configuration:
<global> <rewrite> <Total_Wsrisk_checkout_onepage> <from><![CDATA[#^/checkout/onepage/#]]></from> <to>/fwsrisk/checkout_onepage/</to> </Total_Wsrisk_checkout_onepage> </rewrite> ... </global> ... <frontend> <routers> <fwsrisk> <use>standard</use> <args> <module>Total_Wsrisk</module> <frontName>fwsrisk</frontName> </args> </fwsrisk> </routers> ... </frontend>
2. I create my own controller and place it under this path /app/code/local/Total/Wsrisk/controllers/Checkout/OnepageController.php
Here is its code:
<?php require_once 'Mage/Checkout/controllers/OnepageController.php';
class Total_Wsrisk_Checkout_OnepageController extends Mage_Checkout_OnepageController {
}
After this I’m trying to open checkout/onepage and see my default checkout (because I didn’t write nothing into the child controller yet).
But I get the next (see attachment).
I get the blank content. But what is interesting - the title of the page is correct. So, definetely, controller rewriting is working.
But other things not.
What have I missed?
Thanks. Waiting for your answer.
btw I were doing all of code below with the help of this tutorial: http://www.magentix.fr/modules-magento/inscription-newsletter-enregistrement-onepage-achats.html#comments (I don’t understand french so I have used only code examples).
Image Attachments
Click thumbnail to see full-size image
|