cart icon indicating copy to clipboard operation
cart copied to clipboard

teaser plugin localisation

Open stephangrass opened this issue 7 years ago • 1 comments

localized products will not shown in teaser view.

I think you must change in the repository-function findByUids:

    $query->matching(
        $query->in('uid', $uids)
    );

by something like (I don't know, if this is the best way, but it works):

    foreach ($uids as $key => $value) {
        $constraints[] = $query->equals('uid', intval($value));
        $constraints[] = $query->equals('l10n_parent', intval($value));
    }
    $query->getQuerySettings()->setRespectSysLanguage(TRUE);
    $query->matching(
        $query->logicalAnd(
            $query->logicalOr(
                $constraints
            )
        )
    );

stephangrass avatar Jul 25 '18 08:07 stephangrass

Can you reproduce this issue? Any idea when you can fix it?

stephangrass avatar Aug 27 '18 13:08 stephangrass