I'm trying to add a product to a custom collection using the Shopify gem.
C = ShopifyAPI :: CustomCollection.first (: title => "man") p = ShopifyApi :: Product.find (95448374) If I try: c.products & lt; & Lt; P c.save = & gt; C p.save = & gt;
P>
Your answer is in the source:
You have to use Add_to_collection or add_product methods because they create a collection object , Which we use to associate the product and collection.
Comments
Post a Comment