Skip to content

Commit

Permalink
1.8.7: #52
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jul 15, 2023
1 parent 971f0ba commit 038cb1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Controller/Response/Catalog.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Magento\Catalog\Model\ResourceModel\Product\Collection as PC;
use Magento\ConfigurableProduct\Model\Product\Type\Configurable;
use Magento\Framework\App\Action\Action as _P;
use Magento\GroupedProduct\Model\Product\Type\Grouped;
use Magento\Review\Model\Review\Summary as RS;
/** 2019-11-17 @final Unable to use the PHP «final» keyword here because of the M2 code generation. */
class Catalog extends _P {
Expand Down Expand Up @@ -49,8 +50,10 @@ function execute():Json {return R::p(function():array {
$pc->addAttributeToFilter('visibility', ['in' => [
V::VISIBILITY_BOTH, V::VISIBILITY_IN_CATALOG, V::VISIBILITY_IN_SEARCH
]]);
# 2023-07-15 «Products of type `bundle` do not have a quantity»: https://github.com/JustunoCom/m2/issues/50
$pc->addAttributeToFilter('type_id', ['neq' => Bundle::TYPE_CODE]);
# 2023-07-15
# 1) «Products of type `bundle` do not have a quantity»: https://github.com/JustunoCom/m2/issues/50
# 2) «Products of type `grouped` do not have a quantity»: https://github.com/JustunoCom/m2/issues/52
$pc->addAttributeToFilter('type_id', ['nin' => [Bundle::TYPE_CODE, Grouped::TYPE_CODE]]);
/**
* 2019-11-22
* @uses \Magento\Catalog\Model\ResourceModel\Product\Collection::addMediaGalleryData() loads the collection,
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "justuno.com/m2"
,"version": "1.8.6"
,"version": "1.8.7"
,"description": "Justuno module for Magento 2"
,"type": "magento2-module"
,"homepage": "https://github.com/justunoCom/m2"
Expand Down

0 comments on commit 038cb1e

Please sign in to comment.