From fc5d4bf36d77b1f70854fbd8a3a5eae62463fd26 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 21 Jul 2020 16:17:37 +0200 Subject: [PATCH] wait #3805 @1 --- app/Templates/Category.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Templates/Category.php b/app/Templates/Category.php index e476d52..2888cf2 100644 --- a/app/Templates/Category.php +++ b/app/Templates/Category.php @@ -95,6 +95,7 @@ class Category extends Base continue; } + $product->setLocale($menu->getLocale()); $canonical = $href = $product->getSlugOrTitleAttribute(); if ($root->findOneByHref($canonical) !== null) { continue; @@ -113,6 +114,11 @@ class Category extends Base } } + /** + * @param $variant + * @param $locale + * @return Product[] + */ public static function _getProducts($variant, $locale) { -- 2.39.5