Skip to content

Product ID data type changed? #2504

@amfischer

Description

@amfischer

Hello,

We recently had code break that was previously working and I wonder if there was a recent change to the incoming handlebars data.

We have template code like this throughout our theme

{{#if product.id '===' '115'}}
  ...
{{/if}}

And this no longer works. We now have to use either double equals '==' or check the product id against a number value instead of a string value.

It's not a big issue to update this code but it was a surprise when our site stop rendering correctly. Was this a recent change to the incoming data? And if so is there somewhere we can read about or monitor for upcoming changes?

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