-
Notifications
You must be signed in to change notification settings - Fork 101
Open
Description
The master price is reset to 0 if I am using multiple variants. In product_loader.rb, I check @load_object.price before and after variants are saved.
if(@load_object.variants.size == values.size)
@load_object.variants.each_with_index {|v, i| v.price = values[i].to_f }
binding.pry
@load_object.save
binding.pry
else
puts "WARNING: Price entries did not match number of Variants - None Set"
end
However, if I move the price column in the spreadsheet way over to the right, it will avoid the variants save/reset of price.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels