Problem/Motivation

The size of a field should reflect how much text the user is expected to enter. Therefore, fields like zip code or house number should be shorter in width than fields like the address line.

Likewise we have a similar issue with the "Symbol" field.

From what I can tell no real currency symbol is longer than 3 independent characters; www.xe.com/symbols.php. I wouldn't see the need to exceed more than 4 or 5 for a custom currency symbol either... correct me if i'm wrong here.

Symbol Field

Proposed resolutions

Decrease the width of the "Symbol" field, possibly set a limit (max characters) on this field as well.

User interface changes

Making the "Symbol" field shorter.

API changes

n/a

Data model changes

n/a

Comments

AaronChristian created an issue. See original summary.

aaronchristian’s picture

bojanz’s picture

Thanks. No need to justify it so much, just write "reduce field X to size Y" :) As you've seen, there's a whole list of these tweaks that we need to do, it would probably make sense to group them by commerce submodule.

aaronchristian’s picture

Status: Active » Needs review
StatusFileSize
new636 bytes

Sounds good, thanks Bojan!

sorabh.v6’s picture

Assigned: Unassigned » sorabh.v6

Going to review it. Will post outcome post review.

sorabh.v6’s picture

Status: Needs review » Needs work
StatusFileSize
new31.77 KB
new48.19 KB

Hey @AaronChristian, I reviewed your patch and its working fine. What it did is, it reduced the size of Symbol textfield. But I would like suggest changes to Fraction digits field also. It can accommodate visually 18 digits and 1 digit after that also. Practically fraction digit can go 5 or 9 but it cannot go twenty thousand or 2 million. I am attaching screenshots to make my point more clear.

Thanks for the initial patch.

joshmiller’s picture

Assigned: sorabh.v6 » Unassigned
Issue summary: View changes
Status: Needs work » Reviewed & tested by the community

While I think Saurabh's intention was genuinely good, I think we should not be derailing a discussion over the size of the currency field with a much different discussion about the fraction field. Based on the patch doing exactly as asked and it applying to the dev version, as indicated by Saurabh, then I think this is ready to be committed.

aaronchristian’s picture

Thanks @sorabh.v6, yes @joshmiller I agree, lets get a new issue created as it pertains to a different problem/field.

@sorabh.v6 I like the idea, lets limit it and change the field size;

It looks like all standard currencies have decimal places 0-3, however we should still allow custom currency support (ie. Crypto currencies like Bitcoin have 8 decimal places).

http://apps.cybersource.com/library/documentation/sbc/quickref/currencie...

aaronchristian’s picture

Issue summary: View changes
aaronchristian’s picture

I have created a new issue for #6;

https://www.drupal.org/node/2882530

aaronchristian’s picture

Issue tags: +release-1.14
jsacksick’s picture

Issue tags: -release-1.14

It's a 2.x issue, removing the 1.14 tag.

  • bojanz committed f627a34 on 8.x-2.x authored by AaronChristian
    Issue #2878972 by AaronChristian, sorabh.v6: UX (Admin): Currency Symbol...
bojanz’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

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