How to add Yen

Permalink Browser Info Environment
Hello, I use this plugin conveniently.
How can I add yen to settlement currency?

I added it to $ currency_codes, but it was not reflected.

1 Attachment

Type: Pre-Sale
Status: Resolved
pictron
View Replies:
mesuva replied on at Permalink Reply 3 Attachments
mesuva
Hi Atsushi,

sorry for my delayed reply.

I tried adding jpy as a item in the currency codes and it was reflected in the drop down. See attached. Perhaps you need to clear your site's cache.

One other thing you will need to do to support Yen is that further down in the controller.php, there are _two_ lines that have:
$amount = $o->getOrderTotal() * 100;

both of them will need to be changed to:

$amount = $o->getOrderTotal() ;

It's very unlikely that I'll be pushing up another release of this add-on, so if you make the code change directly it should be fine.

-Ryan
pictron replied on at Permalink Reply
pictron
Thank you for a reply.
I performed overriding of controller.php and got along well when I renewed it and did clear cash.

The indication of $amout is thank you, too.

Probably the problem seems to be able to be settled.

concrete5 Environment Information

concrete5.6.3

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.