• ResolvedPlugin Author Fahad Mahmood

    (@fahadmahmood)


    	add_filter('slw_product_price_decimals', 'slw_product_price_decimals_callback', 10, 2);
    	
    	function slw_product_price_decimals_callback($decimal=2, $price=0){
    
    		$price = explode('.', $price);
    		$int = preg_replace('/[^0-9]/', '', end($price));
    		$price_decimals = (count($price)==1?0:strlen($int));
    		return $price_decimals;
    
    	}	
  • The topic ‘How to handle product price decimals in Romanian language?’ is closed to new replies.