Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

nbsp in variant title is breaking everything #152

Description

@Eben-Hafkamp

with .js endpoint:

onoptionchange callback is setting variant to null and breaking the website when it encounters a variant which contains an option title that has a   hidden in the variant title.


with liquid filter:

tried switching over to the non caching {{ product | json }} which is throwing a different error.
in the following code the name var is undefined:

if (product.options[i].name.toLowerCase() === option.name.toLowerCase()) {
optionArray[i] = option.value;
break;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions