Skip to content

Commit

Permalink
fix: hide button when no valid transaction exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mastudillot committed Nov 29, 2024
1 parent 0c85192 commit 3430ab2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/templates/admin/order/transaction-status.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
?>

<div class="tbk-status-button">
<?php if (!empty($viewData)): ?>
<a class="button tbk-button-primary get-transaction-status"
data-order-id="<?php echo $viewData['orderId']; ?>"
data-buy-order="<?php echo $viewData['buyOrder']; ?>"
data-token="<?php echo $viewData['token']; ?>"
href="#">
Consultar Estado
</a>
<?php endif; ?>
</div>

<div class="tbk-status tbk-status-info">
Expand Down

0 comments on commit 3430ab2

Please sign in to comment.