bigcommerce/cornerstone

Product ID data type changed?

Opened this issue · 1 comments

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?

Noticed this as well!