From: Vincent Vanwaelscappel Date: Tue, 21 Jul 2020 14:17:37 +0000 (+0200) Subject: wait #3805 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=fc5d4bf36d77b1f70854fbd8a3a5eae62463fd26;p=pmi.git wait #3805 @1 --- 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) {