Support » Theme: evolve » Variation images not showing

Viewing 2 replies - 1 through 2 (of 2 total)
  • This maybe with a recent update of Woocommerce combined with older theme.

    I had the same issue after an update – I tested turning off all other plugins except Woocommerce and the issue, for me, remained.

    Another problem I had was that if a “Default Form Value” (default variable) had not been set it was possible for an order to go through without an actual variation selected if the option selector remained at “Please select option” – no variable selected. This normally displays a warning to select an option if “add to cart” is selected but had stopped working for me.

    Until I get a new theme in place I am using the following code in functions.php to make sure a variation (the first) is displayed and removes “Please select option”. This does not solve the image not changing with variation change though – just makes sure a variable option is selected.

    add_filter( 'woocommerce_dropdown_variation_attribute_options_html', 'filter_dropdown_option_html', 12, 2 );
    function filter_dropdown_option_html( $html, $args ) {
        $show_option_none_text = $args['show_option_none'] ? $args['show_option_none'] : __( 'Choose an option', 'woocommerce' );
        $show_option_none_html = '<option value="">' . esc_html( $show_option_none_text ) . '</option>';
        $html = str_replace($show_option_none_html, '', $html);
        return $html;
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Variation images not showing’ is closed to new replies.