[WordPress] 外掛分享: Prism Conditional Product Options for WooCommerce

首頁 › 外掛目錄 › Prism Conditional Product Options for WooCommerce
WordPress 外掛 Prism Conditional Product Options for WooCommerce 的封面圖片
全新外掛
安裝啟用
—
尚無評分
2 天前
最後更新
—
問題解決
WordPress 6.2+ PHP 7.4+ v4.5 上架:2026-11-16

外掛標籤

開發者團隊

⬇ 下載最新版 (v4.5) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Prism Conditional Product Options for WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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

延伸相關外掛

文章
Filter
Mastodon