What is the correct way to add a product variant?
I create the product successfully and it shows up in my Shopify admin. However the price is always zero and the quantity is always infinity.
I've tried creating a variant with inventory_quantity and price set, as well as with product_id set in prefix_options.
However admin is always showing price zero and quantity infinity.
Rails v3.2.5
shopify_api v3.0.0
shop name: vacation-2
I don't get errors doing the API calls. I simply don't see my variant data in the product in admin.
shopify_listing = ShopifyAPI::Product.find(listing.shopify_id
shopify_listing.update_attributes(listing_data)
variant = ShopifyAPI::Variant.find(shopify_listing.variants.first.id)
variant.update_attributes({inventory_quantity: listing.quantity, inventory_management: 'shopify', price: listing.price}) – realdeal Jun 12 '12 at 16:54