You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Verbb's Gift Voucher plugin, Vouchers are available in commerce_purchasables, but are not in commerce_variants. As such, the query returns NULL for the ID and SKU. This really messes up the widget.
My solution right now is to just exclude any item the returns a NULL ID. This actually gives me what I want the most anyway, as I just want to know what the actual top selling products are and exclude Gift Vouchers from that display.
When using Verbb's Gift Voucher plugin, Vouchers are available in commerce_purchasables, but are not in commerce_variants. As such, the query returns NULL for the ID and SKU. This really messes up the widget.
My solution right now is to just exclude any item the returns a NULL ID. This actually gives me what I want the most anyway, as I just want to know what the actual top selling products are and exclude Gift Vouchers from that display.
Change Line 84 of ProductsTop.php from
to
I could see this also being an issue with Digital Products, as those products don't use Variants either, although I haven't tested it.
The text was updated successfully, but these errors were encountered: