{"id":7420612,"date":"2016-05-27T01:11:32","date_gmt":"2016-05-27T01:11:32","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/linked-products-1\/"},"modified":"2016-08-31T18:07:54","modified_gmt":"2016-08-31T18:07:54","slug":"linked-products-1","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/linked-products-1\/","title":{"rendered":"Linked products?"},"content":{"rendered":"<p>What&#8217;s the best way to make products linked so that one product cannot be purchased during checkout unless another is also in the cart?  For my use case, it wouldn&#8217;t matter which is added first, just that both need to be in the cart when checking out.  Also, is it possible to make it more broad&#8230;as in so that the required product just needs to be one from a specific category?<\/p>\n<p>To explain my use.  I have a specific design fee setup for a custom business card design.  I&#8217;d like to make it so that the fee cannot be purchased at checkout unless a business card product from the &#8220;custom&#8221; category is also in the cart.<\/p>\n<p>I have it so that the &#8220;fee&#8221; product is hidden and the only way to add it to the cart is if you&#8217;re on the single product page for one of the products in that &#8220;custom&#8221; category.  I&#8217;d just like a failsafe so that people cannot get the discounted design fee by itself.<\/p>\n<p>Any creative ideas?<\/p>\n<p>https:\/\/wordpress.org\/plugins\/woocommerce\/<\/p>\n","protected":false},"template":"","class_list":["post-7420612","topic","type-topic","status-publish","hentry","topic-tag-conditional","topic-tag-products"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7420612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7420612\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7420612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}