Bulk_Variations implements Registerable, Standard_Service
Handles the Bulk Variations integration.
Tags
Interfaces, Classes and Traits
- Registerable
- Standard_Service
Table of Contents
- add_product_options() : string
- Add the product options after the Bulk Variations table ouput.
- get_totals_container_html() : string
- Retrives the totals HTML for the supplied product
- register() : mixed
- {@inheritdoc}
- remove_attribute_option_fields() : bool
- Removes the attribute option fields from the Bulk Variations table products.
Methods
add_product_options()
Add the product options after the Bulk Variations table ouput.
public
add_product_options(int $product_id) : string
Parameters
- $product_id : int
Tags
Return values
string —get_totals_container_html()
Retrives the totals HTML for the supplied product
public
static get_totals_container_html(WC_Product $product) : string
Parameters
- $product : WC_Product
Tags
Return values
string —register()
{@inheritdoc}
public
register() : mixed
Tags
Return values
mixed —remove_attribute_option_fields()
Removes the attribute option fields from the Bulk Variations table products.
public
remove_attribute_option_fields(bool $display, Abstract_Field $field) : bool
Parameters
- $display : bool
- $field : Abstract_Field