App reviews, troubleshooting, and recommendations
$query = '
mutation {
sellingPlanGroupCreate(
input: {
name: "Pre-order"
merchantCode: "pre-order"
options: [
"Pre-order"
]
sellingPlansToCreate: [
{
name: "Pre Order Product with 100% deposit"
category: PRE_ORDER
options: [
"100% deposit. No Due Balance"
]
billingPolicy: {
fixed: {
checkoutCharge: {type: PERCENTAGE, value: {percentage: 100.0}}
remainingBalanceChargeTrigger: NO_REMAINING_BALANCE
}
}
pricingPolicies: [
{
fixed: {
adjustmentType: PERCENTAGE
adjustmentValue: { percentage: 0.0 }
}
}
]
deliveryPolicy: {fixed: {fulfillmentTrigger: UNKNOWN}}
inventoryPolicy: {reserve: ON_FULFILLMENT}
}
]
}
resources: {productVariantIds: [], productIds: []}
) {
sellingPlanGroup {
id
}
userErrors {
field
message
}
}
}';
$response = $shopifyObj->GraphQL->post($query);
$query=<<<QUERY
mutation {
sellingPlanGroupAddProducts(
id: "$selling_plan_id"
productIds: $productIds
) {
sellingPlanGroup {
id
}
userErrors {
field
message
}
}
}
QUERY;
$pr = $shopifyObj->GraphQL->post($query);
and here is the code for adding variants to the Selling Plan:-
$query=<<<QUERY
mutation {
sellingPlanGroupAddProductVariants(
id: "$selling_plan_id"
productVariantIds: $variants_ids
) {
sellingPlanGroup {
id
}
userErrors {
field
message
}
}
}
QUERY;
self::$shopify->GraphQL->post($query);
Screenshot2.png
Screenshot3.png
Screenshot4.png
Screenshot5.png
Solved! Go to the solution
This is an accepted solution.
I identified the root cause of the problem -
I had not integrated any payment provider with my Shopify store. Consequently, the checkout price was displayed as 0.
However, after adding PayPal Express to my store, everything is functioning properly now.
This is an accepted solution.
I identified the root cause of the problem -
I had not integrated any payment provider with my Shopify store. Consequently, the checkout price was displayed as 0.
However, after adding PayPal Express to my store, everything is functioning properly now.
Hello!
Can you tell me how you do the editing sellingPlanGroupUpdate? You need an ID ( "id": "gid://shopify/SellingPlan/422674488") for this, and the documentation doesn't say anything about it where you can get it.
Absolutely! For editing the sellingPlanGroupUpdate endpoint, we require an ID. Your comment contains the ID for a sellingPlan, but we actually need the ID for a sellingPlanGroup.
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025