{"id":17315971,"date":"2024-01-03T18:34:35","date_gmt":"2024-01-03T18:34:35","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/prevent-from-deselecting-mandatory-components\/"},"modified":"2024-01-03T18:34:35","modified_gmt":"2024-01-03T18:34:35","slug":"prevent-from-deselecting-mandatory-components","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/prevent-from-deselecting-mandatory-components\/","title":{"rendered":"Prevent From Deselecting Mandatory Components"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I have several components that are mandatory. However, users are still able to deselect all products in these mandatory components, which is not ideal for my store&#8217;s operation. When a mandatory component has no product selected, it incorrectly reduces the total price of the composite product.<br \/>Is there a way to fix it?<\/p>\n","protected":false},"template":"","class_list":["post-17315971","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17315971","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\/17315971\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17315971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}