We have a need for Bundles on our store, but either the existing Bundle apps don’t meet our specific needs, or there’s weird bugs such as when you increase the quantity of an item in a bundle, it takes an additional discount off that. Anyways, we’re looking at developing our own and in looking at the GraphQL for getting PriceRules, I discovered that either I’m missing something with getting the Value or the Value is not fully fleshed out in the GraphQL API.
Here’s what I have:
{
shop {
name
}
priceRule(id: "gid://shopify/PriceRule/324805361728") {
title
features
status
valueV2 {
__typename
}
itemEntitlements {
products(first: 3) {
edges {
node {
title
}
}
}
}
}
}
And what it returns
"data": {
"shop": {
"name": "buymasterbuilt-dev"
},
"priceRule": {
"title": "RB_m2og9qw76c7x3t",
"features": [],
"status": "ACTIVE",
"valueV2": {
"__typename": "PricingPercentageValue"
},
"itemEntitlements": {
"products": {
"edges": [
{
"node": {
"title": "MPS 20|B Patio-2-Portable Propane Smoker"
}
},
{
"node": {
"title": "#Smokeon T-Shirt"
}
}
]
}
}
}
}
Any hints? Thoughts?