forked from brooksbingham/theme-elegance
fix:change styling when checkout button is disabled
parent
adcda7f848
commit
b16ae8ff4e
|
@ -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
Loading…
Reference in New Issue