-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add Inventory Status to childVariants * add limited supply warning badge to top-level variants * add sold out warning badge to child variants * call inventoryAdjust * update badge location on product grid * commented out testing colors * add logic to get variant inventory from grid page * updating revision control for quantity
- Loading branch information
1 parent
c5506bf
commit 2921c02
Showing
8 changed files
with
106 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 11 additions & 9 deletions
20
imports/plugins/included/product-variant/client/templates/products/productGrid/notice.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
<template name="gridNotice"> | ||
{{#if isSoldOut}} | ||
{{#if isBackorder}} | ||
<span class="variant-qty-sold-out badge" data-i18n="productDetail.backOrder">Backorder</span> | ||
<div class="product-grid-badges"> | ||
{{#if isSoldOut}} | ||
{{#if isBackorder}} | ||
<span class="variant-qty-sold-out badge" data-i18n="productDetail.backOrder">Backorder</span> | ||
{{else}} | ||
<span class="variant-qty-sold-out badge badge-danger" data-i18n="productDetail.soldOut">Sold Out!</span> | ||
{{/if}} | ||
{{else}} | ||
<span class="variant-qty-sold-out badge" data-i18n="productDetail.soldOut">Sold Out!</span> | ||
{{#if isLowQuantity}} | ||
<div class="badge badge-low-inv-warning" title="" data-i18n="productDetail.limitedSupply">Limited Supply</div> | ||
{{/if}} | ||
{{/if}} | ||
{{else}} | ||
{{#if isLowQuantity}} | ||
<div class="badge badge-low-inv-warning" title="" data-i18n="productDetail.limitedSupply">Limited Supply</div> | ||
{{/if}} | ||
{{/if}} | ||
</div> | ||
</template> |
26 changes: 24 additions & 2 deletions
26
imports/plugins/included/product-variant/client/templates/products/productGrid/notice.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters