Commit 423109eb780ccbd2fc0e627e7f0c89b89b9b7d50

Authored by Yarik
2 parents b14c8812 d4272254

Merge remote-tracking branch 'origin/master'

Showing 2 changed files with 9 additions and 0 deletions   Show diff stats
CatalogUrlManager.php
... ... @@ -5,6 +5,7 @@
5 5 use artweb\artbox\ecommerce\models\Category;
6 6 use artweb\artbox\ecommerce\models\Product;
7 7 use artweb\artbox\ecommerce\models\ProductVariant;
  8 + use yii\helpers\VarDumper;
8 9 use yii\web\HttpException;
9 10 use yii\web\UrlRuleInterface;
10 11  
... ... @@ -23,6 +24,13 @@
23 24 */
24 25 public function parseRequest($manager, $request)
25 26 {
  27 + /**
  28 + * Fast url fix.
  29 + * Did not helped with catalog products
  30 + */
  31 +// if (!preg_match('@^\/(ru|ua).*@i', $request->url) && $request->url !== '/') {
  32 +// throw new HttpException(404, 'Page not found');
  33 +// }
26 34  
27 35 $pathInfo = $request->getPathInfo();
28 36 $paths = explode('/', $pathInfo);
... ...
models/ProductVariant.php
... ... @@ -36,6 +36,7 @@
36 36 * @property TaxGroup[] $properties
37 37 * @property TaxGroup[] $taxGroupsByLevel
38 38 * @property string $size
  39 + * @property string $imageUrl
39 40 * * From language behavior *
40 41 * @property ProductVariantLang $lang
41 42 * @property ProductVariantLang[] $langs
... ...