| 开发者 | tanvirul |
|---|---|
| 更新时间 | 2026年11月28日 13:22 |
| PHP版本: | 4.8 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
To show what the Buy Now button earns, the plugin records Buy Now usage in your own database: which product, button and checkout type was used, whether the product was added, whether checkout was reached, and the device type (mobile or desktop). Orders placed through Buy Now are marked. No IP address, name, email address, user account or browser details are stored, and nothing is sent outside your site. The "Buy Now Button" card on the WordPress dashboard shows the totals for the last 7 days.
You can switch this off under WooCommerce -> Settings -> Buy Now Button -> Buy Now Analytics. Detailed records are kept for 365 days; daily totals are kept until the plugin is deleted. To delete this data together with the plugin, switch on "Remove Data on Uninstall" on the same screen. Developers can also switch recording off with the woo_buy_now_analytics_should_track filter, and remove the data on uninstall by adding define( 'WBNB_REMOVE_ALL_DATA', true ); to wp-config.php.
"Buy Now orders" are paid orders (Processing, Completed or Refunded) with at least one product bought through the Buy Now button. "Buy Now revenue" is the total of those Buy Now products after discounts, before tax and shipping, minus refunds. "Clicks that became orders" is Buy Now orders divided by Buy Now clicks. Clicks and orders by store managers are not counted. You can hide the card with Screen Options on the dashboard.
A buy link is a short link such as yourstore.com/buy/summer-cap that sends a shopper straight to checkout with one product already in the cart. Create links under WooCommerce -> Settings -> Buy Now Button -> Buy links: pick a product (or one variation), a quantity and an optional coupon. Every link comes with a QR code you can download, made in your browser without any outside service. The list shows how many orders each link brought. Opening a link replaces what was in the shopper's cart. Buy links need WooCommerce 10 or newer. The free version includes 5 links; Pro has no limit.
The readable source is included in the plugin's src folder. The build folder holds the compiled files, made with @wordpress/scripts (npm install && npm run build). The Buy links screen bundles two open-source libraries from npm: @wordpress/dataviews (GPL-2.0-or-later) and qrcode-generator (MIT).
No. it dose not send any data to any external servers.
woo_buy_now_redirect_location filterwoo_buy_now_button_single_after and woo_buy_now_button_archive_after actions, woo_buy_now_settings_sections filterwindow.wbnb (Popup, AjaxCartHandler, DataCollector) and wbnb.cart.added / wbnb.popup.opened wp.hooks actions