Medical Prescription Attachment for WooCommerce
Medical Prescription Attachment for WooCommerce lets online pharmacies require, collect and verify doctor prescriptions with OCR and AI before an order ships.
- Require prescriptions per product or for whole product categories
- Drag-and-drop upload of up to 10 files, 10 MB each, at checkout
- Works with WooCommerce Cart and Checkout Blocks and classic pages
- On-device Tesseract OCR reads scans without sending data elsewhere
- Gemini Vision AI fallback reads handwritten doctor prescriptions
- Attach Later and Re-Upload After Rejection for logged-in customers
- Admin review desk with filters and bulk approve, reject or reset
- My Prescriptions, Medical Records and My Pill Box in My Account
- Prescription search filters the catalog to in-stock medicines
- Optional order-note audit trail and three prescription email templates
- Magic-byte checks confirm real file types and block disguised uploads
- Compatible with HPOS and supports PHP versions 7.4 to 8.3 and above
- WordPress WooCommerce Medical Prescription Attachment Plugin(Order Attachment) is now compatible with WooCommerce's latest feature Cart and Checkout blocks.
- This module is compatible with WooCommerce’s new High-Performance Order Storage (HPOS) feature.
- Description
- Reviews
- FAQ
- Specifications
- Cloud Hosting
- Changelog
Medical Prescription Attachment for WooCommerce turns a standard store into a compliant online pharmacy, because customers must attach a valid doctor's prescription before they can buy medicines that need one.
Store owners can mark single products as prescription-only or gate whole categories, so prescription medicines and over-the-counter items can be sold side by side without extra steps.
Patients upload files through a drag-and-drop box on the cart, checkout or thank-you page, and the plugin accepts JPG, JPEG, PNG, PDF, DOC and DOCX files up to 10 MB each.
Logged-in customers can choose Attach Later to place the order now and upload the paperwork from My Account, and rejected prescriptions can be replaced with a corrected file.
Pharmacists review each file in an admin viewer that reads text with Tesseract OCR in the browser, and a Gemini Vision AI fallback helps when the handwriting is unclear.
When order notes are enabled, every approval, rejection or reset is saved as a WooCommerce order note, and three dedicated emails keep the admin and the customer informed.
Additionally, pharmacies that want to grow into a multi-seller platform can explore the WooCommerce Multi Vendor Marketplace plugin, which adds vendor profiles and commission management to a WooCommerce store.

Highlighted Features
Per-Product and Category Gating
Require a prescription for single products or whole categories, with additive rules.
Drag-and-Drop Prescription Uploader
Collect up to 10 files per order, each up to 10 MB, in common image and document formats.
Attach Later and Re-Upload
Logged-in customers can order first and upload later, or replace a rejected file.
On-Device OCR With AI Fallback
Tesseract reads clean scans in the browser, and Gemini Vision handles tough handwriting.
AI OCR Analysis Workspace
Extract doctor, license, patient, date and medicines, then match them to in-stock products.
Admin Orders Review Desk
Filter, search and sort the queue, then approve, reject or reset orders in bulk.
My Pill Box and My Prescriptions
Patients keep a prescription vault and reorder chronic medicines in one click.
Secure File Inspection
Server-side magic-byte checks confirm each file's real type and block disguised uploads.
Why Do We Need This Module
Medical Prescription Attachment for WooCommerce is needed because selling antibiotics, inhalers and other regulated medicines online requires proof of a valid doctor's prescription before the order is dispatched.
Default WooCommerce has no prescription field, no approval status and no way to hold an order until a document is checked, so pharmacies end up chasing customers by email or phone.
Manual checks slow every order down, and handwritten notes from doctors are hard to read, which causes mistakes, delayed shipments and abandoned carts at the checkout step.
This plugin solves the problem by making the upload part of checkout, queuing every file for review, reading the text with OCR and AI, and releasing the order only after a pharmacist approves it.
Apart from this, Webkul is a WooCommerce Core Contributor and a CodeCanyon Featured Author, and you can also use the Payment Method Restriction Plugin for WooCommerce to limit payment methods by product, category or cart value.
Use Cases
-
Online Pharmacies
Sell prescription medicines safely while customers upload their prescriptions at checkout.
-
Eye-Care Stores
Require a prescription for eye drops and ointments while ordinary products stay open to everyone.
-
Mixed Catalog Retailers
Sell supplements, PPE and medical devices without interrupting checkout for non-gated goods.
-
Chronic Care Patients
Save repeat medicines in My Pill Box folders and buy the whole folder in one click.
-
Pharmacist Review Teams
Clear the Pending queue with filters and approve, reject or reset many orders together.
-
Stores With Handwritten Prescriptions
Let AI read doctor handwriting so reviewers spend less time deciphering scans.
Prescription Required Label on Product Page
The storefront label tells shoppers that a medicine needs a doctor's prescription before they add it to the cart, so nobody learns about the rule for the first time at checkout.
Admins write the label text, choose its colors and add a short description, which helps patients understand what a valid prescription should contain before they upload it.
- Custom label text such as Requires a Valid Prescription
- Color pickers for label font and label background
- Optional description shown below the label
- Placement options for product, shop, cart, checkout and order pages
- Works with Cart and Checkout Blocks and classic templates

Attach Later and Drag and Drop Upload on Cart Page
Patients can drop prescription files into the Attach Prescription box on the cart page, or tick the attach later option and finish the upload from My Account after ordering.
This keeps the buying flow short for returning patients, and it lets the store hold stock and promotional prices while the paperwork is still on its way to the pharmacy.
- Drag and drop zone with a Browse files button
- Accepts JPG, JPEG, PNG, PDF, DOC and DOCX up to 10 MB
- Attach later checkbox for logged-in customers
- Order stays in Attachment Pending until a file arrives
- Guests must attach the file before placing the order

Prescription Upload Box on Checkout Page
At checkout the Attach Prescription box sits above the Place order button, so the customer adds the document at the last step and the store never ships a gated order without one.
If a gated item has no attachment, the Place order button is blocked with a clear message, which keeps every prescription order compliant without any manual follow-up.
- Attach Prescription box with file name and size
- Status icon and remove button for each file
- Add files button for multi-page prescriptions
- Clear message when a gated item has no attachment
- Works with block and classic checkout

Prescription Approval Status in My Account
Customers see the prescription status on their order page, with an Approved, Pending or Rejected badge and an order update note, so they always know where the review stands.
Rejected orders can be corrected from the same page, because the customer is asked to upload a new file and the order goes back to Pending for another review.
- Status badge beside the Attach Prescription heading
- Order updates note with date and time
- Re-upload option after a rejection
- My Medical Records, My Prescriptions and My Pill Box menu links
- Email alert when the admin changes the status

Prescription Settings for Categories, Files and Formats
The General tab holds the core rules: enable the module, choose gated categories, set how many files are allowed and select the file formats that customers may upload.
Category rules are additive, so an item needs a prescription when its own toggle is on or its category is selected, and an empty category list never gates every product.
- Master toggle to enable the module for customers
- Allowed Categories search field
- Enable Multiple Files Upload and Number of Files Allowed
- Allowed formats: JPG, JPEG, PNG, PDF, DOC and DOCX
- Enable Attach Later toggle for logged-in customers

Labels and Display Position Settings
The Labels and Display tab controls how the prescription notice looks on the storefront, including the label text, its colors and a description shown to customers.
Display position dropdowns let admins place the notice on the product, shop, cart, checkout and order pages, so the rule is visible exactly where patients need it.
- Product Page Label text field
- Label font color and background color pickers
- Description text area for customer guidance
- Product page display position such as After Short Description
- Shop and category page position such as After Product Title

Prescription Products List With Bulk Enable
The Prescription Products tab lists every product with its image, SKU, stock, price, category and a prescription status badge, so admins can see what is gated at a glance.
Bulk actions let admins enable or disable the prescription requirement for several products together, so they do not have to open and edit each product one by one.
- Search Products box and page navigation
- Bulk actions list with an Apply button
- Columns for SKU, stock, price, category and date
- Prescription column with an Enabled badge
- Sortable Name and Date columns

Prescription Orders Review Queue With Status Filters
The Orders tab is the review desk where pharmacists see every prescription order with its date, WooCommerce status, prescription status badge and order total.
Filters by order status and prescription status, a search by order ID and bulk actions help teams clear the Pending queue quickly and keep each decision in order notes.
- Order Status and Prescription Status filters
- Badges for Attachment Pending, Pending, Approved and Rejected
- Search By Order ID box
- View Prescription button on every row
- Bulk approve, reject or reset actions

Prescription Viewer With AI Extracted Information
The Prescription Viewer opens each uploaded file beside an AI Extracted Information panel, so the pharmacist can read the prescription and its extracted details on one screen.
Approve, Reject and Set Pending buttons sit at the bottom of the same window, which means the reviewer can finish the whole check without leaving the order.
- Thumbnail strip for multi-file prescriptions
- Analyze Active Image button for OCR and AI reading
- Retry with AI button for unclear scans
- Current Status badge with a confirmation message
- Approve, Reject and Set Pending buttons

OCR and AI Fallback Settings With Gemini Vision
The OCR and AI tab sets how prescriptions are read, with on-device Tesseract OCR as the default and Gemini Vision AI as an optional fallback for handwriting.
Images leave the site only when the fallback runs, so regular orders stay private in the browser while hard-to-read prescriptions still get a second, smarter reading.
- Enable AI OCR Analysis Workspace toggle
- OCR Languages field such as eng+hin
- OCR Confidence Threshold from 0 to 100, default 60
- Enable AI Fallback (Gemini Vision) toggle
- Gemini API Key stored encrypted and shown masked
- AI Model field with default gemini-2.0-flash

My Pill Box and Prescription Search Feature Settings
The Features tab switches on two optional storefront tools: the My Pill Box organizer for chronic care and the frontend prescription search engine for catalog discovery.
Both stay off until the admin needs them, and prescription attachment plus admin approval remain mandatory at checkout even when patients use the search tool.
- Enable Chronic Disease Pill Organizer toggle
- Family health folders with one-click buy
- Enable Frontend Prescription Search Engine toggle
- Search Layout Display Location dropdown
- Save Changes and Reset changes buttons

Support
For any query or issue, please create a support ticket here http://webkul.uvdesk.com/
You may also check our quality WooCommerce Plugins.
Specifications
Excellent
Excellent & helpful Webkul team. Happy and satisfied working with Webkul team.
Frequently Asked Questions
Specification
Detailed technical features and requirements to help you understand the module’s capabilities and ensure smooth integration with your system.
Cloud Hosting for Websites & Applications
Power your website or application with flexible, scalable cloud infrastructure designed for performance and growth.
Move Your Website or Application to the Cloud
Get started with Cloudkul hosting tailored to your needs.
Configure Your Cloud Server
Choose server resources based on your workload, expected traffic, and performance requirements.
Start with the cloud resources your project needs today and adjust your server configuration as your business grows.
Explore flexible cloud hosting plans and choose your ideal configuration.
* Starting price is indicative. Final pricing and available server resources depend on the selected hosting configuration and requirements.
Change Logs
- + Features
- - Bugs
- Feature Add: Customers can manage their personal pill box directly from their account area.
- Feature Add: Customers can add, edit, and remove medicine entries with dosage and schedule details.
- Feature Add: Added a quick overview of current medication status and upcoming doses.
- Modification: Refreshed the admin dashboard with a clearer layout and improved usability.
- Feature Add: Added new settings panels for easier configuration of prescriptions, notifications, and display options.
- Modification: Consolidated workflows for managing prescription statuses, customer requests, and addon integrations.
- Feature Add: Added default OCR support powered by Tesseract for extracting prescription text from uploaded images and PDFs.
- Feature Add: Added support for external LLM models to improve OCR accuracy and structured data extraction.
- Feature Add: Enabled faster validation and automatic population of prescription-related fields.
- Feature Add: Customers can now view all submitted prescriptions from the dedicated "My Prescription" section.
- Feature Add: Prescription cards now display status, upload date, reviewed medicines, and admin notes.
- Feature Add: Customers can track prescription approval and rejection history.
- Feature Add: Added support for resubmitting prescriptions when permitted.
- Modification: Improved the prescription management workflow for customers and administrators.
- Modification: Enhanced prescription data extraction and validation.
- Modification: Improved usability across customer account and admin management areas.
- Added: Added compatibility for WooCommerce 10.3
- Fixed: Some minor issues with prescription attachment loading on frontend.
- * Added: Add functionality to require a prescription for the assigned category.
- * Added: Add a new feature enabling users to upload either multiple files or single files as prescriptions.
- * Fixed: Some minor issues.
- * Updated: Ensure compatibility with WooCommerce HPOS and Cart, Checkout Block.
- * Fixed: Some minor issues.
- Updated: Addons submodule core for new updated layout and module icon.
- Fixed: Some minor issues on file loading behavior.
- Update form template layouts
- Update configuration template layout
- Enhanced with multiple features.
- Add a feature to customize the required label
- Add a feature to customize attachment form template display Position
- Add a feature to assign a category that requires a prescription for related products
- The customer will receive an email notification when the admin performs any changes in the prescription status
- After the prescription is rejected, the admin can allow the customer to upload a new prescription.
- Add Order Notes on Medical Prescription Status Changed
- Added: Fixed Design issues.
- Added: Minor bug fixes.
- Added: New Features added like background color and Font color of headings can be changed now.
- Added: Updated readme. txt, readme.md file.
- Added: Fixed attach later button issue.
- Added: Fixed phpcs issues.
- Added: Updated readme.txt, readme.md file.
- Added: Fixed attach later button issue.
- Added: Fixed phpcs issues and new code standard issues.
- Added: Updated readme.txt,readme.md file.
- Fixed attach later button issue
- Fixed phpcs issues
- Updated readme.txt,readme.md file
- Initial release