• Resolved tolyan59

    (@tolyan59)


    Set up a multisite.
    Woocommerce 5.9.0.
    Created a couple of product elements on one of the sites.
    I made the export of goods to a CSV file.
    I import it right there. WP displays a warning “Sorry, this file type is not allowed for security reasons.” And does not even copy the CSV file to the directory with media files. Images when adding a new product are normally save in the directory with media files. Sites without multisite mode on the same hosting normally import this file.
    Of course, you can try experimenting with WC_Product_CSV_Importer_Controller::is_file_valid_csv() (i.e., in any case, return the value that the file is correct) and see what happens. But I don’t think it’s a good option, if there are more safer ones. Tell me, please, maybe some administrative settings do not allow you to import the product? Or there are any other solutions to this problem?

    Настроил мультисайт.
    Woocommerce 5.9.0.
    На одном из сайтов создал пару элементов товара.
    Сделал Экспорт товаров в CSV файл.
    Тут же его импортирую. WP выводит предупреждение ?Извините, этот тип файла недопустим по соображениям безопасности.? И даже не копирует CSV файл в директорию с медиафайлами. Изображения при добавлении нового товара нормально сохраняются в директории с медиафайлами. Сайты без режима мультисайт на этом же хостинге нормально импортируют этот файл.
    Можно конечно попробовать поэкспериментировать с WC_Product_CSV_Importer_Controller::is_file_valid_csv() (т.е. в любом случае вернуть значение что файл правильный) и посмотреть что получится. Но я не думаю, что это хороший вариант, если есть более безопасные. Подскажите, пожалуйста, может какие-то административные настройки не позволяют импортировать товар? Или есть какие-нибудь другие варианты решения проблемы?

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Multisite. Import of goods from a CSV file.’ is closed to new replies.