Restrict user on checkout page if some product required customer detail to place an order

Topic summary

Pharmacy app checkout customization request with two issues:

  • Conditional checkout behavior:

    • If cart includes prescribed products, require customer details and completed product-specific questionnaires at checkout.
    • If only non‑prescribed products, skip questionnaires and extra customer details.
  • Problems to solve:

    • Customers can log out during checkout; need a way to enforce required details at the checkout step (beyond validations already applied through to the cart).
    • Attach “consultancy” records (questionnaire results) to orders, supporting multiple consultancies per order; asks whether an order attribute can link more than one consultancy and how to implement this one‑to‑many association.
  • Ask: Guidance on restricting/validating checkout based on product type and on designing order data to associate multiple consultancies with an order.

  • Latest activity: A single reply shares a general Shopify tutorial video link; it does not provide a direct solution or technical steps for the issues raised.

  • Status: Unresolved. Key questions remain on conditional checkout enforcement and order attribute/data modeling for multiple consultancies.

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

Hello,

We have faced some issues with application development.

Issue1:

We have a pharmacy app and we needed to do customization on the checkout page.

  1. Precribed product checkout:

Needed customer detail with their filled questionnaire of products.

  1. Without precribed product checkout:

No need for questionnaires and customer detail during checkout.

Here, the checkout page creates an issue where customers can log out while placing an order. we needed customer detail while placing an order of a prescribed product. So, need your help on how can we able to achieve this functionality on the checkout page. We have put some required conditions on other pages till the cart page.

Issue 2:

We have also faced an issue to attach the consultancy of products on each order to get the detail of order products questionnaires. How can we add an order attribute which helps us to link more than one consultancy of products?

Please help regarding this issue issues and needed your support to resolve an issue asap.

Hey @RichardSmith2 , get started on your journey to an exclusive Shopify store by watching this quick and informative tutorial: