Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
WC_Product_Variable
has_weight
WC_Product_Variable::has_weight PHP Method
WC_Product_Variable Class Documentation
显示文件
Open project: woocommerce/woocommerce
has_weight()
public
method
Returns whether or not the product has weight set.
public
has_weight
( ) :
boolean
return
boolean
public function has_weight() { return parent::has_weight() || $this->child_has_weight(); }
WC_Product_Variable
__construct
add_to_cart_text
child_has_dimensions
child_has_weight
child_is_in_stock
get_available_variation
get_available_variations
get_children
get_downloadable
get_price_html
get_type
get_variation_attributes
get_variation_default_attribute
get_variation_price
get_variation_prices
get_variation_prices_including_taxes
get_variation_regular_price
get_variation_sale_price
get_virtual
get_visible_children
has_dimensions
has_weight
is_on_sale
save
set_children
set_variation_attributes
set_variation_prices
set_variation_prices_including_taxes
set_visible_children
sync
sync_stock_status
validate_props