Times up ...
Did you find that if this were the Check/Money Order moneyorder payment module that you could use:
PHP Code:
if ($_SESSION['shipping']['id'] == 'storepickup_storepickup') {
$this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false);
}
Now just adjust that for your cloned payment module ...
Naturally you figured out to clone the moneyorders.php that all of the references to:
moneyorder become somethingelse
and all the references to MONEYORDER become SOMETHINGELSE ...
If you are breaking out in a sweat ... stand up, walk around ... grab a Pepsi (or other vital drink here) and take a few deep breaths ...
Bookmarks