Skip to content

Commit

Permalink
Merge pull request #108 from OXID-eSales/AM-108-FixCheckout
Browse files Browse the repository at this point in the history
AM-108 - fix possibility to complete purchase without paying
  • Loading branch information
mariolorenz authored Jan 16, 2024
2 parents 0f59abc + 6e2dc7b commit 7da4e13
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions views/twig/payment/adyen_assets.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
submitForm = document.getElementById('payment');
{# getting checkout next step button with fallback for apex theme #}
{# ToDo: create a better way to access 'next step' element #}
const nextStepEl = document.getElementById('paymentNextStepBottom') !== null ?
document.getElementById('paymentNextStepBottom') :
document.getElementsByClassName('btn-highlight')[document.getElementsByClassName('btn-highlight').length -1];
const nextStepEl = document.getElementsByClassName('btn-highlight')[0];
{# reset the disabled-status of paymentNextStepBottom if payment is changed #}
document.getElementsByName('paymentid').forEach(function (e) {
e.addEventListener('change', function () {
Expand Down

0 comments on commit 7da4e13

Please sign in to comment.