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

ConstantVisibilityTypeValue
NAMEpublicstring’bigcommerce_cart’
ENABLE_MINI_CARTpublicstring’bigcommerce_enable_mini_cart’
EMPTY_CART_LINKpublicstring’bigcommerce_empty_cart_link_destination’
EMPTY_CART_LINK_TEXTpublicstring’bigcommerce_empty_cart_link_destination_text’
LINK_HOMEpublicstring’home’
LINK_CATALOGpublicstring’catalog’
ENABLE_SHIPPING_INFOpublicstring’bigcommerce_enable_shipping_info’
ENABLE_COUPON_CODEpublicstring’bigcommerce_enable_coupon_code’

Methods

register

Registers settings and controls for Cart customization.

public register(\WP_Customize_Manager $wp_customize): void

Parameters:

ParameterTypeDescription
$wp_customize\WP_Customize_ManagerThe WordPress Customizer manager instance.


Automatically generated on 2025-01-21