change order total service and code format.

This commit is contained in:
Edward Yang 2023-05-18 15:31:11 +08:00
parent 0bd592b648
commit 1574805a5a
60 changed files with 1052 additions and 1051 deletions

View File

@ -22,7 +22,6 @@ class TotalService
'tax', 'tax',
'shipping', 'shipping',
'customer_discount', 'customer_discount',
'order_total',
]; ];
public Cart $currentCart; public Cart $currentCart;
@ -116,7 +115,10 @@ class TotalService
$maps[$code] = "\Beike\\Shop\\Services\\TotalServices\\{$serviceName}"; $maps[$code] = "\Beike\\Shop\\Services\\TotalServices\\{$serviceName}";
} }
return hook_filter('service.total.maps', $maps); $maps = hook_filter('service.total.maps', $maps);
$maps['order_total'] = "\Beike\\Shop\\Services\\TotalServices\\OrderTotalService";
return $maps;
} }
/** /**

View File

@ -14,5 +14,5 @@ return [
'countries_index' => '국가 목록', 'countries_index' => '국가 목록',
'countries_create' => '국가 만들기', 'countries_create' => '국가 만들기',
'countries_update' => '국가 업데이트', 'countries_update' => '국가 업데이트',
'countries_delete' => '국가 삭제' 'countries_delete' => '국가 삭제',
]; ];

View File

@ -81,7 +81,6 @@ return [
'view_more' => '자세히 보기', 'view_more' => '자세히 보기',
'view_details' => '자세히 보기', 'view_details' => '자세히 보기',
'id' => 'ID', 'id' => 'ID',
'created_at' => '만드는 시간', 'created_at' => '만드는 시간',
'updated_at' => '시간 수정', 'updated_at' => '시간 수정',