Linux 软件免费装
Banner图

CaptainBrew Homebrew Calculators

开发者 captainbrewcalculators
更新时间 2026年12月2日 19:26
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce beer calculator recipe homebrew

下载

1.0.0 1.0.1

详情介绍:

CaptainBrew Homebrew Calculators adds homebrewing tools from CaptainBrew to your WordPress or WooCommerce shop. Add them with a block or a shortcode. The widgets need a CaptainBrew business account registered for your site's domain. The first month is free; see pricing. 39 widgets: Made for homebrew shops: How it works Each widget is an iframe served by captainbrew.com. The plugin builds the iframe with your settings, sizes it for the visitor's screen and loads it lazily. When add-to-cart is on, the recipe builder sends the recipe's ingredients to the page, and the plugin adds the matching products to the WooCommerce cart.

安装:

  1. Create a CaptainBrew business account at https://captainbrew.com/business_portal_register.php with your site's domain, and activate it from the email you receive.
  2. Install and activate the plugin. Settings > CaptainBrew shows whether your site is connected.
  3. Add the CaptainBrew Widget block to any page and pick a widget, or use a shortcode such as [captainbrew widget="abv-calculator"].
  4. Optional, for WooCommerce add-to-cart: import your catalog in the business portal using your WooCommerce SKUs as the productIdentifier, then turn on Add to cart under WooCommerce add to cart.

屏幕截图:

  • The recipe builder with the shop's own products: gravity, bitterness, color and alcohol update as you go, with "Add to cart" in the action row.
  • The recipe's ingredients in the WooCommerce cart.
  • Settings > CaptainBrew: the Features tab, next to Settings (connection status), Product Catalog and Shortcodes.
  • Adding a widget with the CaptainBrew Widget block.

升级注意事项:

1.0.1 Adds the Beer Calories Chart widget. 1.0.0 First release.

常见问题:

Do I need an account?

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.

The widget shows "Forbidden"

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.

Which shortcode attributes are there?

  • 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.

How are ingredients matched to my products?

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.

Can I change the colors?

Yes. Set your brand colors in the CaptainBrew business portal under Settings. They apply to every widget on your registered domain.

Developers

  • 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.

更新日志:

1.0.1 1.0.0