I want to hide the "Zip/Postal Code" region in the summary Block in the cart page.I overwrote the block file LayoutProcessor.php. In that file, if I hid the following portion from the function process, then I would be able to hide the "Zip/Postal Code".
'postcode' => [ 'visible' => true, 'formElement' => 'input', 'label' => __('Zip/Postal Code'), 'value' => null ]
I want to check the attributes of the products in the cart. If any of the products has the attribute value 'No', then hide the "Zip/Postal Code" and instead show an error message. How can I add the condition in LayoutProcessor.php to hide the same based on the attributes of the products on the cart.