public function getStepThreeFieldsValues($carrier) { $id_tax_rules_group = is_object($this->object) && !$this->object->id ? Carrier::getIdTaxRulesGroupMostUsed() : Carrier::getIdTaxRulesGroupByIdCarrier($this->object->id); $shipping_handling = is_object($this->object) && !$this->object->id ? 0 : $this->getFieldValue($carrier, 'shipping_handling'); return array('is_free' => $this->getFieldValue($carrier, 'is_free'), 'id_tax_rules_group' => (int) $id_tax_rules_group, 'shipping_handling' => $shipping_handling, 'shipping_method' => $this->getFieldValue($carrier, 'shipping_method'), 'range_behavior' => $this->getFieldValue($carrier, 'range_behavior'), 'zones' => $this->getFieldValue($carrier, 'zones')); }