Implement AXO order processing

Implement AXO settings
This commit is contained in:
Pedro Silva 2024-04-10 15:51:19 +01:00
parent fe03215799
commit c71c56973a
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
20 changed files with 546 additions and 136 deletions

View file

@ -99,9 +99,19 @@ class FormFieldGroup {
}
inputValue(name) {
console.log('inputValue:name', this.fields[name].selector);
const baseSelector = this.fields[name].selector;
return document.querySelector(this.fields[name].selector).value;
const select = document.querySelector(baseSelector + ' input');
if (select) {
return select.value;
}
const input = document.querySelector(baseSelector + ' input');
if (input) {
return input.value;
}
return '';
}
}