petermorlion / SEPA-QR-for-Woocommerce

Plug-and-Play Plugin for Woocommerce
GNU General Public License v2.0
4 stars 0 forks source link

Support for multiple accounts/currency #2

Open AlkoKod opened 9 months ago

AlkoKod commented 9 months ago

Dear Peter,

I am in love with this QR code solution and I am looking forward to use it on multicurrency WooCommerce website. I have two bank Accounts set in the WooCommerce administration. One for CZK and one for EUR.

I use this known solution for multicurrency: https://wordpress.org/plugins/woocommerce-currency-switcher/

Is there a way, to generate QR code for right bank account and currency?

Best regards,

Aleš

petermorlion commented 2 months ago

Hi @AlkoKod , sorry for the late reply. It's definitely a good feature request! I would have to investigate this as I'm not 100% familiar with the code. Are you able to have a look at it and create a PR or do you want me to check it out?

AlkoKod commented 2 months ago

I am sorry, I am just user, I cannot do that.

petermorlion commented 2 months ago

Hey @AlkoKod , I've been looking into it a bit more, and for currencies I can already say it won't be possible. Because SEPA is €-only.

For multiple accounts it could be possible (because now it just takes the first one it finds). It's just a matter of thinking about how you want to use it. Do you want to specify the account that this plugin should use? Or do you want a hook to specify the account, meaning you would have to write some PHP code yourself? Or is there some other way you'd want to do it?

What would be the logic in your shop to choose one or other bank account?