• Hello,
    I want to round up the prices for the additional currencies
    (not the default currency)

    if( get_locale() != ‘en_US’ ){
    return ceil($price)
    }

    which hook should i use?

Viewing 1 replies (of 1 total)
  • Hi,

    Kindly make use of the following code snippet:

    add_filter( 'wmc_get_price', function ( $price, $currency ) {
    	if ( $currency == ' additional currencies' ) {
    		return ceil( $price );
    	}
    
    	return $price;
    }, 10, 2 );

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Hook for Round up the Prices?’ is closed to new replies.