Skip to content

Update items qty on cart or minicart doesn't work with several es_ locales #3619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
barbanet opened this issue Mar 2, 2016 · 4 comments
Closed

Comments

@barbanet
Copy link
Member

barbanet commented Mar 2, 2016

I've created this issue also on M1 bug tracker because this problem cames from Zend_Locale and the locales xml definitions.

Using most of the es_ locales (es_ES and es_MX works fine) you aren't able to update cart quantities because the filter method on Zend_Filter_LocalizedToNormalized can't validate the number as number.

I understand that this problem is from Zend_Framework but I wasn't able to fix it yet.

When I try to update the quantity I get this message:

exception 'Zend_Locale_Exception' with message 'Unsupported token for numberformat (Pos 6):"#"

In my case I'm using es_AR as locale but also happens with another es_ locales too.

@piotrekkaminski
Copy link
Contributor

@barbanet does it happen in admin or in front-end? what are the steps to reproduce?

@mauromm
Copy link

mauromm commented Jun 20, 2016

Hi @piotrekkaminski, I have the same issue when use es_AR locale. The steps to reproduce the problem are:

1- Install a clean magento 2.0.x
2- In admin panel, go to Stores > Configuration > General
3- set Country Argentina and locale Spanish(Argentina)
4- Create a simple product and a category.
5- Go to frontend and add to cart 4 items.
6- In frontend go to cart and try to modify item's qty.
7- When you submit the update, cart qty is reset to 1.

I have found the problem is in isNumber�() on ../vendor/magento/zendframework1/library/Zend/Locale/Format.php �

@valenciaisaza
Copy link

valenciaisaza commented Jul 21, 2016

Hi @piotrekkaminski

The same problem reported by @barbanet for M1 is happening in M2

Here is the link with the explanation of the problem in the comments Issue #8461

The missing pattern es_419.xml or in each of your children is:

<decimalFormats numberSystem="latn"> <decimalFormatLength> <decimalFormat> <pattern>#,##0.###</pattern> </decimalFormat> </decimalFormatLength> </decimalFormats>

Any other missing definition in this file is a potential problem if it is not inherited from es.xml

@veloraven
Copy link
Contributor

I'm closing this issue as duplicate as we already have internal ticket MAGETWO-59973 for issue #6656.
I have updated internal ticket with additional information from this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants