<?php
/**
** filter layout value for woo/price to output price html from product object
**/
add_filter( 'facetwp_builder_item_value', function( $value, $item ) {
if ( 'woo/price' == $item['source'] ) {
$product = wc_get_product( get_the_ID() );
$price = $product->get_price_html();
$value = str_replace( $item['source'], $price, $value );
}
return $value;
}, 10, 2 );