Subscription options not showing on product page

Solved
Tiber
Shopify Partner
31 4 5

When I add a subscription to a product, the options are not showing on the products page. The subscription information is showing up in the product admin. I have it setup the same way on a test store and the options are showing on the products page?

-Showing on product admin

Tiber_0-1614433134616.png

 

GraphQl used to create the subscription:

 

 

mutation {
  sellingPlanGroupCreate(
    input: {
      name: "two months"
      merchantCode: "two months"
      options: ["Payment every two months"]
      position: 1
      sellingPlansToCreate: [
        {
          name: "Payment Every two Months"
          options: "2 months(s)"
          position: 1
          billingPolicy: { recurring: { interval: MONTH, intervalCount: 2, maxCycles:3,anchors:{ type:MONTHDAY,day:15}} }
          deliveryPolicy: { recurring: { interval: MONTH, intervalCount: 2 ,anchors:{type:MONTHDAY,day:15}} }
          description:" my description"
    
        }
      ]
    }
    resources: { productIds: ["gid://shopify/Product/6539671077035"], productVariantIds: [] }
  ) {
    sellingPlanGroup {
      id
    }
    userErrors {
      field
      message
    }
  }
}

 

 

 Added to product-templete.liquid within form

 

 

 {% for group in product.selling_plan_groups %}
    <fieldset>
      <legend>{{ group.name}}</legend>
      {% for selling_plan in group.selling_plans %}
        <input type="radio" name="selling_plan" value="{{ selling_plan.id }}">
        {{ selling_plan.name }}
      {% endfor %}
    </fieldset>
    {% endfor %}

 

 

 

Accepted Solution (1)
Tiber
Shopify Partner
31 4 5

This is an accepted solution.

Have to have Shopify Payments Setup for the options to appear on a product page

View solution in original post

Reply 1 (1)
Tiber
Shopify Partner
31 4 5

This is an accepted solution.

Have to have Shopify Payments Setup for the options to appear on a product page