Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. <?php if ($block->isDefaultBilling()): ?>
  2. <div class="message info">
  3. <span><?= $block->escapeHtml(__("It's a default billing address.")) ?></span>
  4. </div>
  5. <?php elseif ($block->canSetAsDefaultBilling()): ?>
  6. <div class="field choice set shipping">
  7. <input type="checkbox" id="primary_billing" name="default_billing" value="1" class="checkbox">
  8. <label class="label" for="primary_billing">
  9. <span><?= $block->escapeHtml(__('Use as my default billing address')) ?></span>
  10. </label>
  11. </div>
  12. <?php else: ?>
  13. <input type="hidden" name="default_billing" value="1">
  14. <?php endif; ?>
  15. <input type="hidden" name="default_billing" value="1" />
  16. <?php endif; ?>
  17.  
  18. <?php if ($block->isDefaultBilling()): ?>
  19. <div class="field choice set billing">
  20. <input type="checkbox" id="primary_billing" name="default_billing" value="1" class="checkbox">
  21. <label class="label" for="primary_billing">
  22. <span><?= $block->escapeHtml(__('Use as my default billing address')) ?></span>
  23. </label>
  24. </div>
  25. <?php elseif ($block->canSetAsDefaultBilling()): ?>
  26. <div class="field choice set billing">
  27. <input type="checkbox" id="primary_billing" name="default_billing" value="1" class="checkbox">
  28. <label class="label" for="primary_billing">
  29. <span><?= $block->escapeHtml(__('Use as my default billing address')) ?></span>
  30. </label>
  31. </div>
  32. <?php else: ?>
  33. <input type="hidden" name="default_billing" value="1" />
  34. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement