mirror of
https://github.com/retailcrm/opencart-module.git
synced 2025-04-04 05:43:37 +03:00
add radio
This commit is contained in:
parent
b1d013dd30
commit
5f6d2480c4
4 changed files with 63 additions and 0 deletions
|
@ -303,6 +303,8 @@ class ControllerExtensionModuleRetailcrm extends Controller
|
|||
'text_order_number',
|
||||
'summ_around',
|
||||
'text_summ_around',
|
||||
'stock_upload',
|
||||
'text_stock_upload',
|
||||
'icml_settings',
|
||||
'icml_service_enabled_label',
|
||||
'icml_service_description',
|
||||
|
|
|
@ -74,6 +74,8 @@ $_['order_number'] = 'Номер заказа';
|
|||
$_['text_order_number'] = 'Передавать номер заказа в RetailCRM';
|
||||
$_['summ_around'] = 'Округление суммы заказа';
|
||||
$_['text_summ_around'] = 'Округлять сумму заказа';
|
||||
$_['stock_upload'] = 'Выгрузка остатков';
|
||||
$_['text_stock_upload'] = 'Выгружать остатки';
|
||||
$_['icml_settings'] = 'Настройки ICML';
|
||||
$_['icml_service_enabled_label'] = 'Выгружать услуги в ICML';
|
||||
$_['icml_service_description'] = 'При включении опции все товары, для которых отключена доставка, будут рассматриваться как услуги и загружаться в CRM как услуги';
|
||||
|
@ -100,6 +102,10 @@ $_['size'] = 'Размер';
|
|||
|
||||
$_['text_yes'] = 'Да';
|
||||
$_['text_no'] = 'Нет';
|
||||
|
||||
$_['stock_from_crm'] = 'Из CRM в Opencart';
|
||||
$_['stock_from_cms'] = 'Из Opencart в CRM';
|
||||
$_['stock_not_upload'] = 'Не выгружать остатки';
|
||||
// Errors
|
||||
$_['error_permission'] = 'У вас недостаточно прав на изменение настроек модуля';
|
||||
|
||||
|
|
|
@ -245,6 +245,32 @@
|
|||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $stock_upload; ?></legend>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label" for="retailcrm_stock_upload"><?php echo $text_stock_upload; ?></label>
|
||||
<div class="col-sm-10">
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="retailcrm_stock_upload" value="2" <?php if (isset($saved_settings['retailcrm_stock_upload']) &&
|
||||
$saved_settings['retailcrm_stock_upload'] == 2) :
|
||||
echo 'checked'; endif; ?> />
|
||||
<?php echo $stock_from_crm; ?>
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="retailcrm_stock_upload" value="1" <?php if (isset($saved_settings['retailcrm_stock_upload']) &&
|
||||
$saved_settings['retailcrm_stock_upload'] == 1) :
|
||||
echo 'checked'; endif; ?> />
|
||||
<?php echo $stock_from_cms; ?>
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="retailcrm_stock_upload" value="0" <?php if (!isset($saved_settings['retailcrm_stock_upload']) ||
|
||||
$saved_settings['retailcrm_stock_upload'] == 0) :
|
||||
echo 'checked'; endif; ?> />
|
||||
<?php echo $stock_not_upload; ?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $text_retailcrm_discount; ?></legend>
|
||||
<div class="form-group">
|
||||
|
|
|
@ -258,6 +258,35 @@
|
|||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>{{ stock_upload }}</legend>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label" class="col-sm-2 control-label" for="module_retailcrm_stock_upload">{{ text_stock_upload }}</label>
|
||||
<div class="col-sm-10">
|
||||
<label class="control-label" class="radio-inline">
|
||||
<input type="radio" name="module_retailcrm_stock_upload" value="2"
|
||||
{% if saved_settings.module_retailcrm_stock_upload is defined and saved_settings.module_retailcrm_stock_upload == 2 %}
|
||||
checked
|
||||
{% endif %} />
|
||||
{{ stock_from_crm }}
|
||||
</label>
|
||||
<label class="control-label" class="radio-inline">
|
||||
<input type="radio" name="module_retailcrm_stock_upload" value="1"
|
||||
{% if saved_settings.module_retailcrm_stock_upload is defined and saved_settings.module_retailcrm_stock_upload == 1 %}
|
||||
checked
|
||||
{% endif %} />
|
||||
{{ stock_from_cms }}
|
||||
</label>
|
||||
<label class="control-label" class="radio-inline">
|
||||
<input type="radio" name="module_retailcrm_stock_upload" value="0"
|
||||
{% if saved_settings.module_retailcrm_stock_upload is not defined or saved_settings.module_retailcrm_stock_upload == 0 %}
|
||||
checked
|
||||
{% endif %} />
|
||||
{{ stock_not_upload }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>{{ text_retailcrm_discount }}</legend>
|
||||
<div class="form-group">
|
||||
|
|
Loading…
Add table
Reference in a new issue