Linux 软件免费装
Banner图

Prism Conditional Product Options for WooCommerce

开发者 creare_creativita
更新时间 2026年11月27日 18:47
PHP版本: 7.4 及以上
WordPress版本: 7.2
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce elementor product addons product options conditional fields

下载

3.37 3.40 3.39 4.1 3.38 4.0 4.1.1 4.2 4.3 4.4

详情介绍:

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. 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. Shortcodes These apply when the switch is on. 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. 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:

安装:

  1. Install and activate WooCommerce.
  2. Upload the plugin to /wp-content/plugins/, or install it from the Plugins screen, and activate it.
  3. Go to Products > Product Options and follow the three steps in the Overview tab.

屏幕截图:

  • Variable product: the options appear after the variation choice, with the same look.
  • 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.
  • Product screen: add groups, drag them to reorder, set minimum quantity and multiples.
  • Overview tab: getting started and all the shortcodes.

常见问题:

Where do I create the options?

In Products > Product Options, Variant library tab, for groups shared across products. For a single product, use the "Custom product options" box in the product screen.

How do I make a field required?

Tick "Required field" on the group in the library: every product that uses the group follows it, and the product cannot be added to the cart until the customer fills the field. Inside a single product you can change it for that product only. A field hidden by a condition is never required while it is hidden.

Does it work with Elementor?

Yes. Use the "Prism Product Options" widget to place the fields and change colors, sizes and spacing from the Elementor panel. The shortcodes in a Shortcode widget keep working too.

Can I choose where the fields appear?

Yes. By default they appear above the quantity. To place them yourself, turn on the "I place the fields with shortcodes" switch and use the shortcodes listed in the description.

Where are the uploaded files stored?

In wp-content/uploads/wcpo-private/, with random names. They can be downloaded only from the customer's cart, with the order key, or by users who manage orders. Files from abandoned carts are deleted after 14 days.

How long do the files of an order stay on the server?

Until the order is permanently deleted or a privacy erasure request removes them. To save space, go to Products > Product Options, Overview tab, and turn on automatic deletion: choose after how many days from completion the files are deleted. The setting is off by default. Only completed orders are affected, including those you already have, and deleted files cannot be recovered. The order stays as it is: the file name remains visible, and the customer and the store see that the file was deleted.

The Overview tab says the private folder can be reached from outside. What should I do?

Uploaded files are protected by an .htaccess file, which works automatically on most Apache servers. It has no effect on nginx or on Apache with AllowOverride None: there, anyone who has the exact address of a file can open it, even though the file names are random and the folder cannot be listed. To close the folder on nginx, add this rule to the server block, or ask your hosting provider to do it: location ^~ /wp-content/uploads/wcpo-private/ { deny all; } On Apache, enable AllowOverride for the uploads folder. The warning goes away at the next automatic check.

Which filters can I use?

  • wcpo_upload_client_ip: the real visitor address behind a proxy, for the upload limit
  • wcpo_upload_limit: uploads per IP per hour (default 30)
  • wcpo_upload_quota_mb: total size of the cart uploads folder in MB (default 2048)
  • wcpo_text_limit: length of text fields with no limit set (default 5000)

更新日志:

4.4 4.3 4.2 4.1.1 4.1 4.0 3.40 3.39 3.38 3.37 3.36 3.35 3.33 3.32 3.31 3.30 3.29 3.28 3.27 3.26 3.25 3.24 3.23 3.22 3.21 3.20 3.19 3.18 3.17 3.16 3.15 3.14