Browse Source

Hotfix, fix shop frontend pagination

Vova Tkach 5 years ago
parent
commit
e918f4fc23
1 changed files with 2 additions and 1 deletions
  1. 2 1
      engine/fetdata/shop.go

+ 2 - 1
engine/fetdata/shop.go

@@ -43,7 +43,8 @@ func (this *Shop) load() *Shop {
 		FROM
 		FROM
 			shop_products
 			shop_products
 		WHERE
 		WHERE
-			active = 1
+			active = 1 AND
+			parent_id IS NULL
 		;
 		;
 	`
 	`
 	sql_rows := `
 	sql_rows := `