Originally Posted by
mikestaps
I am trying to code it so that this module would be shut off if USPS is chosen as shipping method. I added this line to the qbms.php file with no luck....
Code:
if (MODULE_SHIPPING_USPS_STATUS($this->code)) {
$this->enabled = ((MODULE_PAYMENT_QBMS_STATUS == 'True') ? true : false);
}
The result was the qbms module not showing up in the admin for install at all!
Any help would be greatly appreciated.
Just tried this code with no better luck
Code:
//BOF turn off QBMS for USPS shipping
if (MODULE_SHIPPING_USPS_STATUS(true)) {
$this->enabled = false;
}
//EOF turn off QBMS for USPS shipping
Bookmarks