B
B
BonBon Slick2016-09-05 10:12:57
PHP
BonBon Slick, 2016-09-05 10:12:57

Why doesn't it import CSV columns in WooCommerce Import?

I have 2 files. The first entry, 1 line, which contains the columns that need to be imported. It looks like this (working file):

Category;"Product tags";"Article";"Description";"Detailed description";"Short description";"Price";"Discount price";"Quantity in stock" ;"Color";"Cross Products";"Picture";"ATTACHMENT";"ATTACHMENT";"Product Status";virtual;downloadable;file_paths

And there is a second file that I use to populate products (grabbed):

Category;" Product tags";"Article";"Name";"Detailed description";"Short description";"Price";"Discount price";"

$header_set =  'Категория;"Метки товара";"Артикул";"Наименование";"Подробное описание";"Краткое описание";"Цена";"Цена со скидкой";"Кол-во на складе";"Цвет";"Перекрестные товары";"Картинка";"ATTACHMENT";"ATTACHMENT";"Статус товара";virtual;downloadable;file_paths' ;
  $win_encode_string_header = array ( iconv( "UTF-8" , "WINDOWS-1251", $header_set ) );
$fileopen = fopen('parsed_data.csv', 'a+');
  fputcsv($fileopen, $win_encode_string_header);
  fclose($fileopen);

It adds, supposedly everything is "as it should be." And yet, there, when importing, it all goes in the 1st column. I tried different characters to break phrases, it did not help. What's wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WQP, 2016-09-05
@WQP

file_path in second file_paths

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question