From 7d3e56d4b0da958de9afc0b2fb4d953aaa8b82f1 Mon Sep 17 00:00:00 2001 From: pkarw Date: Fri, 27 Apr 2018 10:50:50 +0200 Subject: [PATCH 1/5] Pagination issue fixed for infinite scroll --- core/pages/Category.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/core/pages/Category.vue b/core/pages/Category.vue index 2dcb0da05e..cbda310c2b 100644 --- a/core/pages/Category.vue +++ b/core/pages/Category.vue @@ -46,6 +46,7 @@ function buildFilterQr () { } function filterChanged (filterOption) { // slection of product variant on product page + this.pagination.current = 0 if (this.filters.chosen[filterOption.attribute_code] && ((_.toString(filterOption.id) === _.toString(this.filters.chosen[filterOption.attribute_code].id)) || filterOption.id === this.filters.chosen[filterOption.attribute_code].id)) { // for price filter it's a string delete this.filters.chosen[filterOption.attribute_code] } else { From 4291dd9ece2e1e90fc192b025c4cbcd8a1d7793e Mon Sep 17 00:00:00 2001 From: pkarw Date: Fri, 27 Apr 2018 22:40:22 +0200 Subject: [PATCH 2/5] Category page refactor --- core/pages/Category.vue | 273 ++--------------------- core/store/helpers/index.js | 74 ++++++ core/store/modules/category/actions.js | 135 ++++++++++- core/store/modules/category/mutations.js | 3 +- src/themes/default/pages/Category.vue | 4 +- 5 files changed, 235 insertions(+), 254 deletions(-) diff --git a/core/pages/Category.vue b/core/pages/Category.vue index cbda310c2b..0faef04223 100644 --- a/core/pages/Category.vue +++ b/core/pages/Category.vue @@ -5,233 +5,14 @@