| 开发者 | australcode |
|---|---|
| 更新时间 | 2026年10月1日 03:03 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
/wp-content/plugins/australcode-dte-stock-sync-bsale.Yes, you need an active Bsale account with API access. The plugin connects to your existing Bsale account via API token.
Free covers everything a typical Chilean e-commerce store needs: product/stock sync, manual emission of boletas and facturas, RUT validation, single-office stock, on-demand audit, real-time webhook updates. Pro adds workflow automation (auto-emission post-payment, scheduled audits, daily SKU auto-link), multi-warehouse support (multi-office stock aggregation, stock transfer between offices, per-shipping-method routing), and advanced B2B features (custom field mapping, dynamic document attributes, sales notes, automatic credit notes from refunds). The Pro features are distributed as a separate plugin (from australcode.io) and are not included in this free version. See the Pro page for the full comparison.
Yes. Your Bsale account connection and general settings (API connection, document types, tax options) are stored independently of the Pro features, so when you move to the Pro version your existing configuration carries over — no re-entry needed.
The free version is fully functional on its own — it keeps handling product/stock sync and manual emission of boletas and facturas. The Pro features are provided by the separate Pro version and are not part of this free plugin.
Yes, the plugin is compatible with both the Block-based Checkout (WooCommerce 8.0+) and the Classic Checkout. Chilean tax fields (RUT, razón social, giro) are added to both.
Yes. The order metabox allows manual override of the document type per order, useful for B2B orders where the customer requests a factura instead of a boleta. This works in both Free and Pro.
Yes — in Pro. Free supports a single configured office. Pro adds multi-office stock aggregation (sum of available units across selected offices) plus stock transfer modes for inter-office logistics.
Failed emissions are logged with the error reason. The order metabox includes a "Re-emit" button to retry manually. The plugin also has an automatic retry mechanism (Pro feature, configurable, opt-in) for transient failures.
No. Since 3.8.8 the Bsale token is encrypted with the plugin's own key, stored in the database when it is first needed. To keep the key out of the database, define ACBSL_ENCRYPTION_KEY in wp-config.php; a token saved earlier moves to it on the next request. Once it is in use, do not change or remove that constant: the token becomes unreadable and you will have to enter it again.
Yes, the plugin declares compatibility with HPOS (High-Performance Order Storage) and uses the WooCommerce data abstraction layer for all order operations.
No. The plugin is a Bsale integration — it requires an active Bsale account and API access to function. The plugin's value is precisely the connection between WooCommerce and Bsale.
Pro is sold as an annual subscription (or a one-time lifetime license) through Freemius (Merchant of Record). After checkout your Pro license activates automatically; you can manage, sync or deactivate it from the native Freemius account screen. Freemius re-validates the license periodically while it is active. If Freemius is temporarily unreachable, your Pro features keep working — only an explicit change (refund, revocation, expiration) deactivates them.
Visit https://bsale.australcode.io for plugin documentation, support, and source code.
Pro is sold as an annual subscription (or one-time lifetime license) with one site activation per license. A 5-site license is also available. Current pricing is on bsale.australcode.io.
The stock-by-branch widget is a Pro feature. By default it renders under the add-to-cart form, which only exists on the standard product page. For page builders or custom templates, use the shortcode:
[acbsl_stock_by_office]
Inside a product template it picks up the current product on its own. Elsewhere, name it explicitly:
[acbsl_stock_by_office product_id="123"]
Yes, in Pro, through these filters and actions:
acbsl_should_render_stock_widget (filter) — decide whether the widget renders. Receives the default verdict (the product has a Bsale mapping) and the product ID. Return false to hide it, true to force it.acbsl_stock_by_office (filter) — the branch rows before they are cached and sent to the browser. Each row is office_name, available, in_stock. Use it to hide branches that are not open to the public, reorder them, or rename them. Note it runs before the 5-minute cache, so a per-visitor callback would leak the first visitor's result to everyone.acbsl_stock_widget_html (filter) — the widget's final markup. Return an empty string to suppress it.acbsl_before_stock_widget / acbsl_after_stock_widget (actions) — run right before and after the widget is emitted. Both receive the product ID.Yes, through these filters. The defaults fit Bsale's traffic, so most stores never need them:
acbsl_webhook_max_payload_bytes (filter) — largest request body the endpoint accepts, in bytes. Defaults to 1 MB; larger requests get HTTP 413.acbsl_webhook_rate_limit_per_min (filter) — requests per minute per IP that have not proven they come from your Bsale account (no matching cpnId or token). Defaults to 60. Return 0 to disable the limit.acbsl_webhook_rate_limit_per_min_authenticated (filter) — the same limit for requests that carry your account's cpnId or the webhook token. Defaults to 1200, well above a Bsale burst, because Bsale sends every notification from a few IPs.acbsl_webhook_queue_time_budget (filter) — seconds each queue run may spend processing webhooks one by one. Defaults to 60, or half of max_execution_time if that is lower.Yes (Pro). The widget inherits your theme's colours and fonts, so it usually needs no work. To adjust the "in stock" badge text colour, set this custom property on your theme's stylesheet:
--acbsl-badge-green-text — text colour of the in-stock badge. Defaults to #146c2e..acbsl-stock-by-office (container), .acbsl-stock-toggle (button), .acbsl-stock-results (results panel).
changelog.txt.