Quote from Alex Dovlatov on June 11, 2026, 13:11
Hello
The Cart Block uses the WooCommerce Store API which bypasses standard price filters. There is no native FOX support for it at the moment, but as a workaround you can try adding custom code to your theme's functions.php that hooks into the Store API price formatting:
add_filter('woocommerce_store_api_product_price', 'my_woocs_cart_block_price', 10, 2);
function my_woocs_cart_block_price($price, $product) {
// get current WOOCS currency and append suffix manually
global $WOOCS;
if (!empty($WOOCS)) {
$current = $WOOCS->current_currency;
$currencies = $WOOCS->get_currencies();
if (isset($currencies[$current])) {
$price .= ' ' . $current;
}
}
return $price;
}
This is a starting point — it may need adjustments depending on how your theme renders the block prices. No guarantees it covers all edge cases, but it is worth trying.
Alternatively, switching to the classic cart shortcode [woocommerce_cart] remains the fully supported path.
Hello
The Cart Block uses the WooCommerce Store API which bypasses standard price filters. There is no native FOX support for it at the moment, but as a workaround you can try adding custom code to your theme's functions.php that hooks into the Store API price formatting:
add_filter('woocommerce_store_api_product_price', 'my_woocs_cart_block_price', 10, 2);
function my_woocs_cart_block_price($price, $product) {
// get current WOOCS currency and append suffix manually
global $WOOCS;
if (!empty($WOOCS)) {
$current = $WOOCS->current_currency;
$currencies = $WOOCS->get_currencies();
if (isset($currencies[$current])) {
$price .= ' ' . $current;
}
}
return $price;
}
This is a starting point — it may need adjustments depending on how your theme renders the block prices. No guarantees it covers all edge cases, but it is worth trying.
Alternatively, switching to the classic cart shortcode [woocommerce_cart] remains the fully supported path.