[WordPress] 外掛分享: SEPA QR-Code for Woocommerce (GDPR-compliant)

WordPress 外掛 SEPA QR-Code for Woocommerce (GDPR-compliant) 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「SEPA QR-Code for Woocommerce (GDPR-compliant)」是 2022-10-04 上架。
  • 目前有 200 個安裝啟用數。
  • 上一次更新是 2023-08-03,距離現在已有 640 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

thedoctorcoernel |

外掛標籤

bacs | payment | qr code | Sepa-QR | woocommerce |

內容簡介

此外掛可在 WooCommerce 謝謝頁面和 WooCommerce 郵件中添加使用 SEPA-QR Code 進行銀行轉帳付款 (bacs)。QR-Code 可以在其他外掛中進行掛鉤。

啟動前

此外掛是免費的,但是該外掛是由一個真正的人完成的。因此,如果您使用它,請做好某些好事。將您的精力、時間用於有益於人的項目或其他事情上!

前提

安裝了 php GD2 擴展,因為 QR-Code 生成器需要使用 fellwell15 提供的 QR-Code 生成器。

掛鉤進其他插件

我使用了一個插件作為 PDF 發票和包裝單。查看此示例以將 QR-Code 掛鉤到您喜歡的地方:

/wp-content/themes/Your(Child)Theme/functions.php

/* QR-Code in invoices */
add_action( 'wpo_wcpdf_after_order_details', 'wpo_wcpdf_qr_code', 10, 2 );
function wpo_wcpdf_qr_code ($document_type, $order) {
require_once WP_PLUGIN_DIR . '/mxp-sepa-qr-code-addon-for-woocommerce/muxp-sepaqr.php';
$muxp_order = wc_get_order( $order);
$order_id = $order->get_id();
if ( !empty($muxp_order->get_total()) && (float)$order->get_total() > 0 ) {
echo '

QR-Code for your online banking app

';
echo 'qr-code

';
}
}

後端操作:

QR-Code 生成器在本地創建 QR-Code。沒有使用 Google-API 或外部服務器!
QR-Code 生成器來源於 fellwell15
插件為測試目的註冊了一個 get 參數 (可配置,默認為 mxp_qr),也可以用來創建到緩存中的 QR-Code 的連結。
插件中使用「mxp」前綴來避免與其他插件和功能產生衝突。mxp 代表 www.musicalexperten.de(音樂專家網站)。記住你第一次在哪裡看到它!😉

測試和故障排解
簡單方法

安裝外掛並在您的商店中使用 BACS(直接銀行轉帳)下單。

測試 QR-Code 生成器是否正常工作

www.yourwebpage.de/?mxp_qr=something = 使用虛擬值 11-11 創建真正的 QR-Code
工作示例

查找現有的緩存 QR-Code,查詢有效的 md5 字符串==如果在緩存或匯總中不存在,則會出現一個悲傷的笑臉符號。

www.yourwebpage.de/?mxp_qr=351436ef4b279e1811a6c68a2dd58b1b
的結果是一個悲傷的笑臉。 工作示例

備註

僅在您希望在郵件中使用鏈接而不是圖片時,需要將 QR-Code 存儲在緩存或匯總中。詳細信息請參閱程式代碼。

支持

此程式由一位專業的程式設計師編寫-然而,完全是免費且沒有關於 WooCommerce 的詳細知識。我盡量在支持論壇或 GitHub 中協助您,但我的知識是有限的。

完全集成在 Woocommerce 中

如果有人將代碼集成到 Woocommerce 核心中,我會更加高興!該主題在此處討論:https://github.com/woocommerce/woocommerce/issues/27661

原文外掛簡介

Adds a SEPA-QR Code for bank transfer payments (bacs) in the WooCommerce Thankyou page and Woocommerce emails. The QR-Code can be hooked into other plugins.
Before you start
The plugin comes as is and free. However a real person has put real work into it. So if you use it please do s.th. good. Use your efforts, your time for beneficial projects or whatever!
Prerequisite
php GD2 extension must be installed as the QR-Code generator by fellwell15 requires this.
Hooking into other plugins
I use a plugin for PDF-invoices and packaging slips. Refer to this sample to hook the QR-Code into whatever you like:
/wp-content/themes/Your(Child)Theme/functions.php

/* QR-Code in invoices */
add_action( 'wpo_wcpdf_after_order_details', 'wpo_wcpdf_qr_code', 10, 2 );
function wpo_wcpdf_qr_code ($document_type, $order) {
require_once WP_PLUGIN_DIR . '/mxp-sepa-qr-code-addon-for-woocommerce/muxp-sepaqr.php';
$muxp_order = wc_get_order( $order);
$order_id = $order->get_id();
if ( !empty($muxp_order->get_total()) && (float)$order->get_total() > 0 ) {
echo '

QR-Code for your online banking app

';
echo 'qr-code

';
}
}

What happens in the backend:

the QR code generator creates the QR-code locally. There is no Google-API nor external server in use!
the QR code generator is from fellwell15
plugin registers a get-parameter (configurable, default mxp_qr) for testing purposes and, if desired, to create links to the cached QR codes.
the prefix mxp is used throghout the plugin to avoid collisions with other plugins and functions. mxp stands for www.musicalexperten.de (musical experts). Remember where you’ve seen it first! 😉

Testing and troubleshooting
Simple way
Install the plugin and order s.th. in your shop using BACS (direct bank transfer).
To test if the QR-Code generator is working
www.yourwebpage.de/?mxp_qr=something = creates a real QR with dummyvalues 11-11
Working example
To find an existing cached QR-Code, query for a valid md5 string == If it does not exist in cache or transients, a sad smiley will appear.
www.yourwebpage.de/?mxp_qr=351436ef4b279e1811a6c68a2dd58b1b
results in a sad smiley. Working example
Remarks
Storing the QR code in cache or transients is only needed if you want to use a link instead of a picture inside the email. Details in the program code.
Support
The program has been written by a professional programmer – however fully free of charge and without detailed knowledge about WooCommerce. I try to assist you in the support forum or on GitHub the best I can but my knowledge is limited.
Full integration in Woocommerce
I am more then happy if someone integrates the code into the Woocommerce core! The topic is discussed here: https://github.com/woocommerce/woocommerce/issues/27661

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「SEPA QR-Code for Woocommerce (GDPR-compliant)」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.4 | 1.1.0 | trunk |

延伸相關外掛(你可能也想知道)

  • Fr Multi Bank Transfer Payment Gateways for WooCommerce 》預設情況下,WooCommerce 為您的所有銀行帳戶提供 1 個銀行轉帳支付網關。使用此外掛,您可以添加其他銀行轉帳支付網關。因此您可以將您的銀行帳戶分為多個支...。
  • PAY by square pre WooCommerce 》Pay by Square Payment Gateway umožňuje plaťby prevodom na účet pomocou QR kódov., Tento plugin vygeneruje QR kód pre sumu objednávky, ktorý sa vlož...。
  • WooCommerce Country Based Bank Accounts 》這是一個 WooCommerce 擴充套件,允許您將 BACS(直接銀行轉帳)銀行帳戶分配給不同的國家。根據選擇的帳單國家,只有相應的銀行帳戶才會顯示在「感謝您」頁...。
  • Komfortkasse for WooCommerce 》Komfortkasse 可以從銀行帳戶中檢索銀行轉帳,並自動將它們分配給未付款的訂單。該分配是在背景中自動完成的,且具有容錯性,即使名字不匹配、訂單號未指定或...。
  • QR payment for WooCommerce 》總結文案:, 使用QR Payment外掛,透過自動QR碼生成簡化銀行轉帳付款流程。, , 問題與答案:, 1. QR Payment外掛是針對哪個電子商城平台設計的?, - QR Payment...。
  • Bank Transfer (BACS) through Stripe 》總結:這個 WooCommerce 外掛與 Stripe 無縫整合,提供銀行轉帳作為付款選項,為每個購買生成獨特的虛擬銀行帳戶,客戶可以通過線上銀行或當地分行轉移資金;...。

文章
Filter
Apply Filters
Mastodon