When we run the import to update qty of products, the position of that product will be reset to zero in the category.
We use $this->setBehavior(Import::BEHAVIOR_ADD_UPDATE);
$productStock[] = [
'sku' => $row[1],
'use_config_manage_stock' => 0,
'use_config_backorders' => 0,
'manage_stock' => 1,
'backorders' => 1,
'is_in_stock' => $stockStatus,
'levertijd' => $row[7],
'qty' => $qty
];
I tested it also with the normal import function in the backend. Then the product position in the category will be the same and not reset to zero.
When we run the import to update qty of products, the position of that product will be reset to zero in the category.
We use
$this->setBehavior(Import::BEHAVIOR_ADD_UPDATE);I tested it also with the normal import function in the backend. Then the product position in the category will be the same and not reset to zero.