Skip to content

Commit

Permalink
bugfix for default theme and many payment methods
Browse files Browse the repository at this point in the history
  • Loading branch information
akislawek committed Nov 16, 2021
1 parent 081e76b commit 0719825
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ In this example we have a custom methods and buttons for placing order - we are
* deploy files into Magento2 folder `app/code/akitogo/MelissaAddressValidator`

### Versions
* 1.0.3 16th November 2021 fixing bug with default Magento theme and multiple payment methods
* 1.0.2 9th June 2021 no code changes, just checked compatibility with 2.4
* 1.0.1 21st July 2020 fixing api response handling
* 1.0.1 15th July 2020 Initial release
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "akitogo/melissa-address-validator",
"description": "Checkout shipping address validation and suggestion using Melissa API.",
"type": "magento2-module",
"version": "1.0.2",
"version": "1.0.3",
"homepage": "https://github.com/akitogo/MelissaAddressValidator",
"license": "MIT",
"keywords": ["magento", "melissa", "validator", "validation", "suggestion","address"],
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ define([
countryData: customerData.get('directory-data'),
triggerPlaceOrder: function () {
window.akitogoMelissaAddressValid = true;
$('.actions-toolbar button.action.checkout').first().trigger('click');
$('.payment-method._active .actions-toolbar button.action.checkout').trigger('click');
},
getCountryName: function (countryId) {
return this.countryData()[countryId] !== undefined ? this.countryData()[countryId].name : '';
Expand Down

0 comments on commit 0719825

Please sign in to comment.