Cart
Handles the customization options for the Cart section in the WordPress Customizer.
Allows users to enable or disable the mini-cart, set the empty cart link destination, and control the visibility of shipping info and coupon codes in the cart.
- Full name:
\BigCommerce\Customizer\Sections\Cart
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
NAME | public | string | ’bigcommerce_cart’ |
ENABLE_MINI_CART | public | string | ’bigcommerce_enable_mini_cart’ |
EMPTY_CART_LINK | public | string | ’bigcommerce_empty_cart_link_destination’ |
EMPTY_CART_LINK_TEXT | public | string | ’bigcommerce_empty_cart_link_destination_text’ |
LINK_HOME | public | string | ’home’ |
LINK_CATALOG | public | string | ’catalog’ |
ENABLE_SHIPPING_INFO | public | string | ’bigcommerce_enable_shipping_info’ |
ENABLE_COUPON_CODE | public | string | ’bigcommerce_enable_coupon_code’ |
Methods
register
Registers settings and controls for Cart customization.
public register(\WP_Customize_Manager $wp_customize): void
Parameters:
Parameter | Type | Description |
---|---|---|
$wp_customize | \WP_Customize_Manager | The WordPress Customizer manager instance. |
Automatically generated on 2025-01-21