Hello,
My ticket at https://xtemos.com/forums/topic/frequently-bought-together-compability-issues/ was closed without answering my question.
In regards to the issue i was wondering if you could add a filter as in my example below so i can edit the priority without editing core files.
Just add something like this:
$priority = apply_filters( ‘woocommerce_get_price_html_priority’, 10 );
add_filter( ‘woocommerce_get_price_html’, array( $this, ‘update_product_price’ ), $priority, 2 );
Then i can easily change the priority as below:
// Change price html priority for frequently bought together
function afas_change_price_html_priority() {
return 11;
}
add_filter( ‘woocommerce_get_price_html_priority’, ‘afas_change_price_html_priority’ );
Brgds
Rune