diff --git a/components/Product/SingleProduct.component.jsx b/components/Product/SingleProduct.component.jsx index aa842fa0f..6f214de4a 100644 --- a/components/Product/SingleProduct.component.jsx +++ b/components/Product/SingleProduct.component.jsx @@ -91,6 +91,14 @@ const SingleProduct = ({ product }) => {

{DESCRIPTION_WITHOUT_HTML}

+ {product.stockQuantity && ( +

+ {product.stockQuantity} in stock +

+ )} {product.variations && (

Varianter diff --git a/utils/gql/GQL_QUERIES.js b/utils/gql/GQL_QUERIES.js index f06cb1e4c..3a4e36c66 100644 --- a/utils/gql/GQL_QUERIES.js +++ b/utils/gql/GQL_QUERIES.js @@ -22,6 +22,7 @@ export const GET_SINGLE_PRODUCT = gql` regularPrice price id + stockQuantity } ... on VariableProduct { salePrice