Forums
(@vincentjames501)
9 years ago
+1. We just ran into this as well. I just fixed it by doing this:
$product_children = $product->get_children(); if ( ! empty ( $product_children ) ) {
instead of
if ( ! empty ( $product_children = $product->get_children()) ) {