title: "Add to WishList" and "BuyNow" buttons are missing | Wordpress Woocommerce
body: <p>In WordPress Woo-commerce website  </p>
  
  <ul>
  <li>On the Product Catalogue Page - Both the Buttons "Buy Now" and <strong>"Add to Wishlist"</strong> are missing</li>
  <li>On the Single Product Page - "<strong>Buy Now</strong>" Button is missing.</li>
  </ul>
  
  <p>In the Wordpress Admin i found a PHP for wishlist, is there anything wrong in this code that this has disabled the button "Add to wishlist" ? how to enable "Add to wishlist" button ?</p>
  
  <pre><code>&lt;?php
  /**
   * Wishlist page template
   *
   * @author Your Inspiration Themes
   * @package YITH WooCommerce Wishlist
   * @version 1.0.0
   */
  
  global $wpdb, $yith_wcwl, $woocommerce;
  
  if( isset( $_GET['user_id'] ) &amp;&amp; !empty( $_GET['user_id'] ) ) {
      $user_id = $_GET['user_id'];
  } elseif( is_user_logged_in() ) {
      $user_id = get_current_user_id();
  }
  
  $current_page = 1;
  $limit_sql = '';
  
  if( $pagination == 'yes' ) {
      $count = array();
  
      if( is_user_logged_in() ) {
          $count = $wpdb-&gt;get_results( $wpdb-&gt;prepare( 'SELECT COUNT(*) as `cnt` FROM `' . YITH_WCWL_TABLE . '` WHERE `user_id` = %d', $user_id  ), ARRAY_A );
          $count = $count[0]['cnt'];
      } elseif( yith_usecookies() ) {
          $count[0]['cnt'] = count( yith_getcookie( 'yith_wcwl_products' ) );
      } else {
          $count[0]['cnt'] = count( $_SESSION['yith_wcwl_products'] );
      }
  
      $total_pages = $count/$per_page;
      if( $total_pages &gt; 1 ) {
          $current_page = max( 1, get_query_var( 'page' ) );
  
          $page_links = paginate_links( array(
              'base' =&gt; get_pagenum_link( 1 ) . '%_%',
              'format' =&gt; '&amp;page=%#%',
              'current' =&gt; $current_page,
              'total' =&gt; $total_pages,
              'show_all' =&gt; true
          ) );
      }
  
      $limit_sql = "LIMIT " . ( $current_page - 1 ) * 1 . ',' . $per_page;
  }
  
  if( is_user_logged_in() )
      { $wishlist = $wpdb-&gt;get_results( $wpdb-&gt;prepare( "SELECT * FROM `" . YITH_WCWL_TABLE . "` WHERE `user_id` = %s" . $limit_sql, $user_id ), ARRAY_A ); }
  elseif( yith_usecookies() )
      { $wishlist = yith_getcookie( 'yith_wcwl_products' ); }
  else
      { $wishlist = isset( $_SESSION['yith_wcwl_products'] ) ? $_SESSION['yith_wcwl_products'] : array(); }
  
  // Start wishlist page printing
  $woocommerce-&gt;show_messages() ?&gt;
  &lt;div id="yith-wcwl-messages"&gt;&lt;/div&gt;
  
  &lt;form id="yith-wcwl-form" action="&lt;?php echo esc_url( $yith_wcwl-&gt;get_wishlist_url() ) ?&gt;" method="post"&gt;
      &lt;?php
      do_action( 'yith_wcwl_before_wishlist_title' );
  
      $wishlist_title = get_option( 'yith_wcwl_wishlist_title' );
      if( !empty( $wishlist_title ) )
          { echo apply_filters( 'yith_wcwl_wishlist_title', '&lt;h2&gt;' . $wishlist_title . '&lt;/h2&gt;' ); }
  
      do_action( 'yith_wcwl_before_wishlist' );
      ?&gt;
      &lt;table class="shop_table cart wishlist_table" cellspacing="0"&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th class="product-thumbnail"&gt;&lt;?php _e( 'Image', 'Maxshop' ) ?&gt;&lt;/th&gt;
                  &lt;th class="product-name"&gt;&lt;?php _e( 'Product Name', 'Maxshop' ) ?&gt;&lt;/th&gt;
                  &lt;th class="product-price"&gt;&lt;?php _e( 'Unit Price', 'Maxshop' ) ?&gt;&lt;/th&gt;
                  &lt;th&gt;&lt;?php _e( 'Stock Status', 'Maxshop' ) ?&gt;&lt;/th&gt;
                  &lt;th&gt;&lt;?php _e( 'Action', 'Maxshop' ) ?&gt;&lt;/th&gt;
                  &lt;th class="product-remove"&gt;&lt;?php _e( 'Remove', 'Maxshop' ) ?&gt;&lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
              &lt;?php            
              if( count( $wishlist ) &gt; 0 ) :
                  foreach( $wishlist as $values ) :   
                      if( !is_user_logged_in() ) {
                          if( isset( $values['add-to-wishlist'] ) &amp;&amp; is_numeric( $values['add-to-wishlist'] ) ) {
                              $values['prod_id'] = $values['add-to-wishlist'];
                              $values['ID'] = $values['add-to-wishlist'];
                          } else {
                              $values['prod_id'] = $values['product_id'];
                              $values['ID'] = $values['product_id'];
                          }
                      }
  
                      $product_obj = get_product( $values['prod_id'] );
  
                      if( $product_obj !== false &amp;&amp; $product_obj-&gt;exists() ) : ?&gt;
                      &lt;tr id="yith-wcwl-row-&lt;?php echo $values['ID'] ?&gt;"&gt;
                          &lt;td class="product-thumbnail"&gt;
                              &lt;a href="&lt;?php echo esc_url( get_permalink( apply_filters( 'woocommerce_in_cart_product', $values['prod_id'] ) ) ) ?&gt;"&gt;
                                  &lt;?php echo $product_obj-&gt;get_image() ?&gt;
                              &lt;/a&gt;
                          &lt;/td&gt;
                          &lt;td class="product-name"&gt;
                              &lt;a href="&lt;?php echo esc_url( get_permalink( apply_filters( 'woocommerce_in_cart_product', $values['prod_id'] ) ) ) ?&gt;"&gt;&lt;?php echo apply_filters( 'woocommerce_in_cartproduct_obj_title', $product_obj-&gt;get_title(), $product_obj ) ?&gt;&lt;/a&gt;
                          &lt;/td&gt;
                          &lt;td class="product-price"&gt;
                              &lt;?php
                              if( get_option( 'woocommerce_display_cart_prices_excluding_tax' ) == 'yes' )
                                  { echo apply_filters( 'woocommerce_cart_item_price_html', woocommerce_price( $product_obj-&gt;get_price_excluding_tax() ), $values, '' ); }
                              else
                                  { echo apply_filters( 'woocommerce_cart_item_price_html', woocommerce_price( $product_obj-&gt;get_price() ), $values, '' ); }    
                              ?&gt;
                          &lt;/td&gt;
                          &lt;td class="product-stock-status"&gt;
                              &lt;?php
                              $availability = $product_obj-&gt;get_availability();
                              $stock_status = $availability['class'];
  
                              if( $stock_status == 'out-of-stock' ) {
                                  $stock_status = "Out";
                                  echo '&lt;span class="wishlist-out-of-stock"&gt;' . __( 'Out of Stock', 'Maxshop' ) . '&lt;/span&gt;';   
                              } else {
                                  $stock_status = "In";
                                  echo '&lt;span class="wishlist-in-stock"&gt;' . __( 'In Stock', 'Maxshop' ) . '&lt;/span&gt;';
                              }
                              ?&gt;
                          &lt;/td&gt;
                          &lt;td class="product-add-to-cart"&gt;
                              &lt;?php echo YITH_WCWL_UI::add_to_cart_button( $values['prod_id'], $availability['class'] ) ?&gt;
                          &lt;/td&gt;
                          &lt;td class="product-remove"&gt;&lt;div&gt;&lt;a href="javascript:void(0)" onclick="remove_item_from_wishlist( '&lt;?php echo esc_url( $yith_wcwl-&gt;get_remove_url( $values['ID'] ) )?&gt;', 'yith-wcwl-row-&lt;?php echo $values['ID'] ?&gt;');" class="remove" title="&lt;?php _e( 'Remove this product', 'Maxshop' ) ?&gt;"&gt;&amp;times;&lt;/a&gt;&lt;/td&gt;
  
                      &lt;/tr&gt;
                      &lt;?php
                      endif;
                  endforeach;
              else: ?&gt;
                  &lt;tr&gt;
                      &lt;td colspan="6" class="wishlist-empty"&gt;&lt;?php _e( 'No products were added to the wishlist', 'Maxshop' ) ?&gt;&lt;/td&gt;
                  &lt;/tr&gt;       
              &lt;?php
              endif;
  
              if( isset( $page_links ) ) : ?&gt;
              &lt;tr&gt;
                  &lt;td colspan="6"&gt;&lt;?php echo $page_links ?&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;?php endif ?&gt;
          &lt;/tbody&gt;
       &lt;/table&gt;
       &lt;?php
       do_action( 'yith_wcwl_after_wishlist' );
  
       yith_wcwl_get_template( 'share.php' );
  
       do_action( 'yith_wcwl_after_wishlist_share' );
       ?&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>style.css for wishlist:  </p>
  
  <pre><code>/****************************WISHLIST**********************************/
  .wishlist_table{margin: 20px 0;}
  .wishlist_table thead tr{
      background: #f0f0f0;
      width: 100%;
  }
  .wishlist_table th{
      height: 72px;
      line-height: 72px;
      padding: 0px;
      text-align: center;
      text-transform: uppercase;
      width: 175px;
      color: #000000;
      font: 15px 'Arial', sans-serif;
      border: 1px solid #dfdfdf;
      vertical-align: middle;
  }
  .wishlist_table td{
      text-align: center !important;
      width: 150px;
      height: 80px;
      padding: 22px;
      color: #000000;
      font: 15px 'Arial', sans-serif;
      border: 1px solid #dfdfdf;
      vertical-align: middle;
  }
  /*=============================Wishlist Button===============================*/
  .yith-wcwl-add-to-wishlist{
      width: 145px;
      margin-bottom: 15px;
  }
  .icon .yith-wcwl-add-to-wishlist{
      width: 42px;
      display: inline-block;
      margin: 0;
  }
  .icon .yith-wcwl-add-to-wishlist img{
      display: none !important;
  }
  .icon .yith-wcwl-add-to-wishlist span{
      font-size: 9px;
  }
  .icon div.clear{
      display: none;
  }
  .icon .yith-wcwl-wishlistexistsbrowse, .icon .yith-wcwl-wishlistaddedbrowse{
      font-size: 8px;
      height: 21px;
  }
  .icon .yith-wcwl-wishlistexistsbrowse span, .icon .yith-wcwl-wishlistaddedbrowse span{
      display: none;
  }
  #selectpage{display:none}
  table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}
  table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}
  table td,
  table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:6px 12px}
  table td:first-child,table th:first-child{border-left-width:0}
  table thead{background:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}
  table td{background-color:transparent}
  .table-odd td{background-color:#f2f2f2}
  .table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}
  .table-bordered td{border-bottom:1px solid #cbcbcb}
  .table-bordered tbody&gt;tr:last-child td,
  .table-horizontal tbody&gt;tr:last-child td{border-bottom-width:0}
  .table-horizontal td,
  .table-horizontal th{border-width:0 0 1px;border-bottom:1px solid #cbcbcb}
  .table-horizontal tbody&gt;tr:last-child td{border-bottom-width:0}
  .top-spacing{margin-top:40px !important; margin-bottom:10px}
  
  .toggle-trigger {
      background: #fff url("images/plus.png") 90% center no-repeat;
      cursor: pointer;
      color:#333;
      transition: all 0.17s ease-in-out;
      -moz-transition: all 0.17s ease-in-out;
      -webkit-transition: all 0.17s ease-in-out;
      -o-transition: all 0.17s ease-in-out;
  }
  
  .toggle-trigger.open {
      color:#fff;
      background: #6a6a6a url("images/minas.png") 90% center no-repeat
  }
  
  .toggle-container {
      padding: 12px 22px;
      border: 1px solid #e8e8e8;
      border-top: none;
  }
  .container{max-width:100% !important}
  .nav-tabs li, .work_slide li{list-style:none !important; margin-left:0 !Important; line-height:1.3}
  .btn [class^="icon-"], .btn [class*=" icon-"]{margin-right:6px !Important}
  strong {font-weight:bold}
  em {font-style:italic}
  .flex-video iframe, ifame{max-width:100% !important; }
  .woocommerce li {list-style: none !important;margin-left:0}
  .shopping-cart .title li, .shopping-cart ul li{margin-left:0 !important}
  .showlogin {}
  /*::-moz-selection { background: #f71919; color: #fff; text-shadow: none; }
  ::selection { background: #f71919; color: #fff; text-shadow: none; }*/
  #wc-sorting {margin:-58px 0 40px 16px}
  .product figure {border:1px solid #fff; border-bottom:none}
  .product figure {border:1px solid #fff; border-bottom:none}
  .related.products figure, .related.products figure &gt; a {width:100% !important; height:auto !important} 
  .related.products h2 {margin-bottom:12px}
  .related.products li{border-bottom:none !important}
  .sort-select {margin:-58px 0 38px 10px;display: none;}
  .sub-menu ul.sub-menu {left: 150px; top:50px}
  
  
  .single-product-right{ margin-left:10px}
  .product-left .images {width:auto !Important}
  .thumbnails a {margin-bottom:10px}
  .product-detail .compare.big-button{margin-top:37px}
  .no-shadow:hover{box-shadow:none !important}
  .single-product .yith-wcwl-add-to-wishlist{float:left; width:124px}
  .single-product a.compare {width:40px; float:left; margin-top:10px}
  .single-product .product-detail div.clear {display:none}
  </code></pre>
  
  <p>and to enable <strong>Buynow</strong> Button on both Product catalogue page and Single Product page, i do not find any style code, any suggestions ?</p>