feat: Add event listener to reload page on cart update
This commit is contained in:
@@ -1032,3 +1032,9 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
prestashop.on('updateCart', function(event) {
|
||||
// np. aktualizacja DOM lub całkowity reload:
|
||||
location.reload(); // najprostsze rozwiązanie
|
||||
});
|
||||
Reference in New Issue
Block a user