Skip to content

Commit da3a8d6

Browse files
authored
Merge pull request #361 from w3bdesign/develop
Show sale price in categories
2 parents fc0c01e + 3539b3e commit da3a8d6

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)