1
0
Fork 0
mirror of synced 2025-04-11 05:00:55 +00:00
Изменение внешнего вида и название константы
This commit is contained in:
Ivan Chaplygin 2023-10-25 15:19:30 +03:00
parent 3983f792b7
commit 55746966c0
3 changed files with 7 additions and 7 deletions

View file

@ -1162,11 +1162,11 @@ class ConfigProvider
public static function getTrackNumberStatus()
{
return static::getOption(Constants::DISPLAY_TRACK_NUMBER_DELIVERY);
return static::getOption(Constants::RECEIVE_TRACK_NUMBER_DELIVERY);
}
public static function setTrackNumberStatus($trackNumberStatus)
{
static::setOption(Constants::DISPLAY_TRACK_NUMBER_DELIVERY, $trackNumberStatus);
static::setOption(Constants::RECEIVE_TRACK_NUMBER_DELIVERY, $trackNumberStatus);
}
}

View file

@ -105,5 +105,5 @@ class Constants
];
public const SITES_AVAILABLE = 'sites_available';
public const DISPLAY_TRACK_NUMBER_DELIVERY = 'receive_track_number_delivery';
public const RECEIVE_TRACK_NUMBER_DELIVERY = 'receive_track_number_delivery';
}

View file

@ -2249,18 +2249,18 @@ if (isset($_POST['Update']) && ($_POST['Update'] === 'Y')) {
<tr>
<td colspan="2" class="option-head option-other-top option-other-bottom">
<b>
<label><input class="addr" type="checkbox" name="order-vat" value="Y" <?php if ($optionsOrderVat === 'Y') {
<label><input class="addr" type="checkbox" name="track-number" value="Y" <?php if ($optionsOrderTrackNumber === 'Y') {
echo "checked";
} ?>> <?php echo GetMessage('ORDER_VAT'); ?></label>
} ?>> <?php echo GetMessage('ORDER_TRACK_NUMBER'); ?></label>
</b>
</td>
</tr>
<tr>
<td colspan="2" class="option-head option-other-top option-other-bottom">
<b>
<label><input class="addr" type="checkbox" name="track-number" value="Y" <?php if ($optionsOrderTrackNumber === 'Y') {
<label><input class="addr" type="checkbox" name="order-vat" value="Y" <?php if ($optionsOrderVat === 'Y') {
echo "checked";
} ?>> <?php echo GetMessage('ORDER_TRACK_NUMBER'); ?></label>
} ?>> <?php echo GetMessage('ORDER_VAT'); ?></label>
</b>
</td>
</tr>