Only import selected products

This commit is contained in:
David Cook
2025-02-06 17:10:01 +11:00
parent 447ff3cffd
commit 9f7000009d
4 changed files with 20 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
= render partial: 'spree/admin/shared/product_sub_menu'
%p= t('.catalog_url', catalog_url: @catalog_url)
%p= t('.catalog_url', count: @items.count, catalog_url: @catalog_url)
%p= t('.enterprise', enterprise_name: @enterprise.name)
%br
@@ -16,7 +16,10 @@
%tbody
- @items.each do |supplied_product, existing_product|
%tr{id: supplied_product.semanticId }
%td= supplied_product.name
%td
%label
= form.check_box 'semanticIds[]', { checked: true }, supplied_product.semanticId, ""
= supplied_product.name
%td
- if existing_product.present?
Update