<td class="product-stock-status"> <?php $availability = $product_obj->get_availability(); $stock_status = $availability['class']; if ($stock_status == 'out-of-stock') { $stock_status = "Out"; echo '<span class="wishlist-out-of-stock">' . __('Out of Stock', 'king') . '</span>'; } else { $stock_status = "In"; echo '<span class="wishlist-in-stock">' . __('In Stock', 'king') . '</span>'; } ?> </td> <td class="product-add-to-cart"> <?php echo king_WISHLIST_UI::add_to_cart_button($values['prod_id'], $availability['class']); ?> </td> </tr> <?php } } } else { ?> <tr> <td colspan="6" class="wishlist-empty"><?php _e('No products were added to the wishlist', 'king'); ?> </td> </tr> <?php