Skip to content

Commit

Permalink
Admin-Order-Create-Set-Save-address-checkbox-true-as-default-magento#106
Browse files Browse the repository at this point in the history
  • Loading branch information
krnshah authored and Nirav Patel committed Apr 15, 2019
1 parent 0a33704 commit cc57cb9
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,7 @@ endif; ?>
<?= $block->getForm()->toHtml() ?>

<div class="admin__field admin__field-option order-save-in-address-book">
<input name="<?= $block->getForm()->getHtmlNamePrefix() ?>[save_in_address_book]" type="checkbox"
id="<?= $block->getForm()->getHtmlIdPrefix() ?>save_in_address_book"
value="1"
<?php if (!$block->getDontSaveInAddressBook() && $block->getAddress()->getSaveInAddressBook()): ?> checked="checked"<?php endif; ?>
class="admin__control-checkbox"/>
<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"/>
<label for="<?= $block->getForm()->getHtmlIdPrefix() ?>save_in_address_book"
class="admin__field-label"><?= /* @escapeNotVerified */ __('Save in address book') ?></label>
</div>
Expand Down

0 comments on commit cc57cb9

Please sign in to comment.