-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[COM-28756]: update scarcity #45
Conversation
<div class="product-scarcity" data-variant-attributes="{"Color":"Red"}" hidden> | ||
Only 3 left! | ||
</div> | ||
<div class="product-scarcity" data-variant-attributes="{"Color":"Red"}" hidden> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure why spacing matters. Some tests are failing and I am not sure why. There might be extra spacing or invisible character I am missing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The language is whitespace-sensitive, so the output needs to match whitespace as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@phensley I am not sure what I'm missing here. Appreciate any help with this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sizhang12 I'll take a look shortly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@phensley thank you! I will be making the same changes into template-engine as well.
@sizhang12 Please update the commit message to include the full description of the change. |
d2d95a6
to
daae93e
Compare
This change is released in version |
Updating scarcity to include rendering the total scarcity amount when
scarcityShownByDefault
is true but also rendering the scarcity with attributes after.If
scarcityShownByDefault
is true, then that means the first index ofscarcityTemplateViews
is the total stock. Everything after that are by variants with attributes.