PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]
Botoscope is currently in early access

Support Forum

You need to log-in to create request (topic) to the support

Support for cart block?

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

I'm using kadence theme and the fox currency switch. The cart page uses the cart block and the checkout is classic. I am displaying dollars as either $10.00 USD or $10.00 CAD on product pages and checkout, but the cart page does not include the code suffix: it's just $10.00. If i switch to the classic cart, the prices are the way I want them, with the code suffix. Any idea what's going on here? I'm  running latest woo and version 1.4.7 of Fox.

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.