monero-integrations / monerowp

Monero WooCommerce Plugin for Wordpress
MIT License
105 stars 74 forks source link

How to set Monero payment at 8 digits at check out in woocommerce? #98

Open starmanted opened 3 years ago

starmanted commented 3 years ago

XMR defaults payments due at 12 digits. Wallets only send XMR at 8 digits. This causes orders to cancel because of partial payment.

Can this be changed to 8 instead of 12 at check out? If so, how to do it.

Thank you.

serhack commented 3 years ago

I think you need to edit this number. I'm not sure at 100%, I need to do some tests but should work.

starmanted commented 3 years ago

Thanks. That looks like it should work. I have to get into php to do this? I am not a developer. There is no option to edit this line in Woocommerce.

serhack commented 3 years ago

Thanks. That looks like it should work. I have to get into php to do this? I am not a developer. There is no option to edit this line in Woocommerce.

Open Plugin editor > Monero Woocommerce Gateway. From the menu on the right choose "monero-woocommerce-gateway.php", go to line 20 and edit the number.

starmanted commented 3 years ago

Thanks. That was very easy to fix and is working now at 8 digits at check out.

Best of wishes.