I’m attempting to create a new payment method, similar to the existing PayPal Standard, which redirects the customer offsite. I have copied the general flow of the PayPal module but have obviously been using my own namespace and naming conventions, which I believe is causing problems with Magento “finding” my custom controller which does the redirect (or, rather, loads the block which does it).
class Fontis_Australia_PaymateController extends Mage_Core_Controller_Front_Action
The method I am trying to call is
public function redirectAction()
I had thought that you’d be able to get to this with “paymate/redirect” or “australia/paymate/redirect” but these pages return a 404 error.
I’ve tried copying all the obvious stuff from the Paypal module (aside from names), including some config settings, but to no avail. Is there any information about how to create new controllers, along with naming? Perhaps just what URL I am meant to call.
The URL to access this is then “australia/paymate/redirect”. So it breaks down as the following:
frontName/controllerName/actionName
Where
frontName = name listed in config.xml
controllerName = name of controller, where the format is NameController and Name is the controller’s name
actionName = name of action in controller, where the format is nameAction and name is the action’s name
canyou help me with overriding a controller? I am working with Sales - I am trying to add new action for printing another docs in pdf from Sales -> Orders ... see attachment
echo "blabla"; // only for testing require_once 'Mage/Adminhtml/controllers/Sales/OrderController.php'; // I have found this line in wiki class Nostress_Adminhtml_Sales_OrderController extends Mage_Adminhtml_Sales_OrderController { //here I would like to add my methods ... }