← Back to plugins
WooCommerce · Pharmacy

Online Prescription Treatment

A WordPress/WooCommerce plugin that lets an online pharmacy sell prescription-only treatments through a guided health questionnaire instead of a plain "Add to Cart".

Online Prescription Treatment
TypeCommercial WordPress plugin
PlatformWordPress · WooCommerce
StackPHP · JavaScript · MySQL

Overview

Online Treatments is a WordPress/WooCommerce plugin I built that lets an online pharmacy sell prescription-only or clinically-assessed products through a guided questionnaire rather than a standard "Add to Cart" button. Any WooCommerce product can be linked to a "Treatment", which replaces its Add to Cart with a "Start Consultation" flow — so a customer answers the required health questions before they're ever allowed to buy. Every submission is linked back to the resulting order, so the pharmacy can see exactly which answers went with which purchase.

The problem it solves

Selling prescription or clinically-assessed treatments through a normal WooCommerce checkout is a compliance risk — a customer could buy a regulated product without any clinical assessment. Pharmacies needed a way to gate purchases behind a proper questionnaire, enforce eligibility rules, and keep an auditable link between each customer's answers and their order — none of which standard WooCommerce provides.

Key features

  • Links any WooCommerce product or variation to a defined "Treatment", replacing Add to Cart with a Start Consultation flow
  • On-page questionnaire modal — nothing is added to the cart until it's completed
  • Step-based questionnaire builder with a numbered sidebar checklist
  • Multiple question types: radio, checkbox, select, text, phone, email, date, file upload, and metric/imperial height & weight
  • Conditional question logic — questions appear or hide based on earlier answers
  • Product/variation dependencies driven by questionnaire answers
  • BMI and age eligibility gating, with a dedicated "not eligible" screen
  • Auto-generated PDF summary delivered via a secure link, not a public URL
  • Submissions, linked orders, and uploaded files all managed from the WordPress admin
  • Customer access to past submissions via My Account → Treatment Submissions
  • Option to hide treatment products from Shop/category listings; only one treatment in the cart at a time

The result

A production-ready plugin that lets online pharmacies sell clinically-assessed treatments safely — capturing the required health information, enforcing eligibility, and keeping a clear audit trail between each questionnaire and its order.

Need something like this built?

Tell me the workflow you need and I'll build it properly — in code, made to last.

Start a project