Shopify create selling plan discount

I have created a selling plan and applied discount through it
The discount was able to see in the product page but in product collection in home page the old price is showing .
The discounted price was able to see in selling plan’s price
and in home page the selling plan is not able to access due to optimization how to show discounted price now

Hi there, this is a very vague post and doesn’t provide enough information for us to help.

I’d suggest posting any relevant screenshots, any code, errors etc.

mutation {
  sellingPlanGroupCreate(
    input: {
      name: "30% Deposit Pre-order"
      merchantCode: "pre-order-30"
      options: ["Pre-order"]
      sellingPlansToCreate: [
        {
          name: "30% deposit, balance in 7 days"
          category: PRE_ORDER
          options: ["30% deposit, balance in 7 days"]
          billingPolicy: {
            fixed: {
              checkoutCharge: { type: PERCENTAGE, value: { percentage: 30.0 } }
              remainingBalanceChargeTrigger: TIME_AFTER_CHECKOUT
              remainingBalanceChargeTimeAfterCheckout: "P7D"
            }
          }
          deliveryPolicy: { fixed: { fulfillmentTrigger: UNKNOWN } }
          inventoryPolicy: { reserve: ON_FULFILLMENT }
          pricingPolicies: [
            {
              fixed: {
                adjustmentType: PERCENTAGE
                adjustmentValue: { percentage: 30.0 }
              }
            }
          ]
        }
      ]
    }
    resources: { productIds: ["gid://shopify/Product/PRODUCT_ID"] }
  ) {
    sellingPlanGroup {
      id
      sellingPlans(first: 1) {
        edges {
          node {
            id
          }
        }
      }
    }
    userErrors {
      field
      message
    }
  }
}

I created a selling plan using this , In this mutation i have passed the discount, you can see that in pricingPolicies .

1)By doing this the applied discount is reflected on the product page.
2)But if i see same product in home page the discounted price is not showing, Its showing the original price.




This could be down to the theme you’re using. I’d suggest testing this with the latest version of Horizon and seeing if the issue persists.

Yeah the issue still persists , In home page we can’t able to access selling plan of that product ,
So that we can’t able to display the discounted price

Generally you wouldn’t see the selling plan price immediately, you’d see the ‘one-off’ cost and then you’d choose the subscription (selling plan) and choose one of the options.

I don’t think this is an issue/bug.