Untitled

mail@pastecode.io avatar
unknown
php
2 years ago
1.1 kB
1
Indexable
Never
<?php $awcdp_ts = get_option('awcdp_text_settings');
      $to_pay_text = ( isset($awcdp_ts['to_pay_text']) && ( $awcdp_ts['to_pay_text'] != '' ) ) ? $awcdp_ts['to_pay_text'] : esc_html__('Due Today', 'deposits-partial-payments-for-woocommerce' );
      $future_payment_text = ( isset($awcdp_ts['future_payment_text']) && ( $awcdp_ts['future_payment_text'] != '' ) ) ? $awcdp_ts['future_payment_text'] : esc_html__('Future payments', 'deposits-partial-payments-for-woocommerce' ); 
?>

<?php if( WC()->cart->deposit_info[deposit_enabled] ): ?>

<div class="xoo-wsc-ft-amt">
    <span class="xoo-wsc-ft-amt-label"><?php echo esc_html($to_pay_text); ?></span>
    <span class="xoo-wsc-ft-amt-value"><?php echo wp_kses_post( wc_price(WC()->cart->deposit_info['deposit_amount']) ); ?></span>
</div>
<div class="xoo-wsc-ft-amt">
    <span class="xoo-wsc-ft-amt-label"><?php echo esc_html($future_payment_text); ?></span>
    <span class="xoo-wsc-ft-amt-value"><?php echo wp_kses_post( wc_price(WC()->cart->get_total('edit') - WC()->cart->deposit_info['deposit_amount']) ); ?></span>
</div>

<?php endif; ?>