Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Need help to create a fix for Hong Kong currency format:
HK$ 10.00 for example. NOT the default 10.00 HKD
I am not a developer at all, do not understand any code or module development or to apply patch. Any chance to have a fix that someone like me can use??
Many thanks.
Comments
Comment #1
pcambraAccording wikipedia, HK$10.00 is the right format.
The file you need to change is includes/commerce.currency.inc
Symbol seems correct to me (HK$ should be used), so you'd just need to add the element below to the array:
'symbol_placement' => 'before',
If you want to provide a patch yourself, you can check how to do so here.
Comment #2
rszrama CreditAttribution: rszrama commentedYep, that's all we needed. Committed, so in Commerce 1.4 it will appear as HK$10.00 instead of 10.00 HKD. See http://store.apple.com/hk/browse/home/shop_iphone/family/iphone for an example. Not sure on the significance of the symbol separator, but right now our core currency format function doesn't really support that. : (
Comment #3
Connie Chen CreditAttribution: Connie Chen commented@pcambra - thanks. not a developer though, therefore would touch upon the codes.
@rszrama - thanks. shall wait for the Commerce 1.4 update then.