Download & Extend

Hong Kong dollars currency format fix

Project:Drupal Commerce
Version:7.x-1.3
Component:Price
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

According 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.

#2

Status:active» fixed

Yep, 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. : (

#3

@pcambra - thanks. not a developer though, therefore would touch upon the codes.
@rszrama - thanks. shall wait for the Commerce 1.4 update then.

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.