我希望修改在销售商品时发送给管理员的交易结果电子邮件(包括并排除某些信息等),我在google上进行了研究并查看了wp-ecommerce支持网站并且无法找到当前正在进行此处的位置(很多引用旧版本的插件后来发生了重大变化)。我将继续寻找在哪里这样做,但由于我不熟悉wp-ecommerce(或wordpress),我不完全确定在哪里看。
如果有人能够阐明这一点,我们将不胜感激。
答案 0 :(得分:3)
在wp-e-commerce / wpsc-updates / updates_tasks.php
下356-372行是电子邮件部分的位置。
add_option('wpsc_email_receipt', '', __('Thank you for purchasing with %shop_name%, any items to be shipped will be processed as soon as possible, any items that can be downloaded can be downloaded using the links on this page.All prices include tax and postage and packaging where applicable.You ordered these items:%product_list%%total_shipping%%total_price%', 'wpsc'), 'yes');
add_option('wpsc_email_admin', '', __('%product_list%%total_shipping%%total_price%', 'wpsc'), 'yes');
if(get_option('wpsc_email_receipt') == '') {
if(get_option('email_receipt') != '') {
update_option('wpsc_email_receipt', get_option('email_receipt'));
} else {
update_option('wpsc_email_receipt', __('Thank you for purchasing with %shop_name%, any items to be shipped will be processed as soon as possible, any items that can be downloaded can be downloaded using the links on this page.All prices include tax and postage and packaging where applicable.You ordered these items:%product_list%%total_shipping%%total_price%', 'wpsc'));
}
}
if(get_option('wpsc_email_admin') == '') {
if(get_option('email_admin') != '') {
update_option('wpsc_email_admin', get_option('email_admin'));
} else {
update_option('wpsc_email_admin', __('%product_list%%total_shipping%%total_price%', 'wpsc'));
}
}
如果您想深入了解整个电子邮件代码,也可以进入本节
WP-电子商务/ WPSC-包括/购买日志-notification.class.php
答案 1 :(得分:1)
我为此以及许多其他wp电子商务功能创建了一个插件。 使用shop styling plugin,您可以使用占位符以及来自wordpress后端的任何其他邮件修改事务报告,而无需修改任何插件文件。