參考資料

我們在使用ancy product designer的短代碼收訂單時

通常只有店長(網站擁有者)會收到顧客的訂單email

如果也想通知顧客, 我們有收到您訂單時 該怎麼辦呢

只要在function.php裡面輸入以下代碼即可

function func_fpd_shortcode_order_mail($inserted, $customer_name, $customer_mail, $message)
{
 wp_mail( $customer_mail, '收到線上編輯訂單通知','很高興通知您,我們已經接收到您的線上編輯器的訂單,我們會馬上開始處理您的訂單,如果您有任何問題歡迎透過Line線上客服,或是電話與我們聯絡。' );
}
add_action('fpd_shortcode_order_mail', 'func_fpd_shortcode_order_mail', 10, 4);

其他共同管理的人員也需要收到通知,想指定收件人的話,可以這樣設定:用”加上郵箱

多個郵箱可以使用,分隔

function func_fpd_shortcode_order_mail($inserted, $customer_name, $customer_mail, $message)
{
 wp_mail( '[email protected],[email protected],[email protected]', '收到線上編輯訂單通知','已有客戶完成您的編輯。' );
}
add_action('fpd_shortcode_order_mail', 'func_fpd_shortcode_order_mail', 10, 4);

最後成果

最後修改日期: 2023 年 2 月 1 日

作者