Tuan, please help me just this one time.
I need to correctly create another offline payment plugin (actualy two).
I tried unsuccessfully by creating copy of os_offline.php and os_offline.xml, and renaming them to os_cheque.php and os_cheque.xml, and then just renaming class in os_cheque.php
from
class os_offline extends os_payment {
function os_offline($params) {
parent::setName('OS_OFFLINE ');
...
to
class os_cheque extends os_payment {
function os_cheque($params) {
parent::setName('OS_CHEQUE');
...
and changing reference to file in os_cheque.xml
from
<filename>os_offline.php</filename>
to
<filename>os_cheque.php</filename>
But, when I install this new plugin and publish it, and unpublish PayPal, Registration Form goes crazy, expanding to whole screen and losing CSS and all buttons.
If I keep PayPal published, Registration form looks OK, but when I use new payment palugin as payment method, it goes blank upon pressing Submitt button.
What is correct way to do it?
I just need three ofline payment methods and no online.
Please help.