// Removed useless option "billing according to the default behavior" in the carrier wizard and carrier options

This commit is contained in:
Damien Metzger
2013-07-17 11:20:58 +02:00
parent 67ec90fae9
commit ee038c868c
3 changed files with 25 additions and 21 deletions
+8
View File
@@ -165,6 +165,14 @@ class CarrierCore extends ObjectModel
public function __construct($id = null, $id_lang = null)
{
parent::__construct($id, $id_lang);
/**
* keep retrocompatibility SHIPPING_METHOD_DEFAULT
* @deprecated 1.5.5
*/
if ($this->shipping_method == Carrier::SHIPPING_METHOD_DEFAULT)
$this->shipping_method = ((int)Configuration::get('PS_SHIPPING_METHOD') ? Carrier::SHIPPING_METHOD_WEIGHT : Carrier::SHIPPING_METHOD_PRICE);
/**
* keep retrocompatibility id_tax_rules_group
* @deprecated 1.5.0
@@ -271,11 +271,6 @@ class AdminCarrierWizardControllerCore extends AdminController
'class' => 't',
'br' => true,
'values' => array(
array(
'id' => 'billing_default',
'value' => Carrier::SHIPPING_METHOD_DEFAULT,
'label' => $this->l('Default behavior')
),
array(
'id' => 'billing_price',
'value' => Carrier::SHIPPING_METHOD_PRICE,
+17 -16
View File
@@ -69,22 +69,23 @@ class AdminShippingControllerCore extends AdminController
</ul>',
'submit' => array()
),
'billing' => array(
'title' => $this->l('Billing'),
'icon' => 'money',
'fields' => array(
'PS_SHIPPING_METHOD' => array(
'title' => $this->l('Billing'),
'cast' => 'intval',
'type' => 'radio',
'choices' => array(
0 => $this->l('According to total price'),
1 => $this->l('According to total weight')
),
'validation' => 'isBool'
),
)
),
// Deprecated since 1.5.5
// 'billing' => array(
// 'title' => $this->l('Billing'),
// 'icon' => 'money',
// 'fields' => array(
// 'PS_SHIPPING_METHOD' => array(
// 'title' => $this->l('Billing'),
// 'cast' => 'intval',
// 'type' => 'radio',
// 'choices' => array(
// 0 => $this->l('According to total price'),
// 1 => $this->l('According to total weight')
// ),
// 'validation' => 'isBool'
// ),
// )
// ),
);
}