We have a pre-order app published on the Shopify app store, and we want to upgrade it using a selling plan.
We want to create a selling plan that will charge 100% money of the order at the checkout. It seems to be working at the backend (Screenshot1.png) but it is not working in the front store(Screenshot2.png)
Current Behavior:-
When the purchase option is enabled (Screenshot3.png) from the backend then the total value of the product at the checkout is 0 (Screenshot2.png) but when we disable the purchase option (Screenshot4.png) from the backend then the full price of the product is displayed at checkout (Screenshot5.png).
Expected Behavior:-
When the purchase option is enabled (Screenshot3.png) from the backend then the total value of the product at the checkout will be charged , and when we disable the purchase option (Screenshot4.png) from the backend then the full price of the product is displayed at checkout (Screenshot5.png) as the default behavior.
My Code for creating a selling plan:-
$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);
Here is the code for adding the product to Selling Plan:-
$query=<<
and here is the code for adding variants to the Selling Plan:-
```php
$query=<<
Please suggest to me what I am doing wrong. See my GraphQL API code screenshot (Screenshot6.png).
Hope you Understand the problem.
I'm very frustrated about this problem please help me to get out of this.
Thank You in advance
Screenshot1.png

Screenshot2.png

Screenshot3.png

Screenshot4.png

Screenshot5.png
