Preorder selling plans don't show up on order from time to time

Short description of issue

Preorder selling plan not passed through consistently to orders

Reproduction steps

Unable to reproduce

Additional info

Our app enables preorders by writing a selling plan to the variant. We are seeing some issues where occasionally selling plans don’t get passed consistently onto an order.

Our app works by writing a preorder selling plan to the variant when it is on preorder. The pre-sale quantities are also stocked at a virtual location. A variant can only be on preorder or in stock.

Our app does not handle the theme side - the guidance we give to merchants on their theme is to implement a hidden field within the product form that includes the selling plan id. An example implementation’s code is:

<input type="hidden" name="selling_plan" value="693590065524">

Very occasionally, an order is generated from the online store that gets routed to the virtual location, but does not contain the preorder selling plan & order hold. We’ve confirmed on our end that there was no activity of creating or deleting the selling plan in Shopify during the time the order and other orders come through fine.

What type of topic is this

Troubleshooting

Hey @marcelosomers,

Some quick thoughts:

  • Is the product offered on different sales channels?
  • Does the theme have a quick add feature (without the hidden input in use)?
  • Does the store have third-party upsell apps that may add the variant without the selling plan?
  • If the product is not required to have a selling plan then the variant may be able to be sold without one. (Such as by some third-party browser plugin that looks for products with a $0.00 cost which may exist.)

I am assuming at least one of the above may be true which could be the cause of the issue.