
內容簡介
PersoNailit 是一款專為 WooCommerce 設計的外掛,讓商店擁有者能夠為任何簡單或可變產品添加多種個性化元素,提升顧客的購物體驗與產品的獨特性。
【主要功能】
• 支援文字、圖片上傳及顏色/方塊選擇
• 自動生成產品組合及其定價
• 設定必填元素及驗證提交值
• 可儲存可重用的元素集
• 提供全域與元素設定選項
• 開發者可擴展元素類型
外掛標籤
開發者團隊
原文外掛簡介
PersoNailit adds a “PersoNailit” tab to the WooCommerce product data panel,
letting store owners attach one or more personalization elements to any
simple or variable product:
Text — a free-text field with max length, allowed-character
restrictions (letters only / numbers only) and text transform (uppercase,
lowercase, capitalize). Can carry its own extra price.
Image Upload — single or multiple file upload, with configurable
maximum size and allowed file types (PNG, JPG, GIF, PDF). Can carry its
own extra price.
Color Swatches — a repeater of clickable colors, each with its own
optional price, sale price, stock status, weight/dimensions, reference and
preview image.
Box Swatches — a repeater of clickable boxes (text or image), with the
same per-value price, sale price, stock, shipping and reference options as
Color, plus a configurable size (Small/Medium/Large) and an option to
display the price inside the box itself.
Each element can be marked as required. Submitted values are validated on
add-to-cart, shown in the cart and stored as order item meta, so store
owners see exactly what the customer requested on every order.
Combinations
Available on simple products only (see the FAQ below for why). When a
product has two or more Color/Box elements, PersoNailit can generate every
combination of their values automatically (“Generate Combinations”). Each
combination can then be given its own price, sale price, image, stock
status, weight and dimensions — overriding the individual color/box values
for that specific pairing. Bulk actions are available to set price, stock
status, weight or dimensions across several combinations at once.
Out of stock handling
Colors, boxes and combinations can each be marked as out of stock. The
storefront automatically blocks “Add to cart” and shows a message when the
customer’s current selection (or active combination) is unavailable.
Element Sets
A product’s configured elements can be saved as a reusable “set” from the
product panel, then added to any other product in one click — useful when
several products share the same personalization style.
Global Settings & Element Settings
Two admin screens (under the main PersoNailit menu) let store owners:
customize the personalization box’s appearance (background color, accent
color, title, padding, border radius) and whether new elements are
required by default — Global Settings;
set global defaults per element type (placeholder text, default file
types and size, default swatch size, default box size, etc.), used
whenever a product doesn’t override them — Element Settings.
Uploaded files are stored in a temporary, .htaccess-protected directory
until checkout completes, then moved to a final protected directory and
attached to the order. Unclaimed temporary uploads are deleted automatically
after 3 days.
Extending PersoNailit
Developers can register additional element types without modifying plugin
files, by dropping a class implementing PersoNailit_Element_Interface
into includes/elements/{type}/class-element-{type}.php, or by hooking into
the personailit_elements filter to register/remove elements
programmatically. See docs/hooks.md for the full list of available hooks.
