product_type = 'external'; $this->downloadable = 'no'; $this->virtual = 'no'; $this->stock = ''; $this->stock_status = 'instock'; $this->manage_stock = 'no'; $this->weight = ''; $this->length = ''; $this->width = ''; $this->height = ''; $this->load_product_data( array( 'product_url' => '', 'button_text' => 'no' ) ); } /** * Returns false if the product cannot be bought. * * @access public * @return cool */ public function is_purchasable() { return apply_filters( 'woocommerce_is_purchasable', false, $this ); } /** * get_product_url function. * * @access public * @return void */ public function get_product_url() { return $this->product_url; } /** * get_button_text function. * * @access public * @return void */ public function get_button_text() { return $this->button_text ? $this->button_text : __( 'Buy product', 'woocommerce' ); } }