Class WC_Product_Variable
Variable Product Class
The WooCommerce product class handles individual product data.
- WC_Product
- WC_Product_Variable
Category: Class
Author: WooThemes
Version: 2.0.0
Class: WC_Product_Variable
Located at includes/class-wc-product-variable.php
Methods summary
public
|
|
public
string
|
|
public
integer
|
|
public
integer
|
|
public
array
|
|
public
object
|
|
public
boolean
|
|
public
boolean
|
|
public
string
|
#
get_variation_regular_price( string $min_or_max = 'min', boolean $display = false )
Get the min or max variation regular price. |
public
string
|
#
get_variation_sale_price( string $min_or_max = 'min', boolean $display = false )
Get the min or max variation sale price. |
public
string
|
#
get_variation_price( string $min_or_max = 'min', boolean $display = false )
Get the min or max variation (active) price. |
public
string
|
|
public
array
|
#
get_variation_attributes( )
Return an array of attributes used for variations, as well as their possible values. |
public
array
|
|
public
array
|
|
public
|
#
variable_product_sync( mixed $product_id = '' )
Sync variable product prices with the children lowest/highest prices. |
public static
|
Methods inherited from WC_Product
__get()
,
__isset()
,
add_to_cart_url()
,
adjust_price()
,
backorders_allowed()
,
backorders_require_notification()
,
enable_dimensions_display()
,
exists()
,
get_attribute()
,
get_attributes()
,
get_availability()
,
get_average_rating()
,
get_categories()
,
get_cross_sells()
,
get_dimensions()
,
get_file()
,
get_file_download_path()
,
get_files()
,
get_formatted_name()
,
get_gallery_attachment_ids()
,
get_image()
,
get_image_id()
,
get_parent()
,
get_permalink()
,
get_post_data()
,
get_price()
,
get_price_excluding_tax()
,
get_price_html_from_text()
,
get_price_html_from_to()
,
get_price_including_tax()
,
get_price_suffix()
,
get_rating_count()
,
get_rating_html()
,
get_regular_price()
,
get_related()
,
get_sale_price()
,
get_shipping_class()
,
get_shipping_class_id()
,
get_sku()
,
get_stock_quantity()
,
get_tags()
,
get_tax_class()
,
get_tax_status()
,
get_title()
,
get_upsells()
,
get_weight()
,
has_attributes()
,
has_dimensions()
,
has_enough_stock()
,
has_file()
,
has_weight()
,
increase_stock()
,
is_downloadable()
,
is_featured()
,
is_in_stock()
,
is_on_backorder()
,
is_purchasable()
,
is_shipping_taxable()
,
is_sold_individually()
,
is_taxable()
,
is_type()
,
is_virtual()
,
is_visible()
,
list_attributes()
,
managing_stock()
,
needs_shipping()
,
reduce_stock()
,
set_price()
,
set_stock_status()
,
single_add_to_cart_text()
Magic methods summary
Properties summary
public
mixed
|
$children | |
public
mixed
|
$total_stock |