add a new delay

This commit is contained in:
Marion Muszynski 2017-11-14 17:09:17 +01:00
parent 455cfeff90
commit 83171ab6c2
3 changed files with 21 additions and 0 deletions

View File

@ -570,6 +570,11 @@ class AdminPrivateSalesSales extends AdminTab {
'value' => 9,
'selected' => ($this->cursale!==NULL && $this->cursale->delivery_delay== 9?true:false)
),
array(
'label' => $this->l('Livraison 72h Noel'),
'value' => 10,
'selected' => ($this->cursale!==NULL && $this->cursale->delivery_delay== 10?true:false)
),
);
// Delivery delay
$input = array(

View File

@ -161,6 +161,9 @@ if (!class_exists('SaleDelay')) {
case '8':
return '48h Noël';
break;
case '10':
return '72h Noël';
break;
case '9':
return 'Spé';
break;
@ -197,6 +200,9 @@ if (!class_exists('SaleDelay')) {
case '8':
return '48h Noël';
break;
case '10':
return '72h Noël';
break;
default:
return 'Unknown';
break;
@ -235,6 +241,9 @@ if (!class_exists('SaleDelay')) {
case '8':
return 'sous 48h';
break;
case '10':
return 'sous 72h';
break;
case '9':
return 'spécifique';
break;
@ -271,6 +280,9 @@ if (!class_exists('SaleDelay')) {
case '8':
return 'de 48h';
break;
case '10':
return 'de 72h';
break;
default:
return 'de un poco días';
break;

View File

@ -26,4 +26,8 @@
<div class="delivery_delay">
<img src="{$img_ps_dir}delay/48h_noel_{$cookie->id_lang}.png" alt="72h">
</div>
{elseif $delivery_delay == 10}
<div class="delivery_delay">
<img src="{$img_ps_dir}delay/72h_noel_{$cookie->id_lang}.png" alt="72h">
</div>
{/if}