Remove comment
This commit is contained in:
parent
0ec8703fb9
commit
0762f91d16
@ -42,9 +42,6 @@ foreach (Db::getInstance()->ExecuteS('
|
||||
}
|
||||
|
||||
$id_customers = array_keys($customers_to_import);
|
||||
|
||||
//@todo : newsletter
|
||||
|
||||
for($i=0, $l=count($id_customers); $i < $l; $i+=5000) {
|
||||
// First order
|
||||
foreach (Db::getInstance()->ExecuteS('
|
||||
@ -88,7 +85,19 @@ for($i=0, $l=count($id_customers); $i < $l; $i+=5000) {
|
||||
|
||||
$filename = date('Y-m-d', mktime()).'.csv';
|
||||
$f = fopen('extracts/webdav/'.$filename, 'w');
|
||||
fputcsv($f, array('id_customer', 'firstname', 'lastname', 'email', 'ip_registration_newsletter', 'newsletter', 'langue', 'date de premier achat', 'Date de dernier achat', 'discount'), ';', '"');
|
||||
$header = array(
|
||||
'id_customer',
|
||||
'firstname',
|
||||
'lastname',
|
||||
'email',
|
||||
'ip_registration_newsletter',
|
||||
'newsletter',
|
||||
'langue',
|
||||
'date de premier achat',
|
||||
'Date de dernier achat',
|
||||
'discount',
|
||||
);
|
||||
fputcsv($f, $header, ';', '"');
|
||||
foreach ($customers_to_import as $customer) {
|
||||
fwrite($f, implode(';', array_values($customer))."\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user