Skip to content

Product position is reset to zero after product import/update #100

Open
@JoostWan

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions