Product_Table implements Registerable, Standard_Service

Handles integration with WooCommerce Product Table

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Standard_Service

Table of Contents

custom_table_display_description()  : string
Modifies the table display setting description to include details about wholesale layout.
maybe_allow_wholesale_only_variation()  : mixed
Allow variations with only wholesale prices to be purchased on product tables.
maybe_load_product_table_page()  : void
Maybe load the Product Table.
register()  : mixed
{@inheritdoc}
save()  : mixed
Save settings
set_wholesale_store_table_id()  : int
Set the table builder id.

Methods

custom_table_display_description()

Modifies the table display setting description to include details about wholesale layout.

public custom_table_display_description(string $description) : string
Parameters
$description : string
Tags
Return values
string

$description

maybe_allow_wholesale_only_variation()

Allow variations with only wholesale prices to be purchased on product tables.

public maybe_allow_wholesale_only_variation(bool $purchasable_from_table, WC_Product $product) : mixed
Parameters
$purchasable_from_table : bool
$product : WC_Product
Tags
Return values
mixed

maybe_load_product_table_page()

Maybe load the Product Table.

public maybe_load_product_table_page() : void
Tags
Return values
void

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

save()

Save settings

public save() : mixed
Tags
Return values
mixed

set_wholesale_store_table_id()

Set the table builder id.

public set_wholesale_store_table_id(int $table_id) : int
Parameters
$table_id : int
Tags
Return values
int

Search results