SyliusElasticsearchPlugin icon indicating copy to clipboard operation
SyliusElasticsearchPlugin copied to clipboard

Argument 5 (price) issue

Open TELLO0815 opened this issue 6 years ago • 2 comments

Looks like other people have the same issue when using autocomplete:

Argument 5 passed to BitBag\SyliusElasticsearchPlugin\Controller\Response\DTO\Item::__construct() must be of the type string, null given, called in /var/www/html/xxxxx/vendor/bitbag/elasticsearch-plugin/src/Controller/Action/Api/ListProductsByPartialNameAction.php on line 72

Any idea?

TELLO0815 avatar Sep 12 '19 06:09 TELLO0815

The problem is also because of multiple channels. So if there more channels, products coming with price null for the current channel.

Anybody have an idea how to get in the product finder repository the rule to get only products from the current channel?

TELLO0815 avatar Sep 12 '19 08:09 TELLO0815

How about decoration and injection of ChannelContext?

bitbager avatar Oct 18 '19 10:10 bitbager