###前提・実現したいこと
EC-CUBEバージョン:2.13.5
PHPバージョン:PHP 5.6.30
DBバージョン:MySQL 5.6.35
売上集計>期間別集計の集計項目を変更したいのですが、
どのように対応をすればいいかご教示頂けませんでしょうか。
下記変更しています。
/data/Smarty/templates/admin/total/page_term.tpl
→表示の変更はできました。
/data/class_extends/db_extends/dbfactory/SC_DB_DBFactory_MYSQL_Ex.php
→修正したのですが、数値の反映がうまくできません。
下記のように変更を行っています。
■SC_DB_DBFactory_MYSQL_Ex.php
ーーーーーーーーーーーーーーーーーーーーーーーーーーー
return " date_format(create_date, '".$format."') AS str_date,
COUNT(order_id) AS total_order,
SUM(subtotal) AS total_subtotal,
SUM(deliv_fee) AS total_deliv,
SUM(charge) AS total_charge,
SUM(use_point) AS total_point,
SUM(coupon_discount) AS total_coupon,
SUM(total) AS total,
AVG(total) AS total_average";
}
ーーーーーーーーーーーーーーーーーーーーーーーーーーー
■page_term.tpl
ーーーーーーーーーーーーーーーーーーーーーーーーーーー
記述間違いなど、ご教示頂けますと幸いです。
あなたの回答
tips
プレビュー