Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Antonyspb

Новичок
  
  • Posts

    1
  • Joined

  • Last visited

Antonyspb's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Вот кусочек экспори <offer id="55" available="true"><url>https://play-table.ru/nastolnyy-futbol--kids-game--3-futa/</url><price>53000</price><currencyId>RUB</currencyId><categoryId>59</categoryId><picture>http://tableplay.ru/image/data/football/World%20Cup/black.jpg</picture><picture>http://tableplay.ru/image/cache/data/football/World Cup/wch800-600x600.jpg</picture><picture>http://tableplay.ru/image/data/football/World%20Cup/WCUP2-800.jpg</picture><delivery>true</delivery> https://play-table.ru/wa-data/public/shop/products/46/49/4946/images/14559/14559.970.jpg - это я сгделал в модуле (пробел заменил на %20) https://play-table.ru/wa-data/public/shop/products/46/49/4946/images/14562/14562.970.jpg - а этот URL сформирован OpenCart при помощи $this->model_tool_image->resize('/wa-data/public/shop/products/46/49/4946/images/14562/14562.970.jpg', 600, 600); - синдартный способ масшибирования картинки в OpenCart Видимо OpenCart не знает ничего про пробелы, которые могут быть в URLах. Как исправить Откройте файл catalog/model/tool/image.php и после строки $new_image = 'cache/' . utf8_substr($filename, 0, utf8_strrpos($filename, '.')) . '-' . $width . 'x' . $height . '.' . $extension; добавьте $new_image = str_replace(' ', '_', $new_image); И кэш изображений полистите, чтобы хлам не хранить
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.