PHOENIX-MEDIA / Magento-CashOnDelivery

Cash on Delivery allows to book additional fee on delivery depending on inland or international delivery.
43 stars 46 forks source link

Disallowed shipping methods not working #36

Closed PeterDeiters closed 6 years ago

PeterDeiters commented 7 years ago

We have a problem with COD payment with Ultimate Shipper Module. I allready tried the fix i found here: $shippingMethodCode = $quote->getShippingAddress()->getShippingMethod(); $disallowedShippingMethods = $this->getConfigData('disallowedshippingmethods', $quote->getStoreId()); $disallowedShippingMethods = explode(',', $disallowedShippingMethods);

            foreach($disallowedShippingMethods as $disallowedShippingMethod){
                if(strpos($shippingMethodCode, $disallowedShippingMethod) !== false){
                    return false;
                }
            }

But its still don´t work for us.