Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
BeycanDeveloper committed Jul 21, 2024
1 parent a4073c5 commit f8348ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions app/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ public function field_display($field, $deprecated, $formData): void
return $themeOptions;
});

Hook::addFilter('edit_config_data_wpforms', function (object $config) {
return $config->disableReminderEmail();
});

if (Helpers::exists()) {
$html = (new Payment('wpforms'))->html();
} else {
Expand Down
7 changes: 3 additions & 4 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@
return `<input type="hidden" name="wpforms[transaction-hash]" value="${transaction.id}" />`
}

app.events.add('confirmationCompleted', async ({transaction}) => {
helpers.closePopup();
await helpers.sleep(100);
app.events.add('confirmationCompleted', async (ctx) => {
ctx.disablePopup = true;
$('.overlay').remove();
$('#' + type).remove();
$(".wpforms-field-" + type).remove();
currentForm.append(transactionInput(transaction))
currentForm.append(transactionInput(ctx.transaction))
helpers.successPopup(paymentCompletedMessage)
currentForm.find('.wpforms-submit').removeClass('wpforms-hidden')
currentForm.submit();
Expand Down

0 comments on commit f8348ca

Please sign in to comment.