From 7f3360f0218c15cd64e28554f34aa3ef793bb5f3 Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Tue, 20 May 2025 00:18:31 +0200 Subject: [PATCH] feat: Add event listener to reload page on cart update --- themes/leo_lulandia/assets/js/custom.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/themes/leo_lulandia/assets/js/custom.js b/themes/leo_lulandia/assets/js/custom.js index e6fbff3f..4119de84 100644 --- a/themes/leo_lulandia/assets/js/custom.js +++ b/themes/leo_lulandia/assets/js/custom.js @@ -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 +}); \ No newline at end of file