New CSV Delimiter

Hello,



For the CSV Delimiter, is there a way to add a new value/option? Currently tab, semicolon and comma are available.



I would also want to add the pipe characher: “|” (without quotes).



Is there a way to do this?

Thank you.

For me this delimiter is also needed . It is possible to modify the addon's core functionality? Which file generates the CSV?

Its been awhile since this question was asked and looks like it was never answered. Has anyone found away to add a pipe to the product import function?



Currently using version 4.2.x



Thank you.

Untested.



/app/controllers/backend/exim.php

function fn_get_csv($pattern, $file, $options)
{
$max_line_size = 65536; // 64 Кб
$result = array();

if ($options['delimiter'] == 'C') {
$delimiter = ',';
} elseif ($options['delimiter'] == 'P') {
$delimiter = "|";
} elseif ($options['delimiter'] == 'T') {
$delimiter = "\t";
} else {
$delimiter = ';';
}


and…

function fn_put_csv(&$data, &$options, $enclosure)
{
static $output_started = false;

$eol = "\n";

if ($options['delimiter'] == 'C') {
$delimiter = ',';
} elseif ($options['delimiter'] == 'P') {
$delimiter = "|";
} elseif ($options['delimiter'] == 'T') {
$delimiter = "\t";
} else {
$delimiter = ';';
}




/design/backend/templates/views/exim/components/csv_delimiters.tpl

```php