diff --git a/changelogs/unreleased/-1xx6u1f.yml b/changelogs/unreleased/-1xx6u1f.yml new file mode 100644 index 000000000..1616b4a4c --- /dev/null +++ b/changelogs/unreleased/-1xx6u1f.yml @@ -0,0 +1,6 @@ +--- +title: Handle empty check for color and size for orders page +ticket_id: "#1xx6u1f" +merge_request: 38 +author: Bashu Tiwari +type: performance diff --git a/src/views/orders.vue b/src/views/orders.vue index fdf9877d7..83868d1cf 100644 --- a/src/views/orders.vue +++ b/src/views/orders.vue @@ -121,8 +121,8 @@

{{ item.parentProductName ? item.parentProductName :item.productName }}

-

{{ $t("Color") }} : {{ $filters.getFeature(getProduct(item.productId).featureHierarchy, '1/COLOR/') }}

-

{{ $t("Size") }} : {{ $filters.getFeature(getProduct(item.productId).featureHierarchy, '1/SIZE/') }}

+

{{ $t("Color") }} : {{ $filters.getFeature(getProduct(item.productId).featureHierarchy, '1/COLOR/') }}

+

{{ $t("Size") }} : {{ $filters.getFeature(getProduct(item.productId).featureHierarchy, '1/SIZE/') }}

diff --git a/src/views/product-details.vue b/src/views/product-details.vue index ad91cd148..933f6796d 100644 --- a/src/views/product-details.vue +++ b/src/views/product-details.vue @@ -29,7 +29,7 @@

{{ current.product.productName }}

- + {{ $t("Colors") }} @@ -37,7 +37,7 @@ - + {{ $t("Sizes") }} @@ -124,8 +124,8 @@

{{ getProduct(item.groupValue).productName }}

-

{{ $t("Color") }}: {{ $filters.getFeature(getProduct(item.groupValue).featureHierarchy, '1/COLOR/') }}

-

{{ $t("Size") }}: {{ $filters.getFeature(getProduct(item.groupValue).featureHierarchy, '1/SIZE/') }}

+

{{ $t("Color") }}: {{ $filters.getFeature(getProduct(item.groupValue).featureHierarchy, '1/COLOR/') }}

+

{{ $t("Size") }}: {{ $filters.getFeature(getProduct(item.groupValue).featureHierarchy, '1/SIZE/') }}

diff --git a/src/views/products.vue b/src/views/products.vue index f176a3ba4..1762712ea 100644 --- a/src/views/products.vue +++ b/src/views/products.vue @@ -33,8 +33,8 @@

{{ getProduct(product.groupValue).productName}}

-

{{ $t("Colors") }} : {{ $filters.getFeatures(getProduct(product.groupValue).featureHierarchy, '1/COLOR/') }}

-

{{ $t("Sizes") }} : {{ $filters.getFeatures(getProduct(product.groupValue).featureHierarchy, '1/SIZE/') }}

+

{{ $t("Colors") }} : {{ $filters.getFeatures(getProduct(product.groupValue).featureHierarchy, '1/COLOR/') }}

+

{{ $t("Sizes") }} : {{ $filters.getFeatures(getProduct(product.groupValue).featureHierarchy, '1/SIZE/') }}

{{ product.doclist.numFound }} {{ $t("pieces preordered") }}