ProductConditionNoticeConfigurationService
in package
implements
ProductConditionNoticeConfigurationService
Class ConfigurationService
Interfaces, Classes and Traits
- ProductConditionNoticeConfigurationService
- Interface ProductConditionNoticeConfigurationService
Table of Contents
- PRODUCT_CONDITION_NOTICE_IS_MANDATORY = 'product_condition_notice_is_mandatory'
- PRODUCT_CONDITION_NOTICE_TEXT = 'product_condition_notice_text/'
- SHOW_PRODUCT_CONDITION_NOTICE = 'show_product_condition_notice'
- $configurationStorage : ConfigurationStorage
- __construct() : mixed
- deleteStoredConfiguration() : void
- Deletes all stored module configurations.
- disableModule() : void
- Disables this module and hides the product condition notice in the checkout.
- enableModule() : void
- Enables this module and shows the product condition notice in the checkout.
- getAllNoticeTexts() : array<string|int, string>
- Returns all product condition notice texts.
- getNoticeText() : string
- Returns the product condition notice text shown in the checkout process.
- isConfirmationMandatory() : bool
- Returns the confirmation-is-mandatory state.
- isModuleEnabled() : bool
- Returns the module-is-enabled state.
- setConfirmationAsMandatory() : void
- Marks the confirmation of the product condition notice as mandatory.
- setConfirmationAsNotMandatory() : void
- Marks the confirmation of the product condition notice as not mandatory.
- setNoticeText() : void
- Sets the product condition notice text shown in the checkout process.
- setNoticeTexts() : void
- Sets the product condition notice texts shown in the checkout process.
Constants
PRODUCT_CONDITION_NOTICE_IS_MANDATORY
private
mixed
PRODUCT_CONDITION_NOTICE_IS_MANDATORY
= 'product_condition_notice_is_mandatory'
PRODUCT_CONDITION_NOTICE_TEXT
private
mixed
PRODUCT_CONDITION_NOTICE_TEXT
= 'product_condition_notice_text/'
SHOW_PRODUCT_CONDITION_NOTICE
private
mixed
SHOW_PRODUCT_CONDITION_NOTICE
= 'show_product_condition_notice'
Properties
$configurationStorage
private
ConfigurationStorage
$configurationStorage
Methods
__construct()
public
__construct(ConfigurationStorage $configurationStorage) : mixed
Parameters
- $configurationStorage : ConfigurationStorage
Return values
mixed —deleteStoredConfiguration()
Deletes all stored module configurations.
public
deleteStoredConfiguration() : void
Tags
Return values
void —disableModule()
Disables this module and hides the product condition notice in the checkout.
public
disableModule() : void
Tags
Return values
void —enableModule()
Enables this module and shows the product condition notice in the checkout.
public
enableModule() : void
Tags
Return values
void —getAllNoticeTexts()
Returns all product condition notice texts.
public
getAllNoticeTexts() : array<string|int, string>
Tags
Return values
array<string|int, string> —getNoticeText()
Returns the product condition notice text shown in the checkout process.
public
getNoticeText(string $languageCode) : string
Parameters
- $languageCode : string
Tags
Return values
string —isConfirmationMandatory()
Returns the confirmation-is-mandatory state.
public
isConfirmationMandatory() : bool
Tags
Return values
bool —isModuleEnabled()
Returns the module-is-enabled state.
public
isModuleEnabled() : bool
Tags
Return values
bool —setConfirmationAsMandatory()
Marks the confirmation of the product condition notice as mandatory.
public
setConfirmationAsMandatory() : void
Tags
Return values
void —setConfirmationAsNotMandatory()
Marks the confirmation of the product condition notice as not mandatory.
public
setConfirmationAsNotMandatory() : void
Tags
Return values
void —setNoticeText()
Sets the product condition notice text shown in the checkout process.
public
setNoticeText(string $languageCode, string $text) : void
Parameters
- $languageCode : string
- $text : string
Tags
Return values
void —setNoticeTexts()
Sets the product condition notice texts shown in the checkout process.
public
setNoticeTexts(array<string|int, mixed> $texts) : void
Parameters
- $texts : array<string|int, mixed>