跳到内容

Prism Conditional Product Options for WooCommerce

v4.3

crearecreativita · 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日
需要 WordPress 6.2+已测试到 7.1.5PHP 7.4+

截图

Product page with color swatches, a conditional field, file upload and the live estimated total.
Product page with color swatches, a conditional field, file upload and the live estimated total.
Variable product: the options appear after the variation choice, with the same look.
Variable product: the options appear after the variation choice, with the same look.
Cart: every choice, surcharge and uploaded file travels with the product.
Cart: every choice, surcharge and uploaded file travels with the product.
Variant library: create a group once and reuse it on many products, with a live preview you can try.
Variant library: create a group once and reuse it on many products, with a live preview you can try.
Product screen: add groups, drag them to reorder, set minimum quantity and multiples.
Product screen: add groups, drag them to reorder, set minimum quantity and multiples.
Overview tab: getting started and all the shortcodes.
Overview tab: getting started and all the shortcodes.

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_loaded action, and the WCPO_API constant
  • wcpo_field_types and wcpo_type_icons filters: new field types in the group editor
  • wcpo_group_settings action and wcpo_sanitize_group filter: extra group settings and how they are saved; a block with data-wcpo-types="date" appears only for those types
  • wcpo_render_field filter: the HTML of a field on the product page
  • wcpo_validate_field filter: extra checks before adding to cart
  • wcpo_field_selection filter: what a field puts in the cart and its price, calculated on the server
  • wcpo_cart_surcharge filter: the total surcharge of a cart item
  • wcpo_frontend_data filter, plus WCPO.onTotal(), WCPO.refresh() and data-wcpo-price in the page: the estimated total
  • wcpo_admin_tabs filter and wcpo_admin_tab_{slug} action: extra tabs in Products > Product Options

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums