<?php if (class_exists('woocommerce')): ?>
  <!-- Start Modal -->
  <div id="modal-product" class="modal modal-product fade">
    <div class="modal-dialog modal-dialog-centered">
      <div id="ajax_popup" class="modal-content">
      </div>
    </div>
  </div>
  <!-- End Modal -->
<?php endif; ?>