Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • rcojoe

    (@rcojoe)

    That fixed it. Thank you!

    Joe

    rcojoe

    (@rcojoe)

    Hi. This just suddenly started to happen. I don’t see any 404 errors. I have been using your plugin for over a year without issue until the 18th when checkout gave me the spinner on the right side. I haven’t published a new tag manager version for over 4 months. With all tags paused, I still can’t checkout.

    Joe

    • This reply was modified 7 years ago by rcojoe.
    Thread Starter rcojoe

    (@rcojoe)

    I installed the new version of Yoast, There is still an issue with Sitemaps though. If I turn sitemaps off in yoast, facetwp works.

    Thanks for your work on this.

    Joe

    Details on what this affects on my system was the product detail on the admin page. Product choice of variable or simple is not shown and no submenus in the product admin page can be chosen, so I was completely dead in the water trying to administer product.

    This seems to fix it for me without any additional modifications.
    Joe

    function reorder_color_options( $array, $number,$taxonomy, $args ) { 
    if ($taxonomy == "pa_color" and is_super_admin()){ 
    //error_log(print_r($args,true));
    global $wpdb;
    $results = $wpdb->get_results( "select min(menu_order) menu_order, meta_value from wp_posts
               join wp_postmeta
               on wp_postmeta.post_id = wp_posts.ID and wp_postmeta.meta_key = 'attribute_pa_color'
               where wp_posts.post_parent = ".$number."
               group by meta_value
               order by min(menu_order)", OBJECT );
    //echo print_r($results,true);
    foreach ($results as $colororder){
    //	echo $colororder->meta_value. "<br>";
    	foreach ($array as $key=>$color){
    		if ($color->slug == $colororder->meta_value){
    //			echo "Found Match<br>";
    			$sortedarray[]=$color;
    			unset($array[$key]);
    		}
    	}
    }
    $array = array_merge($sortedarray, $array);
    }
    return $array; 
    };
    add_filter( 'woocommerce_get_product_terms', 'reorder_color_options', 10,4 );
    
    • This reply was modified 8 years, 1 month ago by rcojoe.
    • This reply was modified 8 years, 1 month ago by rcojoe. Reason: fixed formatting
Viewing 5 replies - 1 through 5 (of 5 total)