Solved

How are anchors supposed to be used?

kyle_truong
Shopify Partner
59 6 16

I'm playing around with some anchors for "Subscribe and save" type selling plans and I noticed that when purchasing a selling plan that the payment and order are both processed at the time of purchase. I don't understand how anchors are supposed to be implemented here according to:

https://shopify.dev/apps/subscriptions/selling-plans#advanced-delivery-behaviors-for-subscriptions

Depending on the scenario, the moment a customer completes checkout, when a billing date is processed, and when the first delivery is can all vary. But these scenarios seem contradictory to what I've seen with selling plans so far, which is that billing and order are processed at the same time a customer completes checkout. How can one modify these variables, and is it more or less the same for prepaid selling plans? 

Accepted Solution (1)

yalshekerchi
Shopify Staff (Retired)
14 4 5

This is an accepted solution.

Hello kyle_truong,

Thank you for you question!

The order is created and billed right after the checkout is completed. The anchors affect how the "nextBillingDate" is calculated on the SubscriptionContract, which is used to determine when the recurring order will be billed.


However, the anchors also affect when the delivery associated with the initial order (the one created on the checkout) will occur. This will also depend on the "preAnchorBehavior" defined on the SellingPlanRecurringDeliveryPolicyInput which defines the possible fulfillment or delivery behaviors of the first fulfillment when the order is placed before the anchor.

For more information on Pre Anchor Behaviour see: https://shopify.dev/api/admin/graphql/reference/products-and-collections/sellingplanrecurringdeliver...

 

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Reply 1 (1)

yalshekerchi
Shopify Staff (Retired)
14 4 5

This is an accepted solution.

Hello kyle_truong,

Thank you for you question!

The order is created and billed right after the checkout is completed. The anchors affect how the "nextBillingDate" is calculated on the SubscriptionContract, which is used to determine when the recurring order will be billed.


However, the anchors also affect when the delivery associated with the initial order (the one created on the checkout) will occur. This will also depend on the "preAnchorBehavior" defined on the SellingPlanRecurringDeliveryPolicyInput which defines the possible fulfillment or delivery behaviors of the first fulfillment when the order is placed before the anchor.

For more information on Pre Anchor Behaviour see: https://shopify.dev/api/admin/graphql/reference/products-and-collections/sellingplanrecurringdeliver...

 

To learn more visit the Shopify Help Center or the Community Blog.