Skip to content

Commit ef181ca

Browse files
committed
Admin-Order-Create-Set-Save-address-checkbox-true-as-default-magento#106
1 parent 67fc1a0 commit ef181ca

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Sales/view/adminhtml/templates/order/create/form

1 file changed

+2
-1
lines changed

app/code/Magento/Sales/view/adminhtml/templates/order/create/form/address.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ endif; ?>
8989
<?= $block->getForm()->toHtml() ?>
9090

9191
<div class="admin__field admin__field-option order-save-in-address-book">
92-
<input name="<?= $block->getForm()->getHtmlNamePrefix() ?>[save_in_address_book]" type="checkbox" id="<?= $block->getForm()->getHtmlIdPrefix() ?>save_in_address_book" value="1" checked="checked" class="admin__control-checkbox"/>
92+
<input name="<?= $block->getForm()->getHtmlNamePrefix() ?>[save_in_address_book]" type="checkbox" id="<?= $block->getForm()->getHtmlIdPrefix() ?>save_in_address_book" value="1"
93+
<?php if (!$block->getDontSaveInAddressBook()): ?> checked="checked"<?php endif; ?> class="admin__control-checkbox"/>
9394
<label for="<?= $block->getForm()->getHtmlIdPrefix() ?>save_in_address_book"
9495
class="admin__field-label"><?= /* @escapeNotVerified */ __('Save in address book') ?></label>
9596
</div>

0 commit comments

Comments
 (0)