Post by TiM-SE » Wed May 18, 2011 3:26 am

Weight units are missing a spacing.

22.08kg should be 22.08 kg

This concerns everywhere weight is specified.

Attachments

Clipboard04.jpg

Clipboard04.jpg (2.83 KiB) Viewed 488 times


Newbie

Posts

Joined
Tue May 03, 2011 8:35 am

Post by Qphoria » Wed May 18, 2011 4:46 am

says you.
This is not a bug and won't be changed in the core.

If you want to add a space on your cart then add it.
1. EDIT: system/library/weight.php
2. FIND:

Code: Select all

return number_format($value, 2, $decimal_point, $thousand_point) . $this->weights[strtolower($unit)]['unit'];
3. REPLACE WITH:

Code: Select all

return number_format($value, 2, $decimal_point, $thousand_point) . ' ' . $this->weights[strtolower($unit)]['unit'];

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by TiM-SE » Wed Jul 25, 2012 10:32 pm

Perhaps the Guide for the Use of the International System of Units (IS) would be of interest to this topic?
In short it says values and units should be space separated unless superscript symbols.

Newbie

Posts

Joined
Tue May 03, 2011 8:35 am
Who is online

Users browsing this forum: Bing [Bot] and 2 guests