Units
Class Units
May eventually expose UI for these settings, but for now they are imported from the BigCommerce API and not exposed in the admin.
- Full name:
\BigCommerce\Settings\Sections\Units
- Parent class:
\BigCommerce\Settings\Sections\Settings_Section
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
MASS | public | ’bigcommerce_mass_unit’ | |
LENGTH | public | ’bigcommerce_length_unit’ | |
POUND | public | ’lb’ | |
OUNCE | public | ’oz’ | |
KILOGRAM | public | ’kg’ | |
GRAM | public | ’g’ | |
TONNE | public | ’tonne’ | |
INCH | public | ’in’ | |
CENTIMETER | public | ’cm’ |
Inherited methods
render_field
public render_field(array $args): void
Parameters:
Parameter | Type | Description |
---|---|---|
$args | array |
render_number_field
public render_number_field(array $args): void
Parameters:
Parameter | Type | Description |
---|---|---|
$args | array |
get_disabled_attr_headless
Get disabled attribute if headless option is on
public get_disabled_attr_headless(): string
Automatically generated on 2025-01-21