Skip to content

'validate-grouped-qty' validation is meaningless #14692

Closed
@likemusic

Description

@likemusic

'validate-grouped-qty': [

Seems that this 'validate-grouped-qty' validation haven't sense because validation should be done on the child elements.

And seems that current implementation is buggy. Seems that sense of this validation is check that sum of qty for all products is more then one. But what sense in it?

Grouped Product can contains simple products with "Qty Uses Decimals" = Yes and "Minimum Qty Allowed in Shopping Cart" less than 1 (for example 0.05). As result sum of qty would be 0 (because of
using parseInt()).

Seems that 'validate-grouped-qty' should be deleted at all or rewritten to just call subproduct's validators.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedProgress: PR CreatedIndicates that Pull Request has been created to fix issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions