{"id":8491739,"date":"2016-11-29T07:06:28","date_gmt":"2016-11-29T07:06:28","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/sold-out-variable-missing\/"},"modified":"2016-11-29T07:06:28","modified_gmt":"2016-11-29T07:06:28","slug":"sold-out-variable-missing","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/sold-out-variable-missing\/","title":{"rendered":"Sold out variable missing"},"content":{"rendered":"<p>I have set 3 variables of size (S | M | L)<br \/>\nAfter I change the stock quantity of variable S to 0 (i.e. out of stock), normally, the variable S button would become disabled:<br \/>\n&lt;input type=&#8221;radio&#8221; name=&#8221;attribute_size&#8221; value=&#8221;S&#8221; id=&#8221;size_v_S&#8221; disabled=&#8221;disabled&#8221;&gt;<br \/>\nSo the S size button is still visible and I can grey out the button.<br \/>\nBut somehow, of some products (not every product), the variable S&#8217;s radio button is missing.<br \/>\nI want to add the code: &lt;input type=&#8221;radio&#8221; name=&#8221;attribute_size&#8221; value=&#8221;S&#8221; id=&#8221;size_v_S&#8221; disabled=&#8221;disabled&#8221;&gt; back to my product page, please teach me how. (I tried modified your variable.php, but still have no clue.)<br \/>\nThanks a lot.<\/p>\n","protected":false},"template":"","class_list":["post-8491739","topic","type-topic","status-publish","hentry","topic-tag-variable"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8491739","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\/8491739\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8491739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}