ClassesBigCommerceCustomizerSectionsProduct Single

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

ConstantVisibilityTypeValue
NAMEpublicstring’bigcommerce_product_single’
RELATED_COUNTpublicstring’bigcommerce_max_related_products’
DEFAULT_IMAGEpublicstring’bigcommerce_default_image_id’
PRICE_DISPLAYpublicstring’bigcommerce_default_price_display’
INVENTORY_DISPLAYpublicstring’bigcommerce_inventory_display’
VARIANTS_DISABLEDpublicstring’bigcommerce_variants_disabled’
META_DESC_DISABLEpublicstring’bigcommerce_meta_description_disabled’
GALLERY_SIZEpublicstring’bigcommerce_gallery_image_size’
HEADLESS_IMAGE_SIZEpublicstring’bigcommerce_gallery_headless_image_size’
ENABLE_ZOOMpublicstring’bigcommerce_enable_zoom’
ENABLE_PRICE_NONCEpublicstring’bigcommerce_enable_price_nonce’
SIZE_DEFAULTpublicstring’default’
SIZE_LARGEpublicstring’large’
SIZE_ORIGINALpublicstring’original’
SIZE_CDN_STDpublicstring’standard’
SIZE_CDN_THUMBpublicstring’thumbnail’

Methods

register

Registers all customization options under the product single section.

public register(\WP_Customize_Manager $wp_customize): void

Parameters:

ParameterTypeDescription
$wp_customize\WP_Customize_ManagerThe WordPress customizer instance.

meta_description

Adds the meta description display setting and control.

protected meta_description(\WP_Customize_Manager $wp_customize): void

Parameters:

ParameterTypeDescription
$wp_customize\WP_Customize_ManagerCustomizer manager instance.

pricing_nonce

Registers the pricing nonce field option setting and control.

protected pricing_nonce(\WP_Customize_Manager $wp_customize): void

Only enabled when the headless flag is set.

Parameters:

ParameterTypeDescription
$wp_customize\WP_Customize_ManagerCustomizer manager instance.


Automatically generated on 2025-01-21