From 108e87e6eba1f78b7d286afe03b6fdc0c55dd05d Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Mon, 27 Feb 2017 11:01:21 +0100 Subject: [PATCH 1/3] fix bug custom update --- modules/bulkupdate/AdminBulkUpdate.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/bulkupdate/AdminBulkUpdate.php b/modules/bulkupdate/AdminBulkUpdate.php index 1ff57395..058a73d7 100644 --- a/modules/bulkupdate/AdminBulkUpdate.php +++ b/modules/bulkupdate/AdminBulkUpdate.php @@ -40,7 +40,8 @@ class AdminBulkUpdate extends AdminTab { INSERT INTO `'._DB_PREFIX_.'product_customs` VALUES ( '.(int) $line[0].', "'.pSQL($line[1]).'", - "'.pSQL($line[2]).'" + "'.pSQL($line[2]).'", + 0 ) '); } From 61d71ff5aeff5d4cd3678643d8debcf29834b1ce Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Mon, 27 Feb 2017 11:15:12 +0100 Subject: [PATCH 2/3] fix customs process --- modules/bulkupdate/AdminBulkUpdate.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/bulkupdate/AdminBulkUpdate.php b/modules/bulkupdate/AdminBulkUpdate.php index 058a73d7..14be4a62 100644 --- a/modules/bulkupdate/AdminBulkUpdate.php +++ b/modules/bulkupdate/AdminBulkUpdate.php @@ -15,6 +15,7 @@ class AdminBulkUpdate extends AdminTab { if (Tools::isSubmit('submitUploadProductCustoms')) { $process = (int) Tools::getValue('customs_process'); if(isset($_FILES['csvfile']) && $_FILES['csvfile']['name'] != '') { + echo '
';var_dump($process,$_FILES['csvfile']);echo '
';die(); $f = fopen($_FILES['csvfile']['tmp_name'], 'r'); fgetcsv($f, 0, ';'); @@ -2256,7 +2257,7 @@ class AdminBulkUpdate extends AdminTab { 'type' => 'radio2', 'label' => $this->l('Action'), 'label-class' => 'text-left', - 'name' => 'custom_process', + 'name' => 'customs_process', 'options' => array( array( 'value' => 0, From 54b5d4b4ba4868a6c24943e68f39bab4610a9414 Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Mon, 27 Feb 2017 11:15:59 +0100 Subject: [PATCH 3/3] remove var dump --- modules/bulkupdate/AdminBulkUpdate.php | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/bulkupdate/AdminBulkUpdate.php b/modules/bulkupdate/AdminBulkUpdate.php index 14be4a62..1da9414d 100644 --- a/modules/bulkupdate/AdminBulkUpdate.php +++ b/modules/bulkupdate/AdminBulkUpdate.php @@ -15,7 +15,6 @@ class AdminBulkUpdate extends AdminTab { if (Tools::isSubmit('submitUploadProductCustoms')) { $process = (int) Tools::getValue('customs_process'); if(isset($_FILES['csvfile']) && $_FILES['csvfile']['name'] != '') { - echo '
';var_dump($process,$_FILES['csvfile']);echo '
';die(); $f = fopen($_FILES['csvfile']['tmp_name'], 'r'); fgetcsv($f, 0, ';');