@@ -55,6 +55,11 @@ discard block |
||
55 | 55 | return $result; |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param string $path |
|
60 | + * |
|
61 | + * @return double |
|
62 | + */ |
|
58 | 63 | public function getConfigData($path) |
59 | 64 | { |
60 | 65 | return Mage::getStoreConfig('carriers/' . $this->_name . '/' . $path); |
@@ -222,6 +227,9 @@ discard block |
||
222 | 227 | ]; |
223 | 228 | } |
224 | 229 | |
230 | + /** |
|
231 | + * @param string $param |
|
232 | + */ |
|
225 | 233 | private function getAttributeValue($param, $product) |
226 | 234 | { |
227 | 235 | $attribute = $this->getConfigData('item' . $param); |
@@ -304,6 +304,10 @@ |
||
304 | 304 | return $this->sendRequest('getOrderInfo', ['order_id' => $order_id], true); |
305 | 305 | } |
306 | 306 | |
307 | + /** |
|
308 | + * @param string $method |
|
309 | + * @param boolean $sign |
|
310 | + */ |
|
307 | 311 | protected function sendRequest($method, $data, $sign, $sender = null) |
308 | 312 | { |
309 | 313 | if ($sender) { |