fix:change styling when checkout button is disabled

bug-new
apurva 2024-11-29 13:02:53 +05:30
parent adcda7f848
commit b16ae8ff4e
2 changed files with 18 additions and 1 deletions

View File

@ -24,6 +24,10 @@ const CheckUpdateQuantityOperations = {
(errorMsg !== "" && !hasError)
) {
$checkoutBtn.addClass("disabled");
$checkoutBtn.css({
'background-color': 'grey',
'color': 'white',
});
}
if (errorMsg !== "") {
@ -46,6 +50,11 @@ const CheckUpdateQuantityOperations = {
isUpdateOperation = false;
$(prestashop.themeSelectors.notifications.container).html("");
$checkoutBtn.removeClass("disabled");
$checkoutBtn.css({
'background-color': '#172554',
'color': 'white',
});
}
},
checkUpdateOperation: (resp) => {

File diff suppressed because one or more lines are too long