We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4e1fad commit 15896f8Copy full SHA for 15896f8
components/Product/SingleProduct.component.jsx
@@ -91,6 +91,14 @@ const SingleProduct = ({ product }) => {
91
<p className="pt-1 mt-4 text-2xl text-gray-900">
92
{DESCRIPTION_WITHOUT_HTML}
93
</p>
94
+ {product.stockQuantity && (
95
+ <p
96
+ v-if="data.product.stockQuantity"
97
+ class="pt-1 mt-4 mb-4 text-2xl text-gray-900"
98
+ >
99
+ {product.stockQuantity} in stock
100
+ </p>
101
+ )}
102
{product.variations && (
103
<p className="pt-1 mt-4 text-xl text-gray-900">
104
<span className="py-2">Varianter</span>
utils/gql/GQL_QUERIES.js
@@ -22,6 +22,7 @@ export const GET_SINGLE_PRODUCT = gql`
22
regularPrice
23
price
24
id
25
+ stockQuantity
26
}
27
... on VariableProduct {
28
salePrice
0 commit comments