monerowp icon indicating copy to clipboard operation
monerowp copied to clipboard

Problems with product variations

Open haugli92 opened this issue 4 years ago • 2 comments

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 avatar Feb 04 '21 08:02 haugli92

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

haugli92 avatar Feb 04 '21 08:02 haugli92

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

serhack avatar Feb 08 '21 21:02 serhack