Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
cards_list.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
9 $tokens = $block->getPaymentTokens();
10 ?>
11 <?php if (count($tokens) !== 0): ?>
12  <div class="table-wrapper my-credit-cards">
13  <table class="data table table-credit-cards" id="my-orders-table">
14  <caption class="table-caption"><?= /* @noEscape */ __('Stored Payment Methods') ?></caption>
15  <thead>
16  <tr>
17  <th scope="col" class="col card-number"><?= /* @noEscape */ __('Card Number') ?></th>
18  <th scope="col" class="col expire"><?= /* @noEscape */ __('Expiration Date') ?></th>
19  <th scope="col" class="col card-type"><?= /* @noEscape */ __('Type') ?></th>
20  <th scope="col" class="col actions">&nbsp;</th>
21  </tr>
22  </thead>
23  <tbody>
24  <?php
25  foreach ($tokens as $token) {
26  echo $block->renderTokenHtml($token);
27  }
28  ?>
29  </tbody>
30  </table>
31  </div>
32 
33 <?php elseif (!$block->isExistsCustomerTokens()): ?>
34  <div class="message info empty"><span><?= /* @noEscape */ __('You have no stored payment methods.') ?></span></div>
35 <?php endif ?>
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17
__()
Definition: __.php:13
$block
Definition: block.php:8
$_count $_index $_prevOptionId if($block->getOrderOptions()|| $_item->getDescription()) foreach( $items as $_item)( $_item) ?><?php $attributes if( $_item->getOrderItem() ->getParentItem())($_prevOptionId !=$attributes['option_id'])</td >< td > & nbsp
Definition: renderer.phtml:33
endif
Definition: 404.phtml:116
$tokens
Definition: cards_list.phtml:9