bigcommerce / cornerstone

The BigCommerce Cornerstone theme
https://developer.bigcommerce.com/stencil-docs
286 stars 612 forks source link

Product ID data type changed? #2504

Open amfischer opened 5 days ago

amfischer commented 5 days ago

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?

arosesiejdev commented 15 hours ago

Noticed this as well!