You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So this will pull out the first ten products in the category based on the price ascending, all good so far.
However, some of the products in that category are on sale, so if I render this query on the front end, it will obviously ignore the Sale price and render the products in the order of their original RRP/MSRP.
How can I extend this query to include the Sale Price so the Sale Price becomes part of the ordering, but retain the ability to pass the endCursor to manage pagniation for when it comes to our larger categories where we'll have upwards of 100 products in them?
Appreciate any help and advice! Thank you
Darren.
The text was updated successfully, but these errors were encountered:
Hi team,
Here's a simple query
query MyQuery2 {
products(where: {categoryId: 854, orderby: {field: PRICE, order: ASC}}) {
nodes {
name
sku
}
}
}
So this will pull out the first ten products in the category based on the price ascending, all good so far.
However, some of the products in that category are on sale, so if I render this query on the front end, it will obviously ignore the Sale price and render the products in the order of their original RRP/MSRP.
How can I extend this query to include the Sale Price so the Sale Price becomes part of the ordering, but retain the ability to pass the endCursor to manage pagniation for when it comes to our larger categories where we'll have upwards of 100 products in them?
Appreciate any help and advice! Thank you
Darren.
The text was updated successfully, but these errors were encountered: