Black Friday & Cyber Monday SUPER SALE ALL WEEK:
Grab 40% OFF on plugins
Days
Hours
Minutes
Seconds

How to Add Currency Suffix on Cart & Checkout in WooCommerce?

Are you looking to improve the user experience on your WooCommerce store by displaying clearer price information during the checkout process? This post will provide you with a way to add a  current active currency suffix to product prices specifically on the cart and checkout.

add_filter('woocommerce_price_format', 'ts_add_currency_suffix', 10, 2);

function ts_add_currency_suffix($price, $currency_symbol) {

    // Only add the suffix on cart and checkout pages
    if (is_cart() || is_checkout()) {

        // Get the current currency code
        $currency = get_woocommerce_currency();

        // Add the suffix to the price
        $price .= ' ' . $currency;

    }
    return $price;
}

Output

On the WooCommerce cart page, it displays the currency suffix i.e. USD along with price as shown below.

How to Add Currency Suffix on Cart & Checkout in WooCommerce

It also shows the currency suffix with the product price on the WooCommerce checkout page as shown below.

How to Add Currency Suffix on Cart & Checkout in WooCommerce

Similarly, you can also add prefix or suffix to product prices in WooCommerce single product page by modifying the default product items.

Browse more in: Code Snippets, WooCommerce How Tos, WooCommerce Tutorials

Share It:

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x