Show custom content if the product has the customizable option in Magento 2

Add below code in phtml file

<?php 

$customOptions = $objectManager->get('Magento\Catalog\Model\Product\Option')
    ->getProductOptionCollection($_product);

if (!empty($customOptions->getData())) {
  echo "prodcut have customizable option";
}
else{  

  echo "prodcut doesn't have customizable option";
} 
?>    


Show custom content if the product has the customizable option in Magento 2expoundsofttechsolution


Show custom content if the product has the customizable option in Magento 2