You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: