diff options
| author | trisusilo <tri.susilo@altama.co.id> | 2023-10-17 08:40:24 +0000 |
|---|---|---|
| committer | trisusilo <tri.susilo@altama.co.id> | 2023-10-17 08:40:24 +0000 |
| commit | 9ab905837f4da53448e6eefe9ed73bccb890596e (patch) | |
| tree | aa003b45f47de8bdda04105fa3cd1e91b992b27f /src/utils | |
| parent | 2ad2f4d39d9b6c3caaedffef7c5c506126c6ee43 (diff) | |
| parent | b29f07808f52d0b9b6ad9c76b182a6ccebb82c5e (diff) | |
Merged in CR/UI (pull request #101)
CR/UI
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/solrMapping.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/utils/solrMapping.js b/src/utils/solrMapping.js index 61816cf8..41d24b53 100644 --- a/src/utils/solrMapping.js +++ b/src/utils/solrMapping.js @@ -32,7 +32,8 @@ export const productMappingSolr = (products, pricelist) => { remainingTime: flashsaleTime(product?.flashsale_end_date_s)?.remainingTime, name: product?.product?.flashsale_name_s, tag: product?.flashsale_tag_s || 'FLASH SALE' - } + }, + qtySold : product?.qty_sold_f || 0 } if (product.manufacture_id_i && product.manufacture_name_s) { @@ -85,7 +86,8 @@ export const variantsMappingSolr = (parent, products, pricelist) => { stockTotal: product.stock_total_f || 0, weight: product.weight_f || 0, manufacture: {}, - parent: {} + parent: {}, + qtySold : product?.qty_sold_f || 0 } if (product.manufacture_id_i && product.manufacture_name_s) { |
