I have an extremely simple module that allows a customer to "Buy on an account." The module does not really do anything special (it was just modified from the Cash On Delivery module.)
The only problem is that I offer this payment method for logging in.
So far, my module looks like this:
BuyOnAccount/ etc/ config.xml system.xml Model/ PaymentMethod.php
Content of PaymentMethod.php:
class MyCompany_BuyOnAccount_Model_PaymentMethod extends Mage_Payment_Model_Method_Abstract { protected $_code = 'buyonaccount'; protected $_isInitializeNeeded = true; protected $_canUseInternal = false; protected $_canUseForMultishipping = false; }
The configuration and system xml files contain the usual thing (please let me know if you want to see the code and I will edit)
Therefore, I must disable the module if the user has not logged in (but, obviously, only for the current client session!)
Any ideas?
thanks
source share