1

商品の販売時に管理者に送信される取引結果メールを変更しようとしています (特定の情報を含めたり除外したりするなど)。Google で調査し、wp-ecommerce サポート サイトを調べましたが、変更できませんでした。これが現在行われている場所を見つけます (大幅に変更されたプラグインの古いバージョンへの多くの参照)。これを行う場所を探し続けますが、wp-ecommerce (またはワードプレス) に精通していないため、どこを見ればよいか完全にはわかりません。

誰かがこれに光を当てることができれば、それは大歓迎です。

4

2 に答える 2

3

wp-e-commerce/wpsc-updates/updating_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-e-commerce/wpsc-includes/purchase-log-notification.class.php

于 2013-03-17T05:27:55.907 に答える
1

これと他の多くの wp e コマース機能用のプラグインを作成しました。ショップ スタイリング プラグインを使用すると、プラグイン ファイルを変更せずに、プレースホルダーや wordpress バックエンドからのその他のメールを使用してトランザクション レポートを変更できます。

于 2013-04-01T06:06:09.400 に答える