Commerce
extends Element
in package
Uses
ElementTrait
This is the 'Commerce' class, a DTO class for the theme configuration data.
The items stored in this class will remain immutable (only get methods are available).
This class extends SDK\Core\Dtos\Element, see this class.
Tags
Table of Contents
AVAILABLE_FILL_DATA_FIELDS | = 'availableFillDataFields' | |
---|---|---|
IMAGE_FEATURED_SMALL | = 'imageFeaturedSmall' | |
IMAGE_NOT_FOUND | = 'imageNotFound' | |
IMAGE_OFFER_SMALL | = 'imageOfferSmall' | |
MAIL_ACCOUNT_P_ID | = 'mailAccountPId' | |
USE_ONE_STEP_CHECKOUT | = 'useOneStepCheckout' | |
USE_OSC_ASYNC | = 'useOSCAsync' | |
$availableFillDataFields | : string | |
$imageFeaturedSmall | : string | |
$imageNotFound | : string | |
$imageOfferSmall | : string | |
$mailAccountPId | : string | |
$useOneStepCheckout | : bool | |
$useOSCAsync | : bool | |
getAvailableFillDataFields() | This method returns the available fill Data fields that will be supported data-fill-fn attribute | : string |
getImageFeaturedSmall() | This method returns the image featured small. | : string |
getImageNotFound() | This method returns the image not found. | : string |
getImageOfferSmall() | This method returns the image offer small. | : string |
getMailAccountPId() | This method returns the mail account public id | : string |
getSendMailFormFields() | This method returns the send form mail configuration for the given type in this commerce. | : array<string|int, mixed> |
getSendMailFormsFields() | This method returns the send forms mail configuration in this commerce. | : array<string|int, mixed> |
getUseOneStepCheckout() | This method returns if the commerce use one step checkout. | : bool |
getUseOSCAsync() | This method returns if the commerce use one step checkout async. | : bool |
Constants
AVAILABLE_FILL_DATA_FIELDS
public
mixed
AVAILABLE_FILL_DATA_FIELDS
= 'availableFillDataFields'
IMAGE_FEATURED_SMALL
public
mixed
IMAGE_FEATURED_SMALL
= 'imageFeaturedSmall'
IMAGE_NOT_FOUND
public
mixed
IMAGE_NOT_FOUND
= 'imageNotFound'
IMAGE_OFFER_SMALL
public
mixed
IMAGE_OFFER_SMALL
= 'imageOfferSmall'
MAIL_ACCOUNT_P_ID
public
mixed
MAIL_ACCOUNT_P_ID
= 'mailAccountPId'
USE_ONE_STEP_CHECKOUT
public
mixed
USE_ONE_STEP_CHECKOUT
= 'useOneStepCheckout'
USE_OSC_ASYNC
public
mixed
USE_OSC_ASYNC
= 'useOSCAsync'
Properties
$availableFillDataFields
protected
string
$availableFillDataFields
= ''
$imageFeaturedSmall
protected
string
$imageFeaturedSmall
= ''
$imageNotFound
protected
string
$imageNotFound
= ''
$imageOfferSmall
protected
string
$imageOfferSmall
= ''
$mailAccountPId
protected
string
$mailAccountPId
= ''
$useOneStepCheckout
protected
bool
$useOneStepCheckout
= false
$useOSCAsync
protected
bool
$useOSCAsync
= false
Methods
getAvailableFillDataFields()
This method returns the available fill Data fields that will be supported data-fill-fn attribute
public
getAvailableFillDataFields() : string
Return values
string —getImageFeaturedSmall()
This method returns the image featured small.
public
getImageFeaturedSmall() : string
Return values
string —getImageNotFound()
This method returns the image not found.
public
getImageNotFound() : string
Return values
string —getImageOfferSmall()
This method returns the image offer small.
public
getImageOfferSmall() : string
Return values
string —getMailAccountPId()
This method returns the mail account public id
public
getMailAccountPId() : string
Return values
string —getSendMailFormFields()
This method returns the send form mail configuration for the given type in this commerce.
public
getSendMailFormFields([string $typeFormFields = 'default' ]) : array<string|int, mixed>
Parameters
- $typeFormFields : string = 'default'
Return values
array<string|int, mixed> —getSendMailFormsFields()
This method returns the send forms mail configuration in this commerce.
public
getSendMailFormsFields() : array<string|int, mixed>
Return values
array<string|int, mixed> —getUseOneStepCheckout()
This method returns if the commerce use one step checkout.
public
getUseOneStepCheckout() : bool
Return values
bool —getUseOSCAsync()
This method returns if the commerce use one step checkout async.
public
getUseOSCAsync() : bool