-
Notifications
You must be signed in to change notification settings - Fork 101
Open
Description
if(product_load_object.variants.size == values.size)
product_load_object.variants.each_with_index {|v, i| v.sku = values[i].to_s }
product_load_object.save
else
puts "WARNING: SKU entries did not match number of Variants - None Set"
end
Above code will not save the sku changes on the variants if the product object and variants have been saved already. Probably occurs in some other fields, as I see the same pattern.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels