Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variants are not updated with variant SKU #68

Open
tibomogul opened this issue May 28, 2018 · 0 comments
Open

Variants are not updated with variant SKU #68

tibomogul opened this issue May 28, 2018 · 0 comments

Comments

@tibomogul
Copy link

            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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant