Commit 73028f91fb46547a70a682eec347fcad6bee71ca

Authored by Administrator
1 parent bfb74e22

big commti

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
common/modules/product/models/Export.php
@@ -85,7 +85,9 @@ class Export extends Model { @@ -85,7 +85,9 @@ class Export extends Model {
85 ]; 85 ];
86 86
87 $to_write = array_merge ($list, $mods); 87 $to_write = array_merge ($list, $mods);
88 - 88 + foreach($to_write as &$cell) {
  89 + $cell = iconv("UTF-8", "WINDOWS-1251", $cell);
  90 + }
89 91
90 92
91 fputcsv($handle, $to_write, ';'); 93 fputcsv($handle, $to_write, ';');
@@ -104,6 +106,7 @@ class Export extends Model { @@ -104,6 +106,7 @@ class Export extends Model {
104 $fittersArray = []; 106 $fittersArray = [];
105 foreach($filters as $filter){ 107 foreach($filters as $filter){
106 $fittersArray[$filter->taxGroup->alias][] = $filter->name; 108 $fittersArray[$filter->taxGroup->alias][] = $filter->name;
  109 + unset($filter);
107 } 110 }
108 $filterString=[]; 111 $filterString=[];
109 112
@@ -112,6 +115,7 @@ class Export extends Model { @@ -112,6 +115,7 @@ class Export extends Model {
112 $filterString[] = "[{$filterName}:{$row}]"; 115 $filterString[] = "[{$filterName}:{$row}]";
113 116
114 } 117 }
  118 +
115 return implode('*',$filterString); 119 return implode('*',$filterString);
116 } 120 }
117 } 121 }
118 \ No newline at end of file 122 \ No newline at end of file