ClassesBigCommerceTemplatesOrder Summary

Order_Summary

Constants

ConstantVisibilityTypeValue
ORDERpublic’order’
THUMBNAIL_SIZEpublic’thumbnail_size’
DATE_FORMATpublic’date_format’
ORDER_IDpublic’order_id’
DESCRIPTIONpublic’description’
SHIPPINGpublic’shipping’
TAXpublic’tax’
DISCOUNTpublic’discount_amount’
COUPONpublic’coupon_amount’
SUBTOTALpublic’subtotal’
TOTAL_EX_TAXpublic’total_ex_tax’
TOTALpublic’total’
COUNTpublic’item_count’
PAYMENT_METHODpublic’payment_method’
STORE_CREDITpublic’store_credit’
GIFT_CERTIFICATEpublic’gift_certificate’
CREATEDpublic’created_date’
UPDATEDpublic’updated_date’
SHIPPEDpublic’shipped_date’
IMAGE_IDpublic’image_id’
IMAGEpublic’image’
STATUSpublic’status’
DETAILS_URLpublic’details_url’
SUPPORT_EMAILpublic’support_email’

Properties

template

protected $template

Methods

parse_options

protected parse_options(array $options): array

Parameters:

ParameterTypeDescription
$optionsarray

get_data

Build the data that will be available to the template

public get_data(): array

get_payment_method

protected get_payment_method(mixed $method): mixed

Parameters:

ParameterTypeDescription
$methodmixed

get_support_email

protected get_support_email(): mixed

get_fallback_image

protected get_fallback_image(mixed $size): mixed

Parameters:

ParameterTypeDescription
$sizemixed

identify_channel

protected identify_channel(mixed $order): mixed

Parameters:

ParameterTypeDescription
$ordermixed

Inherited methods

format_currency

Formats a numeric value as a currency string.

protected format_currency(float $value, string $empty_value = ''): string

Parameters:

ParameterTypeDescription
$valuefloatThe currency value to format.
$empty_valuestringThe value to return if $value is empty. Pass null to format anyway.

Return Value:

The formatted currency string or the empty value.


factory

Creates an instance of the controller

public static factory(array $options = [], string $template = ''): static
  • This method is static.

Parameters:

ParameterTypeDescription
$optionsarray
$templatestring

__construct

public __construct(array $options = [], string $template = ''): mixed

Parameters:

ParameterTypeDescription
$optionsarray
$templatestring

parse_options

protected parse_options(array $options): array
  • This method is abstract.

Parameters:

ParameterTypeDescription
$optionsarray

render

Render the template and return it as a string

public render(): string

Return Value:

The rendered template


get_data

Build the data that will be available to the template

public get_data(): array
  • This method is abstract.

wrap

Wrap the template output in an optional tag. This provides us a mechanism to ensure that some elements and classes are consistently available for JavaScript targeting, despite possible template overrides.

protected wrap(string $html): string

Parameters:

ParameterTypeDescription
$htmlstring

get_wrapper_tag

protected get_wrapper_tag(): mixed

get_wrapper_classes

protected get_wrapper_classes(): mixed

get_wrapper_attributes

protected get_wrapper_attributes(): mixed

build_attribute_string

Build a string of HTML attributes that can safely be injected into a template out of a list of key/value pairs

protected build_attribute_string(array $attributes): string

Parameters:

ParameterTypeDescription
$attributesarray


Automatically generated on 2025-01-21