From c581cd7f2a89fac73dc8853d9e82de1e41a8c566 Mon Sep 17 00:00:00 2001 From: Rafael Patro Date: Mon, 21 Mar 2016 17:40:05 -0300 Subject: [PATCH] #123 Corrigido erro 500 para produto somente PAC GF, e CEP sem PAC GF --- .../PedroTeixeira/Correios/Model/Carrier/CorreiosMethod.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/code/community/PedroTeixeira/Correios/Model/Carrier/CorreiosMethod.php b/app/code/community/PedroTeixeira/Correios/Model/Carrier/CorreiosMethod.php index 6559ada..d200f1d 100644 --- a/app/code/community/PedroTeixeira/Correios/Model/Carrier/CorreiosMethod.php +++ b/app/code/community/PedroTeixeira/Correios/Model/Carrier/CorreiosMethod.php @@ -114,6 +114,9 @@ public function collectRates(Mage_Shipping_Model_Rate_Request $request) $this->_filterMethodByItemRestriction(); + if (empty($this->_postMethods)) { + return false; + } //Show Quotes $this->_getQuotes();