
內容簡介
CartTrigger – BAG 外掛擴展了 WooCommerce 的品牌分類,提供自訂欄位、獎項管理及圖片畫廊三大模組,讓品牌展示更為豐富與靈活。
【主要功能】
• 自訂欄位:為每個品牌附加無限的鍵值對
• 獎項管理:管理品牌的獎項與認可列表
• 圖片畫廊:為每個品牌上傳精選圖片畫廊
• 短碼支援:提供多種短碼以便於顯示內容
• 專業管理介面:清晰的卡片式管理介面
外掛標籤
開發者團隊
原文外掛簡介
CartTrigger – BAG (Brand · Awards · Gallery) extends the WooCommerce native brand taxonomy with three powerful modules:
Custom Fields
Attach unlimited key–value pairs to any brand. Output them anywhere via shortcode or PHP helper function. CSS classes are fully customisable, including Tailwind arbitrary-value classes (e.g. text-[11px]).
Awards
Manage a list of awards and recognitions for each brand — with optional logo, award name, event name, and year. Display them as a styled list using the [ctbag_awards] shortcode.
Gallery
Upload a curated image gallery per brand. Display it as a responsive grid with the [ctbag_gallery] shortcode. Optional native WooCommerce lightbox (PhotoSwipe) via lightbox="1".
Shortcodes
[ctbag_custom_fields]
Outputs brand custom fields as a
- list.
[ctbag_custom_fields brand="slug" wrapper_class="..." dt_class="..." dd_class="..."]
[ctbag_awards]
Outputs brand awards as a styled card list.
[ctbag_awards brand="slug" title="Awards" wrapper_class="..." card_class="..."]
[ctbag_gallery]
Outputs brand gallery as a responsive image grid.
[ctbag_gallery brand="slug" title="Gallery" wrapper_class="..." lightbox="1"]
PHP Helper Functions
All shortcodes are also available as direct PHP functions that bypass WordPress’ shortcode parser — useful when Tailwind arbitrary-value classes (e.g. text-[11px]) would otherwise be mangled:
echo ctbag_custom_fields(['wrapper_class' => 'grid grid-cols-2 gap-4']);
echo ctbag_awards(['title' => __('Awards', 'your-textdomain')]);
echo ctbag_gallery(['title' => __('Gallery', 'your-textdomain'), 'lightbox' => '1']);
Professional Admin UI
All brand meta fields are presented in a clean, card-based admin interface grouped by module (HTML Description, Custom Fields, Awards, Gallery), with collapsible shortcode reference built in. Custom fields and awards support drag & drop reordering. Gallery images can be removed individually (× button on hover) and reordered by dragging.
