Câu hỏi được gắn thẻ «system-configuration»

2
Magento 2: các loại trường có sẵn trong system.xml
Các giá trị khả dụng cho các loại trường trong etc/system.xmltệp cấu hình là gì: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> <system> <section id="..."> <group id="..."> <field id="..." type="???"> ... </field> </group> </section> </system> </config>

5
Làm thế nào tôi có thể giải mã một giá trị cấu hình được mã hóa?
protected $_paymentData; protected $_scopeConfig; protected $logger; public function __construct( \Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, \Magento\Framework\Module\ModuleListInterface $moduleList, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Directory\Model\CountryFactory $countryFactory, \Stripe\Stripe $stripe, \Inchoo\Stripe\Model\StripeFactory $stripeFactory, array $data = array() ) { parent::__construct( $context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, $moduleList, $localeDate, null, …

1
Magento 2: Nhận giá trị từ cấu hình hệ thống trong bố cục XML
Làm cách nào để tôi nhận dạng liên kết mô-đun của mình trong phần chân trang từ các giá trị cấu hình lõi mà tôi đã đặt trong cấu hình hệ thống quản trị <referenceBlock name="footer_links"> <block class="Magento\Framework\View\Element\Html\Link\Current" name="storelocator-policy-link"> <arguments > <argument ifconfig="googlemapsstorelocator/general/enable" name="label" xsi:type="string">Google Maps Store Locator</argument> <argument name="path" …

3
Cấu hình hệ thống Đa mặc định tất cả đã chọn
Tôi có một trường cấu hình hệ thống loại multiselect sẽ được điền bằng catalog/product_attribute_collection. Đây là một phần của system.xmlđịnh nghĩa nó. <attributes> <label>Choose Attributes to JSONize</label> <frontend_type>multiselect</frontend_type> <sort_order>3</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <source_model>package_module/system_config_attributes</source_model> </attributes> Bây giờ tôi muốn tất cả các giá trị trong multiselect được chọn theo mặc …
Khi sử dụng trang web của chúng tôi, bạn xác nhận rằng bạn đã đọc và hiểu Chính sách cookie và Chính sách bảo mật của chúng tôi.
Licensed under cc by-sa 3.0 with attribution required.