/**
  * class construct method
  */
 public function __construct()
 {
     //load twig context
     include_once 'includes/hw-woo-timberProduct.php';
     include_once 'includes/hw-woocommerce.php';
     include_once 'includes/hw-woo-customer.php';
     if (function_exists('hw_load_class')) {
         hw_load_class('HW_Product');
     }
     hw_load_class('HW_Cloudzoom');
     //HW_HOANGWEB::load_class
     $this->enable_tab_settings();
     $this->enable_submit_button();
     //common product attributes
     $this->attrs = array("price" => __("Giá"), "sale_price" => __("Giá khuyến mại"), "status" => __('Tình trạng'));
     if (class_exists('HW_Product')) {
         HW_Product::register('product');
         HW_Product::get('product')->set_attributes($this->attrs);
     }
     //add_action('wp_footer', array($this, 'execute_cloudzoom'));
     /*Setting*/
     add_action('modules_loaded', array($this, '_woo_load_textdomain'));
 }
 /**
  * load core class libs
  * @param $class: class name to load
  */
 public static function load_class($class)
 {
     //setup classes libs
     self::setup_classes();
     $_class = self::setup_classes($class);
     if (is_string($class) && $_class) {
         self::register_class($class, $_class);
         //special class must to include (why? do not nessessary)
         /*if($class === 'Twig_Autoloader' ) {
               if(!class_exists($class,false) ) include_once (self::setup_classes($class));    //for composer lib
           }
           else{
               self::register_class($class, self::setup_classes($class));
           }*/
         hw_load_class($class);
         //fix if __autoload not recognize the class
     }
     if (is_array($class)) {
         foreach ($class as $c) {
             self::load_class($c);
         }
     }
 }