public function display_products_list($customer_id = 0)
        {
            ?>
		<div id="wc-crm-page">
		<form id="wc_crm_customers_form" method="post">
			<input type="hidden" name="page" value="<?php 
            echo WC_CRM_TOKEN;
            ?>
">			
			<?php 
            $the_customer = new WC_CRM_Customer($customer_id);
            $products = $the_customer->get_products_purchased();
            $products_list = new WC_CRM_Table_Customer_Products_Purchased($products, true);
            $products_list->prepare_items();
            $products_list->display();
            ?>
			<script>
		    jQuery('document').ready(function($){
		      var parentBody = window.parent.document.body;
		      $('#place_new_call_popup > .media-modal', parentBody).unblock();
		      $('.crm_actions .select_order').click(function(){
		        var parentBody = window.parent.document.body;
		        var id = $(this).attr('href');
		        $("#number_order_product", parentBody).val(id);
		        $('#place_new_call_popup', parentBody).hide();
		        return false;
		      });
		    });
		    </script>
		      <style>
		      #message,
		      .tablenav,
		      #adminmenuwrap,
		      #screen-meta,
		      #screen-meta-links,
		      #adminmenuback,
		      #wpfooter,
		      #wpadminbar{
		        display: none !important;
		      }
		      html{
		        padding-top: 0 !important;
		      }
		      #wpbody-content{
			    	padding: 0 !important;
			    }
		      #wpcontent{
		        margin: 0 !important;
		      }
		      #wc-crm-page{
		        margin: 1.5em !important;
		      }
		      #wc-crm-page > h2{display: none;}
			  	#wpcontent {
					padding-left: 0px;
				}
				.media-frame-title h1 {
					text-transform: capitalize;
				}
		      </style>
		</form>
		</div>
		<?php 
        }
<?php

if (!defined('ABSPATH')) {
    exit;
}
?>
<div class="postbox" id="wcrm-products-purchased">
	<div title="Click to toggle" class="handlediv"><br></div>
	<h3 class="hndle ui-sortable-handle"><span><?php 
_e('Products Purchased', 'wc_crm');
?>
</span></h3>
	<div class="inside" style="margin:0px; padding:0px;">
		<?php 
$products = $the_customer->get_products_purchased();
$products_list = new WC_CRM_Table_Customer_Products_Purchased($products);
$products_list->prepare_items();
$products_list->display();
?>
	</div>
</div>