[FIX] website_sale_aplicoop: fix aplicoopShop -> groupOrderShop reference

After infinite scroll loads new products, the event listeners were
never re-attached because the code was looking for window.aplicoopShop
but the actual object is window.groupOrderShop.
This commit is contained in:
snt 2026-03-05 22:03:34 +01:00
parent 3eeca66551
commit d3f26120b0

View file

@ -422,10 +422,10 @@ console.log("[INFINITE_SCROLL] Script loaded!");
// Re-attach event listeners for newly added products
if (
window.aplicoopShop &&
typeof window.aplicoopShop._attachEventListeners === "function"
window.groupOrderShop &&
typeof window.groupOrderShop._attachEventListeners === "function"
) {
window.aplicoopShop._attachEventListeners();
window.groupOrderShop._attachEventListeners();
console.log("[INFINITE_SCROLL] Event listeners re-attached");
}