| 开发者 |
ashrafulsarkar
codeholt azimjamshed |
|---|---|
| 更新时间 | 2026年8月25日 03:12 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[cbfw_bundle id="123"]/wp-content/plugins/ or install via the Plugins screen.templates/ directory into yourtheme/codeholt-bundles-for-woocommerce/, keeping the same sub-folder structure, and edit your copy:
templates/bundle-card.php — the card used by the shortcode, block and Elementor widget.templates/single-product/add-to-cart/bundle.php — the bundle area on the single product page.cbfw_bundled_products — ( array $resolved, CBFW_Product_Bundle $bundle ) Resolved bundled items before they are used.cbfw_can_bundle_product — ( bool $can, WC_Product $product ) Whether a product may be bundled.cbfw_pricing_modes — ( array $modes ) Registered pricing modes. Default array( 'auto', 'fixed' ).cbfw_custom_mode_prices — ( null|array $prices, CBFW_Product_Bundle $bundle, string $mode, array $totals ) Return array( 'regular' => …, 'sale' => … ) to supply prices for a custom mode.cbfw_product_layouts — ( array $layouts ) Registered single-product layouts.cbfw_bundle_layout — ( string $layout, CBFW_Product_Bundle $bundle ) Layout used for one bundle.cbfw_bundle_card_html — ( string $html, CBFW_Product_Bundle $bundle, array $args ) Rendered card markup.cbfw_show_savings_badge — ( bool $show, WC_Product $product ) Whether the savings badge is shown.cbfw_savings_badge_text — ( string $badge, WC_Product $product, array $pricing ) Badge text. Must be escaped.cbfw_inline_css — ( string $css, array $settings ) Extra CSS appended to the frontend stylesheet.cbfw_structured_data — ( array $markup, CBFW_Product_Bundle $bundle ) Bundle structured data.cbfw_save_bundled_items — ( array $items, WC_Product $product ) Sanitized items before they are saved.cbfw_save_settings — ( array $settings ) Settings before they are written to the database.cbfw_bundle_choices_limit — ( int $limit ) Max bundles listed in pickers. Default 200.cbfw_overview_days — ( int $days ) Reporting period for the analytics overview. Default 30.cbfw_child_search_help — ( string $text ) Help tip under the bundle builder's product search.cbfw_loaded — Fires once the plugin is fully loaded.cbfw_bundle_synced — ( CBFW_Product_Bundle $bundle ) After a bundle's price and stock are resynced.cbfw_order_line_item_created — ( WC_Order_Item_Product $item, CBFW_Product_Bundle $bundle ) After bundle meta is written to an order line item.cbfw_import_bundle — ( CBFW_Product_Bundle $bundle, array $bundle_data ) After a bundle is created from an import row, before prices are resynced.cbfw_before_bundled_items / cbfw_after_bundled_items — ( CBFW_Product_Bundle $bundle ) Around the included-products list on the product page.cbfw_pricing_fields — ( WP_Post $post ) Extra fields in the product data pricing area.cbfw_after_builder_panel — ( WP_Post $post ) After the Bundled Products panel.cbfw_settings_sections — ( array $settings ) Extra sections on the Settings tab.cbfw_layout_card_fields — ( array $settings ) Extra fields inside the layout settings card.cbfw_overview_actions — ( int $days ) Toolbar area of the analytics overview.cbfw_admin_tab_{$tab} — Renders the body of a custom admin tab.Any published, purchasable product — simple products and individual variations of variable products. Pick the specific variation you want to bundle rather than the variable parent, which has no price of its own.
Yes — bundle contents and savings display correctly in both classic and block-based cart/checkout.
Yes. Copy any file from templates/ into yourtheme/codeholt-bundles-for-woocommerce/ and edit it.
Yes. If you use auto-calculated pricing, the bundle's price and savings recalculate whenever a bundled product's price changes, with no manual resave needed.
Yes, the plugin declares and is fully tested with HPOS enabled.
No. Every feature listed above is fully usable with no artificial limits, nag screens or disabled UI.
Yes. Codeholt Bundles for WooCommerce Pro adds percentage discount pricing with scheduling, quantity rules, three extra product page layouts with a custom layout builder, a Custom CSS panel, advanced reports with CSV export, and automatic one-click updates on top of this free plugin. Compare Free vs Pro any time from WooCommerce → Bundles → Get Pro.
Full documentation covering both Free and Pro — pricing modes, layouts, hooks/filters, templates and licensing — is available at https://ashrafulsarkar.github.io/codeholt-bundles-for-woocommerce/.
docs/index.html) covering both Free and Pro.