
Prism Conditional Product Options for WooCommerce
v4.3crearecreativita · 2026年11月17日 上架
Custom product options for WooCommerce: reusable variants, color swatches, surcharges, conditional fields, minimum quantity and file upload.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 303
- 最近更新
- 2026年11月21日
贡献者
截图






Prism Conditional Product Options for WooCommerce adds custom fields to your product pages and carries the customer’s choices through cart, checkout, order and emails.
- Field types: dropdown, single choice, multiple choice, short text, long text, date and file upload
- Variant library: define a group once and reuse it on many products, availability included
- Image swatches and color swatches you can click, with the number per row you choose
- Surcharges and discounts per option, with an estimated total on the product page
- Availability per option
- Conditional fields: show a field only when another option is chosen
- Minimum order quantity and quantity multiples per product
- Character limits on text fields
- File upload with content checks, stored in a private folder that is never reachable by direct link
- Optional automatic deletion of uploaded files some time after the order is completed
- Elementor widget to place the fields and style them from the Elementor panel
- Compatible with High-Performance Order Storage (HPOS)
- Privacy: uploaded files and text written by customers are covered by the WordPress personal data export and erasure tools
The plugin is written in English and includes an Italian translation.
Field placement
Open Products > Product Options, Variant library tab, and use the “I place the fields with shortcodes” switch.
- Off: the fields appear on their own above the quantity, in the order of the product’s groups. On variable products they appear after the variation choice.
- On: the fields appear only where you insert the shortcodes below.
Shortcodes
These apply when the switch is on.
[wcpo_group codice="fragrance"]shows one group, by the code chosen in the library (the code stays fixed if you rename the group)[wcpo_group nome="Fragrance"]shows one group by name (older method)[wcpo_campi]shows all the groups[wcpo_totale]shows only the estimated total[wcpo_varianti]shows the variation choice of a variable product (size, color…) where you place it, for example between two groups
Outside the single product template, add id="123" with the product ID.
On variable products, add posizione="varianti" to any of these shortcodes to show the fields right after the variation choice, wherever you placed the shortcode. Example: [wcpo_campi posizione="varianti"].
Elementor widget
With Elementor active, search for “Prism Product Options” in the widget panel. It works like the shortcodes, so turn on the “I place the fields with shortcodes” switch first.
- Content: show all the groups, one group (from the library or by name), only the estimated total or the variation choice. Optional product ID to use it on any page.
- Style: title beside or above the field, widths and spacing, divider lines, dropdowns and text fields (normal and focus), choice lists, swatches (per row, size, shape, radius, border, selected state, names), hints and estimated total. Most settings can differ on desktop, tablet and phone.
The groups and their options are still created in the plugin: the widget only places them and changes how they look.
Products without options
The page receives the body class wcpo-no-options. In Elementor, give the CSS class wcpo-solo-opzioni to headings, lines or containers that should appear only on products with options. Empty shortcodes hide their own widget.
For developers
Add-ons can extend the plugin with these hooks:
wcpo_loadedaction, and theWCPO_APIconstantwcpo_field_typesandwcpo_type_iconsfilters: new field types in the group editorwcpo_group_settingsaction andwcpo_sanitize_groupfilter: extra group settings and how they are saved; a block withdata-wcpo-types="date"appears only for those typeswcpo_render_fieldfilter: the HTML of a field on the product pagewcpo_validate_fieldfilter: extra checks before adding to cartwcpo_field_selectionfilter: what a field puts in the cart and its price, calculated on the serverwcpo_cart_surchargefilter: the total surcharge of a cart itemwcpo_frontend_datafilter, plusWCPO.onTotal(),WCPO.refresh()anddata-wcpo-pricein the page: the estimated totalwcpo_admin_tabsfilter andwcpo_admin_tab_{slug}action: extra tabs in Products > Product Options