Files
stemcell/app/code/Stemcell/Commerce/etc/adminhtml/system.xml
T
2026-09-15 10:26:34 +08:00

81 lines
4.0 KiB
XML

<?xml version="1.0"?>
<!--
/**
* 2025 D1m Group
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0) that is available
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
*
* @copyright 2025 D1m Group
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="stemcell" translate="label" sortOrder="100">
<label>Stemcell</label>
</tab>
<section id="commerce" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<class>separator-top</class>
<label>微信小程序配置</label>
<tab>stemcell</tab>
<resource>Stemcell_Commerce::config</resource>
<group id="wechat" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>微信小程序设置</label>
<field id="app_id" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>AppID</label>
<comment>微信小程序的AppID</comment>
</field>
<field id="app_secret" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>AppSecret</label>
<comment>微信小程序的AppSecret</comment>
</field>
<field id="switch" type="select" showInDefault="1" sortOrder="31" showInWebsite="1" showInStore="1">
<label>小程序首页开关</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>控制小程序首页的搜索、产品中心、技术资源等是否在小程序首页展示</comment>
</field>
<field id="banner" type="textarea" showInDefault="1" sortOrder="32" showInWebsite="1" showInStore="1">
<label>小程序首页banner</label>
<comment>控制小程序首页banner</comment>
</field>
<field id="api_url" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>微信API地址</label>
<comment>微信API的基础URL,默认为https://api.weixin.qq.com</comment>
</field>
<field id="utility_tools" type="textarea" showInDefault="1" sortOrder="33" showInWebsite="1" showInStore="1">
<label>实用工具页面配置</label>
</field>
<field id="contact_us" type="textarea" showInDefault="1" sortOrder="33" showInWebsite="1" showInStore="1">
<label>联系我们页面配置</label>
</field>
<field id="technical_resource_menu" type="textarea" showInDefault="1" sortOrder="33" showInWebsite="1" showInStore="1">
<label>技术资源菜单配置</label>
</field>
<field id="marketing_posts" type="textarea" showInDefault="1" sortOrder="33" showInWebsite="1" showInStore="1">
<label>市场活动配置</label>
</field>
<field id="tesr_product_finder" type="textarea" showInDefault="1" sortOrder="33" showInWebsite="1" showInStore="1">
<label>多能干细胞维持培养工具页面配置</label>
</field>
<field id="new_product" type="textarea" showInDefault="1" sortOrder="33" showInWebsite="1" showInStore="1">
<label>新品页面配置</label>
</field>
</group>
</section>
</system>
</config>