@@ -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); |
@@ -285,6 +285,10 @@ |
||
| 285 | 285 | return $this->sendRequest('getOrderInfo', ['order_id' => $order_id], true); |
| 286 | 286 | } |
| 287 | 287 | |
| 288 | + /** |
|
| 289 | + * @param string $method |
|
| 290 | + * @param boolean $sign |
|
| 291 | + */ |
|
| 288 | 292 | protected function sendRequest($method, $data, $sign, $sender = null) { |
| 289 | 293 | if ($sender) { |
| 290 | 294 | $data['sender_id'] = $sender; |