• Resolved ergoim

    (@ergoim)


    There’s a bug currently where variations that don’t have the “Active”-checkbox checked still shows up in the variation list. I’ve tried all the different interfaces and it happens for all of them.

    I’ve solved it temporarily myself by using $product->get_available_variations() instead of $product->get_children() in wpc-variations-radio-buttons.php.

    My solution is pretty hacky and some other variables needs to be updated as well, so are you able to implement this in a future update? You could also check the variation_is_active in the child object if you still want to use get_children().

    Thanks for the great plugin!

    • This topic was modified 5 years ago by ergoim.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ergoim

    (@ergoim)

    Update: The easiest fix is to keep the get_children() as you did it, but add a status check in the foreach loops, like this:

    if ( ! $woovr_child_product || $woovr_child_product->get_status() !== ‘publish’ ) {
    continue;
    }

    Plugin Author WPClever

    (@wpclever)

    Thank you for your feedback. This helps reduce our workload a lot.
    All the best to you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Inactive variations are shown’ is closed to new replies.