Product_Single
Handles settings and constants related to the single product page in the BigCommerce integration.
It defines various constants used for customization of product display, such as meta descriptions, gallery settings, pricing, and more.
- Full name:
\BigCommerce\Customizer\Sections\Product_Single
Constants
| Constant | Visibility | Type | Value |
|---|---|---|---|
NAME | public | string | ’bigcommerce_product_single’ |
RELATED_COUNT | public | string | ’bigcommerce_max_related_products’ |
DEFAULT_IMAGE | public | string | ’bigcommerce_default_image_id’ |
PRICE_DISPLAY | public | string | ’bigcommerce_default_price_display’ |
INVENTORY_DISPLAY | public | string | ’bigcommerce_inventory_display’ |
VARIANTS_DISABLED | public | string | ’bigcommerce_variants_disabled’ |
META_DESC_DISABLE | public | string | ’bigcommerce_meta_description_disabled’ |
GALLERY_SIZE | public | string | ’bigcommerce_gallery_image_size’ |
HEADLESS_IMAGE_SIZE | public | string | ’bigcommerce_gallery_headless_image_size’ |
ENABLE_ZOOM | public | string | ’bigcommerce_enable_zoom’ |
ENABLE_PRICE_NONCE | public | string | ’bigcommerce_enable_price_nonce’ |
SIZE_DEFAULT | public | string | ’default’ |
SIZE_LARGE | public | string | ’large’ |
SIZE_ORIGINAL | public | string | ’original’ |
SIZE_CDN_STD | public | string | ’standard’ |
SIZE_CDN_THUMB | public | string | ’thumbnail’ |
Methods
register
Registers all customization options under the product single section.
public register(\WP_Customize_Manager $wp_customize): voidParameters:
| Parameter | Type | Description |
|---|---|---|
$wp_customize | \WP_Customize_Manager | The WordPress customizer instance. |
meta_description
Adds the meta description display setting and control.
protected meta_description(\WP_Customize_Manager $wp_customize): voidParameters:
| Parameter | Type | Description |
|---|---|---|
$wp_customize | \WP_Customize_Manager | Customizer manager instance. |
pricing_nonce
Registers the pricing nonce field option setting and control.
protected pricing_nonce(\WP_Customize_Manager $wp_customize): voidOnly enabled when the headless flag is set.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$wp_customize | \WP_Customize_Manager | Customizer manager instance. |
Automatically generated on 2025-01-21