how to not display dicimal
-
I use Japanese money so no need to show dicimal
how to hide it?
Viewing 5 replies - 1 through 5 (of 5 total)
-
Thank you!
For example, how to hide decimal for JPY?
I can only change symbol and position.<?php //thanks jigoshop global $pmpro_currencies, $pmpro_default_currency; $pmpro_default_currency = apply_filters("pmpro_default_currency", "USD"); $pmpro_currencies = array( 'USD' => __('US Dollars ($)', 'pmpro'), 'EUR' => array( 'name' => __('Euros (€)', 'pmpro'), 'symbol' => '€', 'position' => 'right' ), 'GBP' => array( 'name' => __('Pounds Sterling (£)', 'pmpro'), 'symbol' => '£', 'position' => 'left' ), 'AUD' => __('Australian Dollars ($)', 'pmpro'), 'BRL' => array( 'name' => __('Brazilian Real (R$)', 'pmpro'), 'symbol' => 'R$', 'position' => 'left' ), 'CAD' => __('Canadian Dollars ($)', 'pmpro'), 'CNY' => __('Chinese Yuan', 'pmpro'), 'CZK' => array( 'name' => __('Czech Koruna', 'pmpro'), 'decimals' => '0', 'thousands_separator' => ' ', 'decimal_separator' => ',', 'symbol' => ' Kč', 'position' => 'right', ), 'DKK' => __('Danish Krone', 'pmpro'), 'HKD' => __('Hong Kong Dollar ($)', 'pmpro'), 'HUF' => __('Hungarian Forint', 'pmpro'), 'INR' => __('Indian Rupee', 'pmpro'), 'IDR' => __('Indonesia Rupiah', 'pmpro'), 'ILS' => __('Israeli Shekel', 'pmpro'), 'JPY' => array( 'name' => __('Japanese Yen (¥)', 'pmpro'), 'symbol' => '¥', 'position' => 'right' ), 'MYR' => __('Malaysian Ringgits', 'pmpro'), 'MXN' => __('Mexican Peso ($)', 'pmpro'), 'NZD' => __('New Zealand Dollar ($)', 'pmpro'), 'NOK' => __('Norwegian Krone', 'pmpro'), 'PHP' => __('Philippine Pesos', 'pmpro'), 'PLN' => __('Polish Zloty', 'pmpro'), 'SGD' => array( 'name' => __('Singapore Dollar ($)', 'pmpro'), 'symbol' => '$', 'position' => 'right' ), 'ZAR' => array( 'name' => __('South African Rand (R)', 'pmpro'), 'symbol' => 'R ', 'position' => 'left' ), 'KRW' => __('South Korean Won', 'pmpro'), 'SEK' => __('Swedish Krona', 'pmpro'), 'CHF' => __('Swiss Franc', 'pmpro'), 'TWD' => __('Taiwan New Dollars', 'pmpro'), 'THB' => __('Thai Baht', 'pmpro'), 'TRY' => __('Turkish Lira', 'pmpro'), 'VND' => __('Vietnamese Dong', 'pmpro') ); $pmpro_currencies = apply_filters("pmpro_currencies", $pmpro_currencies); //stripe only supports a few (not using this anymore since 1.7.4) global $pmpro_stripe_currencies; $pmpro_stripe_currencies = array( 'USD' => __('US Dollars ($)', 'pmpro'), 'CAD' => __('Canadian Dollars ($)', 'pmpro'), 'GBP' => __('Pounds Sterling (£)', 'pmpro'), 'EUR' => __('Euros (€)', 'pmpro') ); ?>I’m working on this for the release today.
wonderful!
I tested.
Thank you so muchAwesome. Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘how to not display dicimal’ is closed to new replies.