b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / dev2.destoffenstraat.com / app / code / Amasty / Checkout / Model /
Filename/home/dev2.destoffenstraat.com/app/code/Amasty/Checkout/Model/Config.php
Size1.78 kb
Permissionrwxrwxrwx
Ownerroot : root
Create time17-Aug-2025 10:26
Last modified23-Nov-2022 12:33
Last accessed21-Aug-2025 20:26
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php

declare(strict_types=1);

/**
* @author Amasty Team
* @copyright Copyright (c) 2022 Amasty (https://www.amasty.com)
* @package One Step Checkout for Magento 2
*/

namespace Amasty\Checkout\Model;

use Amasty\Base\Model\ConfigProviderAbstract;

class Config extends ConfigProviderAbstract
{
/**
* xpath prefix of module (section)
*
* @var string
*/
protected $pathPrefix = self::PATH_PREFIX;

/**
* Path Prefix For Config
*/
public const PATH_PREFIX = 'amasty_checkout/';

public const DESIGN_BLOCK = 'design/';

public const OPTIONAL_UI_ELEMENTS_PATH = 'design/optional_ui_elements/';

public const FIELD_PHONE_VALIDATION_TYPE = 'phone_validation';
public const FIELD_PHONE_MIN_LENGTH = 'phone_min_length';
public const FIELD_PHONE_MAX_LENGTH = 'phone_max_length';

/**
* @param int|null $storeId
* @return string
*/
public function getAddressCheckboxState(int $storeId = null): string
{
return $this->getValue(self::DESIGN_BLOCK. 'address_checkbox_state', $storeId);
}

public function isCustomPlaceButtonText(int $storeId = null): bool
{
return $this->isSetFlag(self::DESIGN_BLOCK . 'custom_place_order', $storeId);
}

public function getPlaceButtonText(int $storeId = null): string
{
return $this->getValue(self::DESIGN_BLOCK . 'custom_place_order_text', $storeId);
}

public function isTooltipEnable(string $key, int $storeId = null): bool
{
return $this->isSetFlag(self::OPTIONAL_UI_ELEMENTS_PATH . $key . '_tooltip', $storeId);
}

public function getTooltipText(string $key, int $storeId = null): string
{
return $this->getValue(self::OPTIONAL_UI_ELEMENTS_PATH . $key . '_tooltip_text', $storeId);
}
}