Skip to content

Commit

Permalink
fix: correção no texto e melhoria na aparição do input de parcelas
Browse files Browse the repository at this point in the history
  • Loading branch information
lucastgama committed Nov 28, 2024
1 parent a3e12eb commit bf8b0e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/templates/creditcard-checkout.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
<input name="vindi_cc_yearexpiry" type="hidden">
</div>
</div>
<?php if (empty($_GET['change_payment_method'])) : ?>
<?php if (isset($installments) && !empty($installments)) : ?>
<p class="form-row form-row-wide">
<label for="vindi_cc_installments"><?php _e("Número de Parcelas", VINDI); ?>
Expand All @@ -212,6 +213,7 @@
</select>
</p>
<?php endif; ?>
<?php endif; ?>
<div class="clear"></div>
<?php
if (isset($id)) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/PaymentProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public function change_method_payment($subscription_id){
if (isset($payment_data)) {
$update_response = $this->routes->updateSubscription($subscription_id, $payment_data);
if ($update_response) {
wc_add_notice(__('Metodo de pagamento alterado com sucesso!', 'vindi-payment-gateway'),'success');
wc_add_notice(__('O método de pagamento foi alterado com sucesso!', 'vindi-payment-gateway'), 'success');
return $update_response;
}
}
Expand Down

0 comments on commit bf8b0e4

Please sign in to comment.