| 开发者 | motylanogha |
|---|---|
| 更新时间 | 2026年8月17日 01:40 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[swift_buy_now] shortcode or the Elementor "Buy Now Button" widget (optionally targeting a product by id).[swift_buy_now] to render the Buy Now button anywhere, inside a page, post or block. It targets the current product by default; add an id to target a specific simple product:
[swift_buy_now id="123"]
If Elementor is active, the same button is available as a "Buy Now Button" widget. The Product ID control is the shortcode's id argument: leave it at 0 on a product page.
/wp-content/plugins/plogins-swift, or install via Plugins → Add New.Yes. Swift requires an active WooCommerce installation.
On single product pages and/or shop and archive product loops; you choose which in the settings. Everywhere it shows, it is shown only for simple, in-stock, purchasable products.
Yes, if you set the redirect target to "Checkout". The product is added to the cart and the shopper is taken straight to the checkout page. You can also choose to redirect to the cart instead.
Yes. Swift can clear the cart before adding the selected product, so direct checkout contains only the item the shopper clicked.
Yes for simple products on single product pages, when the "respect quantity" setting is enabled.
No. Swift is stateless, it stores only its settings (one option) and creates no custom tables or product meta.
The free version is designed for simple products. The button is shown for simple products only, on single product pages as well as on loops, since a variation must be chosen first. Full Buy Now support for variable products (with an inline variation picker) is planned for Swift Pro.
Yes. Use [swift_buy_now] for the current product or [swift_buy_now id="123"] for a specific simple product. The same control is the Elementor "Buy Now Button" widget when Elementor is active.
[swift_buy_now] shortcode, loaded only when Elementor is active.variation_id on the request while nothing here could choose a variation, and the code said the capability belonged to the paid edition. Swift is a Buy Now button for simple products and the package now contains only that.[swift_buy_now] shortcode to place the Buy Now button anywhere (optionally targeting a product by id).