feat: Add event listener to reload page on cart update

This commit is contained in:
2025-05-20 00:18:31 +02:00
parent d9304aa88f
commit 7f3360f021

View File

@@ -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
});