monero-integrations / monerowp

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

Problems with product variations #92

Open haugli92 opened 3 years ago

haugli92 commented 3 years ago

When using Monero as payment on product variations it does not get completed. I have looked in the source code and it does not take into account that variations have a different product-id.

This function will just look for the main product-id and not the variation-id.

https://github.com/monero-integrations/monerowp/blob/fcedf21b3046ea409d54dd5609c591ee6a643209/include/class-monero-gateway.php#L770-L784

haugli92 commented 3 years ago

Quickfix for me cause im just using 1 product if ($product->is_virtual() || $item['product_id'] == 1) { $virtual_items += 1; }

serhack commented 3 years ago

Hm, interesting. Thanks for having filled an issue, I hope to investigate on it soon.