Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.3
Component:
Price
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2012 at 03:37 UTC
Updated:
25 Oct 2012 at 14:31 UTC
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 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 commented@pcambra - thanks. not a developer though, therefore would touch upon the codes.
@rszrama - thanks. shall wait for the Commerce 1.4 update then.