// update shipping tab
This commit is contained in:
1 parent
d744b9dbf2
commit
9debffe910
4 files changed
+21
-23
No files matched your search
@@ -27,10 +27,10 @@
|
|||||||
|
|
||||||
<form action="{$action_fees}" id="fees" name="fees" method="post" class="form-horizontal">
|
<form action="{$action_fees}" id="fees" name="fees" method="post" class="form-horizontal">
|
||||||
<fieldset class="col-lg-12">
|
<fieldset class="col-lg-12">
|
||||||
<legend>
|
<h3>
|
||||||
<i class="icon-truck"></i>
|
<i class="icon-truck"></i>
|
||||||
{l s='Fees by carrier, geographical zone and ranges'}
|
{l s='Fees by carrier, geographical zone and ranges'}
|
||||||
</legend>
|
</h3>
|
||||||
{if empty($carriers)}
|
{if empty($carriers)}
|
||||||
{l s='If you only have free carriers, there\'s no need to configure delivery prices.'}
|
{l s='If you only have free carriers, there\'s no need to configure delivery prices.'}
|
||||||
{else}
|
{else}
|
||||||
|
|||||||
@@ -141,21 +141,21 @@
|
|||||||
</div>
|
</div>
|
||||||
{elseif $field['type'] == 'text'}
|
{elseif $field['type'] == 'text'}
|
||||||
<div class="col-lg-9 {if isset($field['suffix'])}input-group{/if}">
|
<div class="col-lg-9 {if isset($field['suffix'])}input-group{/if}">
|
||||||
|
|
||||||
{if isset($field['suffix'])}
|
{if isset($field['suffix'])}
|
||||||
<span class="input-group-addon">
|
<span class="input-group-addon">
|
||||||
{$field['suffix']|strval}
|
{$field['suffix']|strval}
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<input type="{$field['type']}"{if isset($field['id'])} id="{$field['id']}"{/if} size="{if isset($field['size'])}{$field['size']|intval}{else}5{/if}" name="{$key}" value="{$field['value']|escape:'htmlall':'UTF-8'}" {if isset($field['autocomplete']) && !$field['autocomplete']}autocomplete="off"{/if}/>
|
<input type="{$field['type']}"{if isset($field['id'])} id="{$field['id']}"{/if} size="{if isset($field['size'])}{$field['size']|intval}{else}5{/if}" name="{$key}" value="{$field['value']|escape:'htmlall':'UTF-8'}" {if isset($field['autocomplete']) && !$field['autocomplete']}autocomplete="off"{/if}/>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{elseif $field['type'] == 'password'}
|
{elseif $field['type'] == 'password'}
|
||||||
<div class="col-lg-9">
|
<div class="col-lg-9 {if isset($field['suffix'])}input-group{/if}">
|
||||||
|
{if isset($field['suffix'])}
|
||||||
|
<span class="input-group-addon">
|
||||||
|
{$field['suffix']|strval}
|
||||||
|
</span>
|
||||||
|
{/if}
|
||||||
<input type="{$field['type']}"{if isset($field['id'])} id="{$field['id']}"{/if} size="{if isset($field['size'])}{$field['size']|intval}{else}5{/if}" name="{$key}" value="" {if isset($field['autocomplete']) && !$field['autocomplete']}autocomplete="off"{/if} />
|
<input type="{$field['type']}"{if isset($field['id'])} id="{$field['id']}"{/if} size="{if isset($field['size'])}{$field['size']|intval}{else}5{/if}" name="{$key}" value="" {if isset($field['autocomplete']) && !$field['autocomplete']}autocomplete="off"{/if} />
|
||||||
{if isset($field['suffix'])} {$field['suffix']|strval}{/if}
|
|
||||||
</div>
|
</div>
|
||||||
{elseif $field['type'] == 'textarea'}
|
{elseif $field['type'] == 'textarea'}
|
||||||
<div class="col-lg-9">
|
<div class="col-lg-9">
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ class AdminRangePriceControllerCore extends AdminController
|
|||||||
$this->fields_form = array(
|
$this->fields_form = array(
|
||||||
'legend' => array(
|
'legend' => array(
|
||||||
'title' => $this->l('Price ranges'),
|
'title' => $this->l('Price ranges'),
|
||||||
'image' => '../img/t/AdminRangePrice.gif'
|
'icon' => 'icon-money'
|
||||||
),
|
),
|
||||||
'input' => array(
|
'input' => array(
|
||||||
array(
|
array(
|
||||||
@@ -70,13 +70,13 @@ class AdminRangePriceControllerCore extends AdminController
|
|||||||
'label' => $this->l('Carrier:'),
|
'label' => $this->l('Carrier:'),
|
||||||
'name' => 'id_carrier',
|
'name' => 'id_carrier',
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'desc' => $this->l('You can apply this range to a different carrier by selecting its name.'),
|
'hint' => $this->l('You can apply this range to a different carrier by selecting its name.'),
|
||||||
'options' => array(
|
'options' => array(
|
||||||
'query' => $carriers,
|
'query' => $carriers,
|
||||||
'id' => 'id_carrier',
|
'id' => 'id_carrier',
|
||||||
'name' => 'name'
|
'name' => 'name'
|
||||||
),
|
),
|
||||||
'empty_message' => '<div style="margin:5px 0 10px 0">'.$this->l('There is no carrier available for this price range.').'</div>'
|
'empty_message' => '<p class="alert alert-block">'.$this->l('There is no carrier available for this price range.').'</p>'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
@@ -84,7 +84,7 @@ class AdminRangePriceControllerCore extends AdminController
|
|||||||
'name' => 'delimiter1',
|
'name' => 'delimiter1',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'suffix' => $currency->getSign('right').' '.$this->l('(Tax Incl.)'),
|
'suffix' => $currency->getSign('right').' '.$this->l('(Tax Incl.)'),
|
||||||
'desc' => $this->l('Start range (included)'),
|
'hint' => $this->l('Start range (included)'),
|
||||||
'string_format' => '%.2f'
|
'string_format' => '%.2f'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
@@ -93,13 +93,13 @@ class AdminRangePriceControllerCore extends AdminController
|
|||||||
'name' => 'delimiter2',
|
'name' => 'delimiter2',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'suffix' => $currency->getSign('right').' '.$this->l('(Tax Incl.)'),
|
'suffix' => $currency->getSign('right').' '.$this->l('(Tax Incl.)'),
|
||||||
'desc' => $this->l('End range (excluded)'),
|
'hint' => $this->l('End range (excluded)'),
|
||||||
'string_format' => '%.2f'
|
'string_format' => '%.2f'
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'submit' => array(
|
'submit' => array(
|
||||||
'title' => $this->l(' Save '),
|
'title' => $this->l('Save'),
|
||||||
'class' => 'button'
|
'class' => 'btn btn-default'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class AdminRangeWeightControllerCore extends AdminController
|
|||||||
$this->fields_form = array(
|
$this->fields_form = array(
|
||||||
'legend' => array(
|
'legend' => array(
|
||||||
'title' => $this->l('Weight ranges'),
|
'title' => $this->l('Weight ranges'),
|
||||||
'image' => '../img/t/AdminRangeWeight.gif'
|
'icon' => 'icon-suitcase'
|
||||||
),
|
),
|
||||||
'input' => array(
|
'input' => array(
|
||||||
array(
|
array(
|
||||||
@@ -68,36 +68,34 @@ class AdminRangeWeightControllerCore extends AdminController
|
|||||||
'label' => $this->l('Carrier:'),
|
'label' => $this->l('Carrier:'),
|
||||||
'name' => 'id_carrier',
|
'name' => 'id_carrier',
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'desc' => $this->l('You can apply this range to a different carrier by selecting its name.'),
|
'hint' => $this->l('You can apply this range to a different carrier by selecting its name.'),
|
||||||
'options' => array(
|
'options' => array(
|
||||||
'query' => $carriers,
|
'query' => $carriers,
|
||||||
'id' => 'id_carrier',
|
'id' => 'id_carrier',
|
||||||
'name' => 'name'
|
'name' => 'name'
|
||||||
),
|
),
|
||||||
'empty_message' => '<div style="margin:5px 0 10px 0">'.$this->l('There is no carrier available for this weight range.').'</div>'
|
'empty_message' => '<p class="alert alert-block">'.$this->l('There is no carrier available for this weight range.').'</p>'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'label' => $this->l('From:'),
|
'label' => $this->l('From:'),
|
||||||
'name' => 'delimiter1',
|
'name' => 'delimiter1',
|
||||||
'size' => 5,
|
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'suffix' => Configuration::get('PS_WEIGHT_UNIT'),
|
'suffix' => Configuration::get('PS_WEIGHT_UNIT'),
|
||||||
'desc' => $this->l('Start range (included)'),
|
'hint' => $this->l('Start range (included)'),
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'label' => $this->l('To:'),
|
'label' => $this->l('To:'),
|
||||||
'name' => 'delimiter2',
|
'name' => 'delimiter2',
|
||||||
'size' => 5,
|
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'suffix' => Configuration::get('PS_WEIGHT_UNIT'),
|
'suffix' => Configuration::get('PS_WEIGHT_UNIT'),
|
||||||
'desc' => $this->l('End range (excluded)'),
|
'hint' => $this->l('End range (excluded)'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'submit' => array(
|
'submit' => array(
|
||||||
'title' => $this->l(' Save '),
|
'title' => $this->l(' Save '),
|
||||||
'class' => 'button'
|
'class' => 'btn btn-default'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user