CheckoutSettingsManager
class CheckoutSettingsManager implements JQGridInterface, BasicEntityManagerInterface
Class CheckoutSettingsManager is injected as alligator.checkout_settings_manager service. CheckoutSettingsManager handles the logic for managed entity.
Traits
Properties
| protected CheckoutSettingsRepository | $repository | ||
| protected CheckoutSettingsEventContainer | $container | ||
| protected array|null | $cached | List of checkout steps | |
| protected array|null | $paymentTypesCached | List of payment types | |
| protected bool | $pickUpInTheStoreCached | Pick up in the store option | |
| protected bool | $findMyLocationCached | Find my location option | |
| protected array | $possiblePaymentTypesCached | List of possible payment types | |
| protected bool | $oneStepCheckoutCached | One step checkout option | |
| protected float|null | $freeDeliveryAmountCached | Free delivery amount |
Methods
No description
No description
No description
CheckoutSettingsManager constructor.
Check for all preconditions, create references to all foreign entities and persist new checkout settings
Find current checkout settings
Find cached checkout settings or cache it
Find cached payment types or cache it
Find cached pick up in the store option or cache it
Find cached possible payment types or cache it
Find all possible shipping providers
Find cached find my location option or cache it
Find checkout settings by id
Find possible payment types from database and set to cache
Check for all preconditions, create references to all foreign entities and merge checkout settings
Find reference and delete all checkout settings for provided array
Find cached checkout settings
Set checkout settings to cache
Set payment types to cache
Set pick up in to store option to cache
Set find my location option to cache
Dispatch signal to re-cache checkout settings
Find cached Internet discount or cache it
Set Internet discount to cache
Set one step checkout option to cache
Find cached one step checkout option or cache it
Set all checkout settings properties to cache
Set checkout settings object to cache
Find cached checkout settings or empty object
No description
Dispatch ship to other address event
Find cached free delivery amount or cache it
Set free delivery amount to cache
Details
in JQGridManagerTrait at line 26
mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 40
mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 53
mixed
getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)
at line 84
__construct(CheckoutSettingsRepository $repository, CheckoutSettingsEventContainer $container)
CheckoutSettingsManager constructor.
at line 98
CheckoutSettings
saveSettings(CheckoutSettings $settings)
Check for all preconditions, create references to all foreign entities and persist new checkout settings
at line 123
array
returnCurrentSettings()
Find current checkout settings
at line 132
array
returnCurrentSettingsOrCacheIt()
Find cached checkout settings or cache it
at line 154
mixed
returnCurrentPaymentTypesOrCacheIt()
Find cached payment types or cache it
at line 169
bool
returnCurrentPickUpInTheStoreOrCacheIt()
Find cached pick up in the store option or cache it
at line 190
mixed
returnPossiblePaymentsTypesOrCacheIt()
Find cached possible payment types or cache it
at line 209
array
getPossibleShippingProviders()
Find all possible shipping providers
at line 218
mixed
returnCurrentFindMyLocationOrCacheIt()
Find cached find my location option or cache it
at line 241
CheckoutSettings
returnSettingsById(int $id)
Find checkout settings by id
at line 250
mixed
returnPossiblePaymentTypes()
Find possible payment types from database and set to cache
at line 263
CheckoutSettings
editSetting(CheckoutSettings $settings)
Check for all preconditions, create references to all foreign entities and merge checkout settings
at line 306
mixed
deleteSettings(array $items)
Find reference and delete all checkout settings for provided array
at line 318
array|null
getCashCheckoutSettings()
Find cached checkout settings
at line 329
mixed
setCashCheckoutSettings(mixed $data)
Set checkout settings to cache
at line 340
mixed
setCashPaymentTypes(null $checkoutSettingsId = null)
Set payment types to cache
at line 351
mixed
setCashPickUpInTheStore(mixed $data)
Set pick up in to store option to cache
at line 362
mixed
setCashFindMyLocation(mixed $data)
Set find my location option to cache
at line 370
dispatchCheckoutSettingsGenerateSignal()
Dispatch signal to re-cache checkout settings
at line 380
float|null
getCashInternetDiscount()
Find cached Internet discount or cache it
at line 400
mixed
setCashInternetDiscount(mixed $data)
Set Internet discount to cache
at line 410
mixed
setCashOneStepCheckout(mixed $data)
Set one step checkout option to cache
at line 420
bool
getCashOneStepCheckout()
Find cached one step checkout option or cache it
at line 440
setAllToCache()
Set all checkout settings properties to cache
at line 470
mixed
setCheckoutSettingObjectToCache(mixed $currentSettings)
Set checkout settings object to cache
at line 479
CheckoutSettings
getCheckoutSettingObjectFromCache()
Find cached checkout settings or empty object
at line 487
IdentityTranslator
getTranslator()
at line 496
EventWithResult
dispatchShipToOtherAddressCustomEvent()
Dispatch ship to other address event
at line 505
mixed
returnCurrentFreeDeliveryAmountOrCacheIt()
Find cached free delivery amount or cache it
at line 530
mixed
setCashFreeDeliveryAmount(mixed $data)
Set free delivery amount to cache