The input field "Enterprise" should be labelled "Create products for enterprise:".
List of products to import is displayed on the screen.
Each product has an import button to import that product into OFN. Technically, the form can contain the whole JSON and post it do the OFN DFC API to do the work. But another controller action or reflex can do this as well.
Already imported products have a disabled import button.
Import improvements
@drummer83 found several issues during the import. When importing as variant of existing products:
[x] Imported variants of unit type 'item' have variant name = original name + (unit + unit scale). That's okay.
[ ] Imported variants of other unit type have variant name = original name
[x] Imported variants have no SKU (probably ok). The SKU needs to be unique. It was probably in conflict in this case.
[ ] Imported variants of unit type 'item' have unit '1piece' now.
[ ] Imported variants have price 0.
[x] Imported variants have stock 0. This is probably good. We don't want to duplicate the stock across platforms.
[x] Imported variants have tax category 'default' - no matter the original tax category. Tax categories are not modelled in OFN.
Importing as new products (from a different enterprise):
[x] Imported variants of other unit type with original variant name = '' have variant name = product name '-' unit That's okay.
[ ] Imported variants have price 0.
[x] Imported variants have stock 0. This is probably good. We don't want to duplicate the stock across platforms.
[x] Imported variants have tax category 'default' - no matter the original tax category. Tax categories are not modelled in OFN.
A basic product import has been done:
12274
But there are some outstanding tasks from https://github.com/openfoodfoundation/openfoodnetwork/issues/12139:
Import improvements
@drummer83 found several issues during the import. When importing as variant of existing products:
Importing as new products (from a different enterprise):