Cart

Constants

ConstantVisibilityTypeValue
NAMEpublic’cart’
OPTION_ENABLE_CARTpublic’bigcommerce_enable_cart’
OPTION_AJAX_CARTpublic’bigcommerce_ajax_cart’
OPTION_CART_PAGE_IDpublic\BigCommerce\Pages\Cart_Page::NAME
OPTION_EMBEDDED_CHECKOUTpublic’bigcommerce_enable_embedded_checkout’

Methods

__construct

public __construct(\BigCommerce\Pages\Cart_Page $cart_page, \BigCommerce\Pages\Checkout_Page $checkout_page, \BigCommerce\Pages\Checkout_Complete_Page $checkout_complete_page): mixed

Parameters:

ParameterTypeDescription
$cart_page\BigCommerce\Pages\Cart_Page
$checkout_page\BigCommerce\Pages\Checkout_Page
$checkout_complete_page\BigCommerce\Pages\Checkout_Complete_Page

register_settings_section

public register_settings_section(): void

render_section

public render_section(mixed $section): mixed

Parameters:

ParameterTypeDescription
$sectionmixed

render_checkout_docs_url

public render_checkout_docs_url(): mixed

render_enable_cart_field

public render_enable_cart_field(): mixed

render_ajax_cart_field

public render_ajax_cart_field(): mixed

render_embedded_checkout_field

public render_embedded_checkout_field(): mixed

render_cart_page_field

public render_cart_page_field(): mixed

Inherited methods

render_field

public render_field(array $args): void

Parameters:

ParameterTypeDescription
$argsarray

render_number_field

public render_number_field(array $args): void

Parameters:

ParameterTypeDescription
$argsarray

get_disabled_attr_headless

Get disabled attribute if headless option is on

public get_disabled_attr_headless(): string

render_page_field

public render_page_field(mixed $args): mixed

Parameters:

ParameterTypeDescription
$argsmixed


Automatically generated on 2025-01-21