Store item price

I need customize currency code for Japanese YEN.
As you know default currency is $ so for ted dollars it displaying as $10.00.
For Japanese currency code need to display after numbers.

For US dollar: $10.00

For Japanese: 10YEN  and 10円(For Japanese .00 is not necessary)

If there is anyone know how to change currency position, please let me know.
And one more thing.

Japanese currency in English is YEN but for Japanese it will be 円 so I want to add following language key code. <bx_text:_currency_yen />

yen.png · 17.1K · 187 views
yen2.png · 11K · 177 views
Quote · 2 Sep 2016

Anyone??

Quote · 3 Sep 2016

Try to change the following lines in modules/boonex/store/classes/BxStoreDb.php file near ~67 line from:

        elseif ($aRange['min'] == $aRange['max'])
            $sPriceRange = '%s' . $aRange['min'];
        else
            $sPriceRange = '%s' . $aRange['min'] . '-' . '%s' . $aRange['max'];

to:

        elseif ($aRange['min'] == $aRange['max'])
            $sPriceRange = $aRange['min'] . '%s';
        else
            $sPriceRange = $aRange['min'] .'%s' . '-' . $aRange['max'] . '%s';
Rules → http://www.boonex.com/terms
Quote · 4 Sep 2016

Thank you so much for your advice.

I have chaged code as you mentioned. But after I have chaged code for BxStoreDb.php, item block does not displaying on store view product page.
If there is anything missing, please let me know.

store.png · 52.6K · 171 views
Quote · 4 Sep 2016

 

I have chaged code as you mentioned. But after I have chaged code for BxStoreDb.php, item block does not displaying on store view product page.
If there is anything missing, please let me know.

This change shouldn't affect on this code disappearing, it might be something else. Also after this change you need to edit product items.

I've noticed that one more change is required in modules/boonex/store/classes/BxStoreTemplate.php file near ~114 line from:

'price' => $sCurrencySign . ' ' . $r['price'],

to:

'price' => $r['price'] . ' ' . $sCurrencySign,

 

Rules → http://www.boonex.com/terms
Quote · 5 Sep 2016

Thank you so much for your advice!!

If can teach me one more thing, it will be so help full.

In USD 10 dollars will display as $10.00

In Japanes we don't display after the decimal point so it will be displaying as 10円.

I like to know code that does not display after the decimal point.

Thank you.

Quote · 5 Sep 2016

Try the following:

'price' => (int)$r['price'] . ' ' . $sCurrencySign,
Rules → http://www.boonex.com/terms
Quote · 10 Sep 2016

Thank you so much for your advice!!!

Please give me one more advice.

I want to use a comma to separate groups of thousands.

So 10000 will be10,000

Thank you!

Quote · 10 Sep 2016

 

I want to use a comma to separate groups of thousands.

So 10000 will be10,000

Try this one:

'price' => money_format('%i', (int)$r['price']) . ' ' . $sCurrencySign,
Rules → http://www.boonex.com/terms
Quote · 24 Sep 2016
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.