-
Notifications
You must be signed in to change notification settings - Fork 9
Image support #20
base: main
Are you sure you want to change the base?
Image support #20
Conversation
Hello @petermorlion, However adding an admin page generally is a good idea to switch this option on or off. About generating the wrong QR code I have no clue as I am not a programmer. @designzwang maybe you want to have a look at? Also the issue with a large pile of QR codes not being deleted surely needs to be addressed. |
Ok, I made some changes:
Still to do: remove the QR codes after a while, to avoid spamming the server. There are a few options I see:
I'm curious to your opinion on this. |
Sorry for the late reply I have been tremendously busy the last months - I am a singing teacher, no programer! Programing is just my hobby. |
No worries. I think you can download it by going to my fork, clicking on the green "Code" button and selecting "Download ZIP". Then unzip and move the The QR images are stored in the upload directory of your Wordpress installation. It's probably something that can be configured, but by default it's |
Hi, I updated my faulty code with the correct code from the WordPress SVN. However now there are conflicts. Can you resolve them? |
because the QR code only contains order id and amount
9485151
to
8285d49
Compare
Thanks for the update. I rebased my changes so all conflicts are resolved now. |
2ea48c3
to
bc73114
Compare
I was able to test your pull request. For me it does show the QR-Code on the checkout page however it results in a parser error for my PDF-invoices plugin. Also it does not show the QR-Code in the confirmation mail. Maybe you want to rename your fork to SEPA-QR-for-Woocommerce-Advanced or something and continue this project and even publish it on the WordPress repository. I would be happy if this project is kept alive. I will put this project dormant now. |
This is a start of addressing #17
I added a settings page because the admin should be able to choose between GDPR compliant or not (I assume storing the images means they need to notify their customers to remain GDPR compliant).
If the option is enabled, I store the image in the uploads folder (in a plugin subdirectory) and use the URL instead.
The only thing I can't yet figure out is that the generated PNG image doesn't seem correct and so it's not loading.
Also something that (possibly) remains to be done is to clean up the images after a while. For example, you could have the system remove the images when an order is set to Completed.
Let me know what you think.