Restrict customers from buying certain products together

Topic summary

Goal: Prevent customers from purchasing standard weekly meals and a one-off Christmas Menu together due to different production/delivery dates, or alternatively have orders split so each type is processed separately.

Proposed approach:

  • Add a product-level metafield (custom attribute) to flag Christmas items vs. regular meals, then use theme or cart script code to block mixing. Example: disable the add-to-cart button (CTA) or show an error if the cart contains both types.
  • OP already grouped Christmas items into a collection, which could aid the restriction logic.

Clarification requested:

  • How “allow the orders to pull through separately in Shopify” should work in practice (e.g., automatic order splitting is not described). One responder asked for an example to clarify this requirement.

Resources provided (videos are central):

  • One video demonstrating an implementation of product restrictions via metafields and code.
  • Another video guide on restricting specific products/pages in Shopify.

Status: No confirmed resolution; awaiting clarification on order-separation needs and whether the metafield + code approach meets requirements.

Summarized with AI on January 6. AI used: gpt-5.

Hello,

We sell prepared meals for weekly delivery, we will be launching a Christmas Menu that will be delivered on a specific date.

As the prepared meals and the Christmas Menu will be created and shipped on different dates, I would like to ensure that orders for the different types of meals are processed in separate orders.

I would like to either:

a. Restrict customers from purchasing the 2 items together so they would have to purchase their standard weekly delivery, and then the Christmas one separately (I have already put all christmas menu items into a collection).

b. Allow the orders to pull through separately in Shopify so we can just pull the correct orders for the week.

I understand this is a very niche query, I was hoping Shopify would have a way of restricting items being purchased together but it doesn’t appear so and i’m struggling with what to search to find the right app.

Any thoughts or ideas are greatly welcomed!

Thanks,

Hi @Victoriataylor1

You can create a metafield at the product level to create differentiation and script code to restrict the add-to-cart CTA.

Allow the orders to pull through separately in Shopify so we can just pull the correct orders for the week.

plz explain a little with example

Hi @Victoriataylor1

Please refer to the below video how we implement this for a store.

Hope this will help…

Hi @Victoriataylor1 , unlock the secrets of restricting specific products or pages on Shopify by watching this detailed video guide: