| 开发者 | chaffery |
|---|---|
| 更新时间 | 2026年9月22日 06:18 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[chaffery_button] shortcode. Supports standard WooCommerce product templates in classic and block themes. Custom templates and page builders can use the shortcode if their layout does not run the standard WooCommerce hooks. It takes the shape of your theme's own buttons — drawn as the quiet, outlined one, so "Add to cart" stays the main action.No. The WooCommerce key is read-only. Chaffery reads product names, descriptions, photos, prices and stock. Purchases always happen in your shop.
Only on products that are live on Chaffery, in the position you choose. Products you have not listed show no button. While the button is on, WordPress schedules a background check every 15 minutes; when it actually runs depends on your site's WordPress cron setup and traffic. Opening WooCommerce → Chaffery or a product page as a shop manager also checks for changes, at most once a minute. Use Check connection or Check again on the settings screen to request a fresh check. Page caching can delay a visible change; clear your page cache if needed.
The button needs three things: the store is connected, the product is live on Chaffery, and the button is switched on. WooCommerce → Chaffery shows the connection, live products and button settings. With an automatic position selected, shop managers see a short note in the button's place when a product is not live or the store is not connected; visitors never see that note. If you selected the manual position, place [chaffery_button] in your product template, or use [chaffery_button id="123"] with the product's ID on another page. If you use a page cache, clear it after changing the button settings.
No. They are shown only to signed-in users who manage the shop, and only while the button is switched on. To switch them off: add_filter( 'chaffery_wc_manager_note', '__return_false' );
Visitors' product pages use the list of live products stored in your database and never wait for a Chaffery request. While the button is enabled, a shop manager's product-page visit can refresh that list at most once a minute and wait for the response, using a six-second request timeout. The button itself is a link with a few lines of CSS.
No. The plug-in sets no cookies and loads no scripts in your shop. (The settings screen in your dashboard uses a few lines of script for convenience.)
Yes, under WooCommerce → Chaffery. Developers can also filter the line under the button with chaffery_wc_button_hint.
Deactivating stops the background check. Deleting removes the plug-in's two options from your database. Your Chaffery account is not affected; disconnect the store in your Chaffery dashboard or revoke the key under WooCommerce → Settings → Advanced → REST API.
[product_page]; it also appears on products that are out of stock.