1
A
回答
1
按照這個答案,我得到了解決 https://stackoverflow.com/a/24190390/5194017
同在這個答案我重寫BACS網關的文件並覆蓋此功能
public function thankyou_page($order_id) {
if ($this->instructions) {
echo wpautop(wptexturize(wp_kses_post(str_replace("{order_number}", $order_id, $this->instructions))));
}
$this->bank_details($order_id);
}
public function email_instructions($order, $sent_to_admin, $plain_text = false) {
if (! $sent_to_admin && 'bacs' === $order->payment_method && $order->has_status('on-hold')) {
if ($this->instructions) {
echo wpautop(wptexturize(str_replace("{order_number}", $order->id, $this->instructions))) . PHP_EOL;
}
$this->bank_details($order->id);
}
}
添加「{ORDER_NUMBER}」在BACS指令字段您要在哪裏顯示訂單號並用$ order_id替換{order_number}。
相關問題
- 1. 從WooCommerce的電子郵件通知中刪除BACS指令
- 2. 與銀行直接交易的支付網關
- 3. 的Prestashop:銀行電匯選定組
- 4. 如何在Woocomerce中獲取訂單ID電子郵件
- 5. 在PayPal中顯示訂單號
- 6. 訂單行和顯示順序編號
- 7. Magento 1.8中沒有訂單,但在Braintree中顯示訂單號
- 8. 電話數字格式只顯示在電話號碼文本字段
- 9. 貝寶不顯示訂單彙總,Omnipay
- 10. 僅顯示在HTML表單首先取指令字段
- 11. 的Java API匯豐銀行的支付網關
- 12. 在Android中顯示電話號碼
- 13. Magento在訂單概覽中顯示和編輯跟蹤號字段
- 14. 銀行在PIC彙編
- 15. 在GDB中顯示當前的彙編指令
- 16. 顯示電話號碼
- 17. 鏈接Dokan Woocommerce電子郵件通知的訂單號碼
- 18. SSRS顯示非彙總號碼
- 19. Context :: getContext()如何在Prestashop銀行電匯模塊中使用
- 20. clojure銀行帳戶匯款示例
- 21. 電話號碼來電顯示/電話號碼
- 22. 使用prestashop在mysql中顯示訂單彙總參考
- 23. asp.net - 將電話號碼顯示爲鏈接或不顯示
- 24. 在字段指令中顯示HTML,而不是渲染?
- 25. 條紋銀行到銀行的直接轉賬
- 26. 在ACF關係字段結果中獲取woocomerce SKU
- 27. BACS訂單問題WooCommerce中的內部服務器錯誤
- 28. 角度電話號碼指令允許雙擊後的字母
- 29. 顯示HTML 5剃刀中的電話號碼鏈接
- 30. 在android中撥打電話的來電顯示號碼