Plugin Directory

Changeset 2292000


Ignore:
Timestamp:
04/26/2020 12:04:55 PM (6 years ago)
Author:
expresscheckout
Message:

Adding version 1.0.2

Location:
wc-express-checkout
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wc-express-checkout/tags/1.0.2/templates/woocommerce/express-checkout/checkout/thankyou.php

    r2291991 r2292000  
    6363                    <div class="card-body">
    6464                        <div class="row">
    65                             <div class="col-sm-6">
    66                                 <h4 class="h6">Shipping Address</h4>
    67                                 <p><?php echo $order->get_formatted_shipping_address(); ?></p>
    68                             </div>
    69                             <div class="col-sm-6">
    70                                 <h4 class="h6">Billing Address</h4>
    71                                 <p><?php echo $order->get_formatted_billing_address(); ?></p>
    72                             </div>
    73                             <div class="col-sm-6">
    74                                 <h4 class="h6">Shipping Method</h4>
    75                                 <p><?php echo $order->get_shipping_method(); ?></p>
    76                             </div>
    77                             <div class="col-sm-6">
    78                                 <h4 class="h6">Payment Method</h4>
    79                                 <p class="payments"><?php echo $order->get_payment_method_title(); ?></p>
    80                             </div>
     65                                 <?php $show_shipping = ! wc_ship_to_billing_address_only() && $order->needs_shipping_address(); ?>
     66                                 <?php if( $show_shipping ) { ?>
     67                               <div class="col-sm-6">
     68                                   <h4 class="h6">Shipping Address</h4>
     69                                   <p><?php echo $order->get_formatted_shipping_address(); ?></p>
     70                               </div>
     71                               <div class="col-sm-6">
     72                                   <h4 class="h6">Billing Address</h4>
     73                                   <p><?php echo $order->get_formatted_billing_address(); ?></p>
     74                               </div>
     75                               <div class="col-sm-6">
     76                                   <h4 class="h6">Shipping Method</h4>
     77                                   <p><?php echo $order->get_shipping_method(); ?></p>
     78                               </div>
     79                               <div class="col-sm-6">
     80                                   <h4 class="h6">Payment Method</h4>
     81                                   <p class="payments"><?php echo $order->get_payment_method_title(); ?></p>
     82                               </div>
     83                                 <?php } else { ?>
     84                               <div class="col-sm-6">
     85                                   <h4 class="h6">Billing Address</h4>
     86                                   <p><?php echo $order->get_formatted_billing_address(); ?></p>
     87                               </div>
     88                               <div class="col-sm-6">
     89                                   <h4 class="h6">Payment Method</h4>
     90                                   <p class="payments"><?php echo $order->get_payment_method_title(); ?></p>
     91                               </div>
     92                                 <?php } ?>
    8193                        </div>
    8294                    </div>
  • wc-express-checkout/trunk/templates/woocommerce/express-checkout/checkout/thankyou.php

    r2291754 r2292000  
    6363                    <div class="card-body">
    6464                        <div class="row">
    65                             <div class="col-sm-6">
    66                                 <h4 class="h6">Shipping Address</h4>
    67                                 <p><?php echo $order->get_formatted_shipping_address(); ?></p>
    68                             </div>
    69                             <div class="col-sm-6">
    70                                 <h4 class="h6">Billing Address</h4>
    71                                 <p><?php echo $order->get_formatted_billing_address(); ?></p>
    72                             </div>
    73                             <div class="col-sm-6">
    74                                 <h4 class="h6">Shipping Method</h4>
    75                                 <p><?php echo $order->get_shipping_method(); ?></p>
    76                             </div>
    77                             <div class="col-sm-6">
    78                                 <h4 class="h6">Payment Method</h4>
    79                                 <p class="payments"><?php echo $order->get_payment_method_title(); ?></p>
    80                             </div>
     65                                 <?php $show_shipping = ! wc_ship_to_billing_address_only() && $order->needs_shipping_address(); ?>
     66                                 <?php if( $show_shipping ) { ?>
     67                               <div class="col-sm-6">
     68                                   <h4 class="h6">Shipping Address</h4>
     69                                   <p><?php echo $order->get_formatted_shipping_address(); ?></p>
     70                               </div>
     71                               <div class="col-sm-6">
     72                                   <h4 class="h6">Billing Address</h4>
     73                                   <p><?php echo $order->get_formatted_billing_address(); ?></p>
     74                               </div>
     75                               <div class="col-sm-6">
     76                                   <h4 class="h6">Shipping Method</h4>
     77                                   <p><?php echo $order->get_shipping_method(); ?></p>
     78                               </div>
     79                               <div class="col-sm-6">
     80                                   <h4 class="h6">Payment Method</h4>
     81                                   <p class="payments"><?php echo $order->get_payment_method_title(); ?></p>
     82                               </div>
     83                                 <?php } else { ?>
     84                               <div class="col-sm-6">
     85                                   <h4 class="h6">Billing Address</h4>
     86                                   <p><?php echo $order->get_formatted_billing_address(); ?></p>
     87                               </div>
     88                               <div class="col-sm-6">
     89                                   <h4 class="h6">Payment Method</h4>
     90                                   <p class="payments"><?php echo $order->get_payment_method_title(); ?></p>
     91                               </div>
     92                                 <?php } ?>
    8193                        </div>
    8294                    </div>
Note: See TracChangeset for help on using the changeset viewer.