Commit a3483393e8307dfe8c21f57321ada1b70c7cc495
1 parent
3d33f4f5
big commti
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
common/modules/product/CatalogUrlManager.php
... | ... | @@ -37,7 +37,7 @@ class CatalogUrlManager implements UrlRuleInterface { |
37 | 37 | $old_item_name = explode('-',$paths[0] ); |
38 | 38 | |
39 | 39 | if(isset($old_item_name[5]) && isset($old_item_name[5]) == 'dis' ){ |
40 | - $sku = $old_item_name[2].'/'.$old_item_name[3].'/'.$old_item_name[4]; | |
40 | + $sku = $old_item_name[2].'/'.$old_item_name[3].'/'.$old_item_name[4].'/'.$old_item_name[5]; | |
41 | 41 | $product_variant = ProductVariant::find()->where(['sku'=>$sku])->one(); |
42 | 42 | if($product_variant instanceof ProductVariant){ |
43 | 43 | |
... | ... | @@ -50,7 +50,7 @@ class CatalogUrlManager implements UrlRuleInterface { |
50 | 50 | |
51 | 51 | |
52 | 52 | if(isset($old_item_name[2]) && isset($old_item_name[3]) && isset($old_item_name[4])&& isset($old_item_name[5])){ |
53 | - $sku = $old_item_name[2].'/'.$old_item_name[3].'/'.$old_item_name[4].'/'.isset($old_item_name[5]); | |
53 | + $sku = $old_item_name[2].'/'.$old_item_name[3].'/'.$old_item_name[4].'/'.$old_item_name[5]; | |
54 | 54 | $product_variant = ProductVariant::find()->where(['sku'=>$sku])->one(); |
55 | 55 | if($product_variant instanceof ProductVariant){ |
56 | 56 | ... | ... |