| 开发者 | captainbrewcalculators |
|---|---|
| 更新时间 | 2026年12月2日 19:26 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[captainbrew widget="abv-calculator"].productIdentifier, then turn on Add to cart under WooCommerce add to cart.Yes. Widgets only load on the domain registered in an activated CaptainBrew business account. The first month is free. You do not need to paste anything into the plugin: CaptainBrew finds your account from your site's domain, and the plugin fills in your Client ID by itself.
Widgets only load on the domain registered in your CaptainBrew business account, once it is activated and while your trial or subscription is active. Settings > CaptainBrew shows which of these applies.
widget (required): the widget slug. The list, with a Copy button for each, is in Settings > CaptainBrew > Shortcodes.height: a fixed height in pixels. By default the height adapts to the screen width.title: yes or no to show or hide the widget's title.whitelabel: yes or no to override the whitelabel setting for this recipe builder.By SKU. The productIdentifier of each ingredient in your CaptainBrew catalog is looked up as a WooCommerce SKU (simple products and variations). If your identifiers differ from your SKUs, add lines such as PALE-MALT-2LB = MALT-001 under Different SKUs. You can map to a product ID instead of a SKU. Ingredients that are not found, are out of stock or cannot be bought are listed to the customer, and the rest are added.
Yes. Set your brand colors in the CaptainBrew business portal under Settings. They apply to every widget on your registered domain.
CAPTAINBREW_BASE_URL constant: load widgets from another CaptainBrew install, for example for local development.captainbrew_widgets filter: change the widget list.captainbrew_product_id filter: custom product matching. Receives the matched product ID and the productIdentifier.captainbrew_woocommerce_cart_enabled filter.captainbrew_show_clear_cart filter: return false to hide the Clear cart button on the cart page.captainbrew:added_to_cart DOM event on document.body after products are added.