Skip to content

Commit 1d414bb

Browse files
committed
Display sale price in categories
1 parent 403ec35 commit 1d414bb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

apollo/queries/GET_PRODUCTS_FROM_CATEGORY_QUERY.gql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ query ProductsFromCategory($id: ID!) {
66
nodes {
77
id
88
databaseId
9+
onSale
910
averageRating
1011
slug
1112
description
@@ -18,10 +19,16 @@ query ProductsFromCategory($id: ID!) {
1819
}
1920
name
2021
... on SimpleProduct {
22+
salePrice
23+
regularPrice
24+
onSale
2125
price
2226
id
2327
}
2428
... on VariableProduct {
29+
salePrice
30+
regularPrice
31+
onSale
2532
price
2633
id
2734
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuxtjs-woocommerce",
3-
"version": "1.0.19",
3+
"version": "1.0.20",
44
"private": true,
55
"scripts": {
66
"dev": "nuxt",

0 commit comments

Comments
 (0)