Files
wordpress-theme-aksrt/inc/classes/admin/schema/class-aksrt-admin-schema-shop-timing.php
T

39 lines
1.9 KiB
PHP

<?php
/**
* AKSRT_Admin_Schema_Shop_Timing section schema.
*
* @package AKSRT
*/
defined('ABSPATH') || exit;
class AKSRT_Admin_Schema_Shop_Timing {
public static function build(): array {
return [
'key' => 'timing',
'title' => '时效与售后原因',
'version' => '1.0.0',
'option_key' => 'aksrt_settings',
'groups' => [
['key' => 'receipt', 'title' => '确认收货', 'fields' => [
['key' => 'shop_order_receipt_max_day', 'label' => '自动确认收货(天)', 'type' => 'number', 'default' => 15, 'min' => 1, 'max' => 60],
]],
['key' => 'comment', 'title' => '评价时效', 'fields' => [
['key' => 'shop_comment_max_day', 'label' => '评价时效(天)', 'type' => 'number', 'default' => 7, 'min' => 1, 'max' => 60],
['key' => 'shop_comment_placeholder', 'label' => '评价占位文案', 'type' => 'input', 'default' => ''],
['key' => 'shop_comment_img_num', 'label' => '评价图片数', 'type' => 'number', 'default' => 3, 'min' => 0, 'max' => 9],
]],
['key' => 'afterSale', 'title' => '售后退货', 'fields' => [
['key' => 'shop_after_sale_return_express_max_day', 'label' => '退货快递时效(天)', 'type' => 'number', 'default' => 7, 'min' => 1, 'max' => 30],
['key' => 'shop_after_sale_reason_refund', 'label' => '仅退款原因', 'type' => 'textarea', 'default' => ''],
['key' => 'shop_after_sale_reason_return', 'label' => '退货退款原因', 'type' => 'textarea', 'default' => ''],
]],
['key' => 'author', 'title' => '商家信息', 'fields' => [
['key' => 'shop_author_show', 'label' => '显示商家信息', 'type' => 'switch', 'default' => true],
]],
],
];
}
}