{"id":163205,"date":"2022-10-05T07:02:24","date_gmt":"2022-10-05T07:02:24","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/mxp-sepa-qr-code-addon-for-woocommerce\/"},"modified":"2023-08-03T08:48:47","modified_gmt":"2023-08-03T08:48:47","slug":"mxp-sepa-qr-code-addon-for-woocommerce","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/mxp-sepa-qr-code-addon-for-woocommerce\/","author":16427950,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.0","stable_tag":"1.1.0","tested":"6.3.8","requires":"5.0","requires_php":"7.0","requires_plugins":null,"header_name":"SEPA-QR-Code for Woocommerce","header_author":"https:\/\/github.com\/Coernel82\/SEPA-QR-for-Woocommerce","header_description":"Adds a SEPA QR code to the Woocommerce Thankyou page and to the confirmation e-mail. The QR code is generated locally (using https:\/\/github.com\/fellwell5\/bezahlcode\/) due to privacy reasons and is using the IBAN and BIC of the first BACS account.","assets_banners_color":"ffffff","last_updated":"2023-08-03 08:48:47","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/Coernel82\/SEPA-QR-for-Woocommerce","header_author_uri":"https:\/\/github.com\/Coernel82\/SEPA-QR-for-Woocommerce","rating":5,"author_block_rating":0,"active_installs":200,"downloads":3049,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["installation","faq","changelog","description"],"tags":{"1.0.4":{"tag":"1.0.4","author":"thedoctorcoernel","date":"2022-11-29 08:19:50"},"1.1.0":{"tag":"1.1.0","author":"thedoctorcoernel","date":"2023-08-03 08:48:47"}},"upgrade_notice":{"1.1.0":"<ul>\n<li>added loacalization<\/li>\n<\/ul>","1.0.4":"<ul>\n<li>initial commit to the wordpress directory<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":2794367,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":2794367,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.4","1.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":2794367,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2794367,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"the QR-Code gets added to the WooCommerce order email","2":"example how the qr-code is hooked into a pdf envoice"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[39374,507,1373,214374,286],"plugin_category":[],"plugin_contributors":[214375],"plugin_business_model":[],"class_list":["post-163205","plugin","type-plugin","status-publish","hentry","plugin_tags-bacs","plugin_tags-payment","plugin_tags-qr-code","plugin_tags-sepa-qr","plugin_tags-woocommerce","plugin_contributors-thedoctorcoernel","plugin_committers-thedoctorcoernel"],"banners":{"banner":"https:\/\/ps.w.org\/mxp-sepa-qr-code-addon-for-woocommerce\/assets\/banner-772x250.jpg?rev=2794367","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/mxp-sepa-qr-code-addon-for-woocommerce\/assets\/icon-256x256.jpg?rev=2794367","icon_2x":"https:\/\/ps.w.org\/mxp-sepa-qr-code-addon-for-woocommerce\/assets\/icon-256x256.jpg?rev=2794367","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/mxp-sepa-qr-code-addon-for-woocommerce\/assets\/screenshot-1.jpg?rev=2794367","caption":"the QR-Code gets added to the WooCommerce order email"},{"src":"https:\/\/ps.w.org\/mxp-sepa-qr-code-addon-for-woocommerce\/assets\/screenshot-2.png?rev=2794367","caption":"example how the qr-code is hooked into a pdf envoice"}],"raw_content":"<!--section=installation-->\n<p>Nothing special:\n* Click install and activate<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='i%20can%27t%20see%20the%20qr-code%20in%20a%20specific%20email%20client'><h3>I can't see the QR-Code in a specific email client<\/h3><\/dt>\n<dd><p>This surely is due to the fact that some email clients won't show Base64-encoded images. Your help is appreciated! Have a look at https:\/\/github.com\/Coernel82\/SEPA-QR-for-Woocommerce\/issues\/17\nWorkaround: Hook it into your PDF-invoices! (see above!)<\/p><\/dd>\n<dt id='what%20about%20privacy%20%2F%20gdpr'><h3>What about privacy \/ GDPR<\/h3><\/dt>\n<dd><p>The plugin creates the QR-Code on your server and it does not use any external resources.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>added loacalization<\/li>\n<li>added prefix muxp to the bacs-qrcode css class for the QR code. If you have used .bacs-qrcode you have to change it to muxp-bacs-qrcode<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>initial commit to the wordpress directory<\/li>\n<\/ul>\n\n<!--section=description-->\n<p>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.<\/p>\n\n<h3>Before you start<\/h3>\n\n<p>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!<\/p>\n\n<h3>Prerequisite<\/h3>\n\n<p>php GD2 extension must be installed as the QR-Code generator by <a href=\"https:\/\/github.com\/fellwell5\/bezahlcode\/\">fellwell15<\/a> requires this.<\/p>\n\n<h3>Hooking into other plugins<\/h3>\n\n<p>I use a plugin for <a href=\"https:\/\/docs.wpovernight.com\/home\/woocommerce-pdf-invoices-packing-slips\/pdf-template-action-hooks\/\">PDF-invoices and packaging slips<\/a>.  Refer to this sample to hook the QR-Code into whatever you like:<\/p>\n\n<pre><code>\/wp-content\/themes\/Your(Child)Theme\/functions.php\n\n\n\/* QR-Code in invoices *\/\nadd_action( 'wpo_wcpdf_after_order_details', 'wpo_wcpdf_qr_code', 10, 2 );\nfunction wpo_wcpdf_qr_code ($document_type, $order) {\n    require_once WP_PLUGIN_DIR . '\/mxp-sepa-qr-code-addon-for-woocommerce\/muxp-sepaqr.php';\n    $muxp_order = wc_get_order( $order);\n    $order_id  = $order-&gt;get_id();\n    if ( !empty($muxp_order-&gt;get_total()) &amp;&amp; (float)$order-&gt;get_total() &gt; 0 ) {\n        echo '&lt;h1&gt;QR-Code for your online banking app&lt;h1&gt;';\n        echo '&lt;img class=\"muxp-bacs-qrcode\" src=\"' . esc_attr(muxp_get_qrcode($order-&gt;get_total(), $order_id)) . '\" alt=\"qr-code\"&gt;&lt;\/p&gt;';\n    } \n}\n<\/code><\/pre>\n\n<h3>What happens in the backend:<\/h3>\n\n<ul>\n<li>the QR code generator creates the QR-code locally. There is <strong>no Google-API nor external server in use<\/strong>!<\/li>\n<li>the QR code generator is from <a href=\"https:\/\/github.com\/fellwell5\/bezahlcode\/\">fellwell15<\/a><\/li>\n<li>plugin registers a get-parameter (configurable, default mxp_qr) for testing purposes and, if desired, to create links to the cached QR codes.<\/li>\n<li>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! ;-)<\/li>\n<\/ul>\n\n<h3>Testing and troubleshooting<\/h3>\n\n<h3>Simple way<\/h3>\n\n<p>Install the plugin and order s.th. in your shop using BACS (direct bank transfer).<\/p>\n\n<h3>To test if the QR-Code generator is working<\/h3>\n\n<p>www.yourwebpage.de\/?mxp_qr=something  = creates a real QR with dummyvalues 11-11\n<a href=\"https:\/\/www.musicalexperten.de\/?mxp_qr=something\">Working example<\/a><\/p>\n\n<h3>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.<\/h3>\n\n<p>www.yourwebpage.de\/?mxp_qr=351436ef4b279e1811a6c68a2dd58b1b \nresults in a sad smiley. <a href=\"https:\/\/www.musicalexperten.de\/?mxp_qr=351436ef4b279e1811a6c68a2dd58b1b\">Working example<\/a><\/p>\n\n<h3>Remarks<\/h3>\n\n<p>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.<\/p>\n\n<h3>Support<\/h3>\n\n<p>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.<\/p>\n\n<h3>Full integration in Woocommerce<\/h3>\n\n<p>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<\/p>","raw_excerpt":"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 pl &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/163205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=163205"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/thedoctorcoernel"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=163205"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=163205"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=163205"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=163205"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=163205"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=163205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}