monerowp
monerowp copied to clipboard
Problems with product variations
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
Quickfix for me cause im just using 1 product
if ($product->is_virtual() || $item['product_id'] == 1) { $virtual_items += 1; }
Hm, interesting. Thanks for having filled an issue, I hope to investigate on it soon.