dongnao6858 2019-07-16 19:27
浏览 88

如何在woocommerce电子邮件中扩展和添加一些字段?

I'm setting up a new website with WC vendors plugin and woocommerce. And I want when customer by some product automatically to get mail from vendors about his bank details because I use the direct bank payment method and vendor to get the mail about the purchase that made for his product. Right now only admin gets mails and customer gets emails about admin bank details. I store this data in wp_usermeta.

Thank you

This is something that I try but this has $sent_to_admin and this is something that I do not want.

$bank_account_name = get_user_meta($order->user_id, 'wcv_bank_account_name', true);
$bank_account_number = het_user_meta($order->user_id, 'wcv_bank_account_number', true);
$bank_name = get_user_meta($order->user_id, 'wcv_bank_name', true);
$bank_routing_number = get_user_meta($order->user_id, 'wcv_bank_routing_number', true);
$bank_mb = get_user_meta($order->user_id, 'wcv_bank_iban', true);
$bank_pib = get_user_meta($order->user_id, 'wcv_bank_bic_swift', true);

But always has errors and not working code.

$bank_account_name = get_user_meta($order->user_id, 'wcv_bank_account_name', true);
$bank_account_number = het_user_meta($order->user_id, 'wcv_bank_account_number', true);
$bank_name = get_user_meta($order->user_id, 'wcv_bank_name', true);
$bank_routing_number = get_user_meta($order->user_id, 'wcv_bank_routing_number', true);
$bank_mb = get_user_meta($order->user_id, 'wcv_bank_iban', true);
$bank_pib = get_user_meta($order->user_id, 'wcv_bank_bic_swift', true);

I expect the customer to get an email with vendor details for paying him and the vendor to get an email about the purchase of his product and about some details about the customer that want to buy his product.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
    • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
    • ¥15 cmd cl 0x000007b
    • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
    • ¥500 火焰左右视图、视差(基于双目相机)
    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号