There's no such file on my system (but then I'm still using 2.0.0).
I think it's indeed added in VM 2.0.1b
Please read this developers:I've looked at the
&task=edit for paymentmethods. It
goes wrong in the controller.
administrator\components\com_virtuemart\helpers]vmcontroller.php or
administrator\components\com_virtuemart\controllers\paymentmethod.php
Paymentmethod controller is missing the edit function. It uses the function from vmcontroller.php. This doesn't work good, because it's not redirecting. To solve this, I've created an edit function in administrator\components\com_virtuemart\controllers\paymentmethod.php:
/**
* Handle the edit task
* Still in alpha!
*
* @author Twentronix
*/
function edit(){
$app = JFactory::getApplication();
$task = JRequest::getCmd('task');
$cid = JRequest::getVar( 'cid', array(0), '', 'array' );
$id = (int)$cid[0];
if($task=='edit'){
$link = 'index.php?option=com_virtuemart&view='.'paymentmethod'.'&layout=edit&cid[]='.$id;
$app->redirect($link, $msg);
}
}
You also have to disable getListFooter at administrator\components\com_virtuemart\views\paymentmethod\tmpl\default.php (line 123)
This is just another bug that needs to be solved.
Replace:
<?php echo $this->pagination->getListFooter(); ?>
With:
<?php //echo $this->pagination->getListFooter(); ?>
Disclaimer:
I'm a newby with MVC programming, my solution could perhaps be implemented on a better way, but shows where to look and how to fix it. Perhaps $id doesn't work if you want to edit the second payment. Also this is only for developing, it won't solve all these issues and only editing of paymentviews is possible with this fix (VM 2.0.1b).
TODO:
- All the needed functions for controller of paymentmethods. There is also none for add new payment.
- Also shipmentmethod and perhaps plenty more...
- getListFooter