Support

Home Forums Event Espresso Premium Japanese Yen

Japanese Yen

Posted: September 19, 2012 at 1:01 am

Viewing 8 reply threads


Michael Watt

September 19, 2012 at 1:01 am

Prices listed in Japanese Yen retain a trailing .00
Price: ¥3000.00
Is there anyway to remove this with the recent 3.1.27. EE upgrade?

If displayed properly the price should look like the following:
Price: ¥3,000


Dean

September 19, 2012 at 6:32 am

Hi Michael,

Theres no way to remove the trailing .00 from the EE options.

It can be done however by amending the templates. I did it successfully with the event_list_display.php by editing the code at line 70 screenshot

I inserted this code above that line

<?php 
$dean = $event->event_cost;
$dean_remove =substr($dean, 0, -3); 
?>

and then on line 70 changing $event->event_cost to $dean_remove

Obviously you can use whatever variable names you want.

You would need to do a similar process for the registration_display.php and confirmation_display.php files as well.

As always we recommend that these files are copied to the uploads/espresso/templates directory before editing.


Michael Watt

September 20, 2012 at 11:40 pm

Dean, I appreciate your support.

I’m wondering if you made a mistake with regards to the screenshot you posted.
I made the code change that you explained for event_list_display.php.

Could I bother you to explain where the code is that I should change within:
confirmation_display.php
registration_display.php (shouldn’t this be registration_page_display.php?)

Thanks!


Dean

September 21, 2012 at 12:31 am

Hello Michael,

Not sure what you mean regarding the screenshot, it was just to show that the code removes the trailing .00 from the figures (it can’t differentiate between currency types its across the board, i should have mentioned that).

registration_page_display (yeah I mistyped in the last message)

    $price = $org_options['currency_symbol'] . number_format($price_range['min'], 2) . ' - ' . $org_options['currency_symbol'] . number_format($price_range['max'], 2);
    } else {
$price = $org_options['currency_symbol'] . number_format($price_range['min'], 2);

The 2’s need to be changed to zeros. Same thing in the Confirmation display

PLEASE NOTE: 3.1.27 has a different template structure so these wont work when you upgrade.


Michael Watt

September 21, 2012 at 4:49 pm

OUCH! I’m using EE Version 3.1.27.P
Does this mean I’m out of luck?
Any other possible solutions?

Thanks for your patience!


Dean

September 24, 2012 at 6:40 am

Hi Michael,

I thought you were running .26 but now I know.

The .27 version has had its code changed in how this works. Let me run it by a dev to see if I can get a resolution for you.


Michael Watt

October 30, 2012 at 12:04 am

Any movement on this?


Dean

October 30, 2012 at 12:35 am

Hi Michael,

Yes I did receive some feedback. Basically it would require some extensive reworking of the plugin. The developers are looking into whether it should be incorporated into version 3.2, I will make sure it gets a +1 from you.


Michael Watt

October 30, 2012 at 10:54 pm

From all Japanese website developers… thank you!

Viewing 8 reply threads

The support post ‘Japanese Yen’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso