Skip to content

Commit 3539b3e

Browse files
committed
Show sale price in categories
1 parent bdd94ee commit 3539b3e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utils/gql/GQL_QUERIES.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ export const GET_PRODUCTS_FROM_CATEGORY = gql`
156156
nodes {
157157
id
158158
databaseId
159+
onSale
159160
averageRating
160161
slug
161162
description
@@ -168,10 +169,16 @@ export const GET_PRODUCTS_FROM_CATEGORY = gql`
168169
}
169170
name
170171
... on SimpleProduct {
172+
salePrice
173+
regularPrice
174+
onSale
171175
price
172176
id
173177
}
174178
... on VariableProduct {
179+
salePrice
180+
regularPrice
181+
onSale
175182
price
176183
id
177184
}

0 commit comments

Comments
 (0)