Product type in the product filter block is not filtering products.
I did track this problem down to /packages/community_store/src/CommunityStore/Product/ProductList.php
It looks like it's failing to identify $this->productType as an object
if (is_object($this->productType)) { $query->andWhere("pType = ?")->setParameter($paramcount++, $this->productType->getTypeID()); }
Removing the is_object check and using $this->productType seems to work for the initial product filtering
if ($this->productType) { $query->andWhere("pType = ?")->setParameter($paramcount++, $this->productType); }
The filter then breaks if an additional attribute is selected. Seems to be something to do with param count. Rather than using paramcount adding param name fixes this issue as well
if ($this->productType) { $query->andWhere("pType = :pType")->setParameter('pType', $this->productType); }
Product type in the product filter block is not filtering products.
I did track this problem down to /packages/community_store/src/CommunityStore/Product/ProductList.php
It looks like it's failing to identify $this->productType as an object
if (is_object($this->productType)) { $query->andWhere("pType = ?")->setParameter($paramcount++, $this->productType->getTypeID()); }
Removing the is_object check and using $this->productType seems to work for the initial product filtering
if ($this->productType) { $query->andWhere("pType = ?")->setParameter($paramcount++, $this->productType); }
The filter then breaks if an additional attribute is selected. Seems to be something to do with param count. Rather than using paramcount adding param name fixes this issue as well
if ($this->productType) { $query->andWhere("pType = :pType")->setParameter('pType', $this->productType); }