0

表 1 に請求済みアイテムを表示し、表 2 にクレジット カード購入を表示するには、review-order.php に 2 つのテーブルが必要です。

ここでは、コンセプトの基本的な概要を説明します。

    <?php if($gateways == 'bacs') { ?>
      <div id="order_review">   
        <table class="shop_table">
         <thead>            
           <tr>
             <th class="product-name"><?php _e('Invoice Products', 'yit'); ?></th>
             <th class="product-quantity"><?php _e('Qty', 'yit'); ?></th>
             <th class="product-total"><?php _e('Totals', 'yit'); ?></th>
           </tr>
         </thead>

表 2

     <?php if($gateways == 'paypal') { ?>
       <div id="order_review">
        <table class="shop_table">
         <thead>            
           <tr>
             <th class="product-name"><?php _e('Credit Card Products', 'yit'); ?></th>
             <th class="product-quantity"><?php _e('Qty', 'yit'); ?></th>
             <th class="product-total"><?php _e('Totals', 'yit'); ?></th>
           </tr>
         </thead>

問題は、IF 内にラップされると、テーブルが完全に消えてしまうことです。

誰かが少なくともいくつかのより良いアイデアを手伝うことができれば、それは大歓迎です. ありがとう!

4

1 に答える 1