Skip to content

Swatches don't work for attribute labels that have accented uppercase letters #50

@erikagiroux

Description

@erikagiroux

In the original attachConfigurableProductChildrenAttributeMapping function, the array keys are normalized using Mage_ConfigurableSwatches_Helper_Data::normalizeKey (which uses mb_strtolower). In your version, the keys are normalized using a regular strtolower, which doesn't work with special characters.

For example, I have an attribute called "Érable" for which the swatch image won't show because it's looking for a key called "érable" but the actual key is "Érable" because it was not normalized properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions