Skip to content

Commit

Permalink
Merge pull request #5 from dogecash/Nugetzrul3-patch-1
Browse files Browse the repository at this point in the history
[Core] Update for WP submission
  • Loading branch information
weoka authored Aug 21, 2021
2 parents 26feaa7 + a6abba7 commit 2601006
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions woocommerce/checkout/form-pay.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
?>
<?php if ( $order->get_payment_method() == $wc_dogec->id) : ?>

<input type="hidden" name="cp_order_remaining_time" value="<?php echo dogec_order_remaining_time($order->get_id()); ?>">
<input type="hidden" name="cp_order_id" value="<?php echo $order->get_id(); ?>">
<input type="hidden" name="cp_order_remaining_time" value="<?php echo esc_html(dogec_order_remaining_time($order->get_id())); ?>">
<input type="hidden" name="cp_order_id" value="<?php echo esc_html($order->get_id()); ?>">

<div class="cp-order-info">
<ul class="cp-order-info-list">
Expand All @@ -65,8 +65,8 @@
<?php if ( $order->needs_payment() ) : ?>
<div class="cp-box-wrapper">
<div class="cp-box-col-1">
<h2><?php echo $wc_dogec->method_title ?></h2>
<p class="cp-payment-msg"><?php echo (dogec_order_remaining_time($order->get_id()) < 0) ? "The payment time for order has expired! Do not make any payments as they will be invalid! If you have already made a payment within the allowed time, please wait." : $wc_dogec->description ?></p>
<h2><?php echo esc_html($wc_dogec->method_title) ?></h2>
<p class="cp-payment-msg"><?php echo esc_html((dogec_order_remaining_time($order->get_id()) < 0) ? "The payment time for order has expired! Do not make any payments as they will be invalid! If you have already made a payment within the allowed time, please wait." : $wc_dogec->description) ?></p>

<div>Amount:</div>
<div class="cp-input-box">
Expand Down Expand Up @@ -142,8 +142,8 @@
<?php if ( $totals ) : ?>
<?php foreach ( $totals as $total ) : ?>
<tr>
<th scope="row" colspan="2"><?php echo $total['label']; ?></th><?php // @codingStandardsIgnoreLine ?>
<td class="product-total"><?php echo $total['value']; ?></td><?php // @codingStandardsIgnoreLine ?>
<th scope="row" colspan="2"><?php echo esc_html($total['label']); ?></th><?php // @codingStandardsIgnoreLine ?>
<td class="product-total"><?php echo esc_html($total['value']); ?></td><?php // @codingStandardsIgnoreLine ?>
</tr>
<?php endforeach; ?>
<?php endif; ?>
Expand Down

0 comments on commit 2601006

Please sign in to comment.