Александр Лубянский

Участники
  • Публикации

    239
  • Зарегистрирован

  • Посещение

  • Days Won

    2

Александр Лубянский last won the day on January 16 2017

Александр Лубянский had the most liked content!

О Александр Лубянский

  • Звание
    Профи

Profile Information

  • Gender
    Not Telling

Посетители профиля

1836 просмотров профиля
  1. Перестал работать претифото, поставил фоторама, после обновления слетела. По фото, при экспорте не вижу в параметрах для выгрузки, загрузчик стародревний, не переходил на новый по скольку, опять же та же задница была, перезаливать фото на 300 объектов, ну это совсме не дело
  2. Обновились, прекрасно! И опять гемора до жопы! Ну почему нельзя сделать все нормально и красиво?! Фоторама перестала работать, экспорт объектов без фото экспортируется........ Дмитрий, это очередное фиаско!
  3. Вопросы решился вычленением if (count($category_structure['childs'][$child_id]) > 0) { $hasChilds = true; $name = $category_structure['catalog'][$child_id]['name']; } else { $name = $category_structure['catalog'][$child_id]['name']; } из файла _menu_decorator.php Однако... выгрузка из exel free тоже не работает... ошибка, выгружается пустой файл data2018-11-25_20_04_page1.xlsx
  4. private static function buildChildNodes($categoryID, $category_structure, $current_category_id) { if ( !is_array($category_structure['childs'][$categoryID]) ) { return ''; } $rs = '<ul class="menu">'; foreach ( $category_structure['childs'][$categoryID] as $child_id ) { $hasChilds=false; if ( count($category_structure['childs'][$child_id]) > 0 ) { $hasChilds=true; $name = '<span class="menuparent">'.$category_structure['catalog'][$child_id]['name'].'</span>'; } else { $name = $category_structure['catalog'][$child_id]['name']; } if($hasChilds){ $li_open='<li class="menuparent">'; }else{ $li_open='<li>'; } if($category_structure['catalog'][$child_id]['url']!=''){ if ( preg_match('/^http/', $category_structure['catalog'][$child_id]['url']) ) { $rs .= $li_open.'<a class="'.($hasChilds ? 'menuparent' : '').'" href="'.$category_structure['catalog'][$child_id]['url'].'">'.$name.'</a>'; } else { $rs .= $li_open.'<a class="'.($hasChilds ? 'menuparent' : '').'" href="'.SITEBILL_MAIN_URL.'/'.$category_structure['catalog'][$child_id]['url'].'">'.$name.'</a>'; } }else{ $rs .= $li_open.'<a class="'.($hasChilds ? 'menuparent' : '').'" href="'.SITEBILL_MAIN_URL.'/topic'.$child_id.'.html">'.$name.'</a>'; } $rs .= self::buildChildNodes($child_id, $category_structure, 0); $rs .= '</li>'; } $rs .= '</ul>'; return $rs; }
  5. На старшую версию опуститься откровенно говоря проблематично(((( Не понимаю на что ругается! То ли из за версии php? то ли еще что то... Может костыль какой прикрутить?!
  6. После обновления php до версии 7.2, получаю ошибку Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/data/www/xxxxxxxxxx.com/template/frontend/newhouse/main/newhouse_menu_decorator.php on line 52
  7. После обновления вот такая бида при просмотре объекта: Warning: Illegal string offset 'type' in /home/u391435182/public_html/apps/system/lib/model/model.php on line 991Warning: Illegal string offset 'type' in /home/u391435182/public_html/apps/system/lib/model/model.php on line 996
  8. В итоге.... просмотрел бекапы и в частности этот кусок: protected function currencyCheck($currency_string){ $currencies=array('RUR', 'RUB', 'USD', 'EUR', 'UAH', 'BYR', 'KZT'); if($currency_string!=''){ if(in_array($currency_string, $currencies)){ if($currency_string==='RUB'){ return 'RUR'; } return $currency_string; } if(preg_match('/₽/i',$currency_string)){ return 'RUR'; } if(preg_match('/&#8381/i',$currency_string)){ return 'RUR'; } if(preg_match('/рубль/i',$currency_string)){ return 'RUR'; } if(preg_match('/руб./i',$currency_string)){ return 'RUR'; } if(preg_match('/р./i',$currency_string)){ return 'RUR'; } if(preg_match('/доллар/i',$currency_string)){ return 'USD'; } if(preg_match('/США/i',$currency_string)){ return 'USD'; } if(preg_match('/$/i',$currency_string)){ return 'USD'; } if(preg_match('/евро/i',$currency_string)){ return 'EUR'; } if(preg_match('/€/i',$currency_string)){ return 'EUR'; } if(preg_match('/гривна/i',$currency_string)){ return 'UAH'; } if(preg_match('/грн/i',$currency_string)){ return 'UAH'; } if(preg_match('/теньге/i',$currency_string)){ return 'KZT'; } Поправил, как в рабочей версии: static function currencyCheck($currency_string){ $currencies=array('USD', 'EUR', 'RUB'); if($currency_string!=''){ if(in_array($currency_string, $currencies)){ return $currency_string; } if(preg_match('/\$/i',$currency_string)){ return 'USD'; } if(preg_match('/\&euro\;/i',$currency_string)){ return 'EUR'; } if(preg_match('/€/i',$currency_string)){ return 'EUR'; } if(preg_match('/\₽/i',$currency_string)){ return 'RUR'; } if(preg_match('/\&#8381\;/i',$currency_string)){ return 'RUR'; } if(preg_match('/руб./i',$currency_string)){ return 'RUR'; } if(preg_match('/р\./i',$currency_string)){ return 'RUR'; } Все прекрасно работает! Символ &#8381... видимо на тот момент был косяк с отображением символа рубля! P.S. Господи! Когда же танцы с бубнами закончатся?! admin#.php admin.php
  9. Так и было! Переписал! Может обновить что то?! Карточку обновил!
  10. Создал поле!) И оно работает при смене, рубль, доллар, без проблем, не хочет выводить евро!
  11. Добавил! Карточку обновил, Поддержка выбора валют включена! Но результат тот же! Рубль нормально выводится, даже если менять в той же карточке, EUR упорно выводит USD! Посмотрел и исправил в настройках Менеджера валют, не помогло
  12. Вопрос разрешился, в настройках по умолчанию была "Россия". Но.. есть другой момент... Валюта установлена EUR, в выгрузке USD, в настройках RUR, EUR, USD, в форме создания/редактирования есть поле Валюта, а вот в data его нет! <price> <currency>USD</currency> <value>24000</value> <unit>total</unit> </price>
  13. Есть такое! Поставил, но результат не изменился...