Skip to content

master price is reset if using variants #54

@ping0xFF

Description

@ping0xFF

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions