Getting started
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Swift is ready as soon as WooCommerce is active. The feature ships enabled with sensible defaults, single-product placement, Buy now label, redirect to checkout and cart-clear on, so the button appears on simple products the moment WooCommerce is present.
Requirements
Section titled “Requirements”- WordPress 6.5 or newer.
- WooCommerce active (declared as a required plugin).
- PHP 8.1 or newer.
Swift does not register its hooks until WooCommerce’s direct-checkout engine is available, so it stays inert if WooCommerce is missing rather than throwing errors.
Install
Section titled “Install”- Install WooCommerce and make sure it is active.
- Install Swift from Plugins → Add New (when live on WordPress.org), or upload the
swiftfolder to/wp-content/plugins/. - Activate it. A Settings link appears in the plugin’s row on the Plugins screen.
Configure
Section titled “Configure”Open WooCommerce → Swift Quick Buy. The header shows a Live / Off badge for the master switch. Review:
- Enable Buy Now, on by default; the button is already live on single products.
- Button label, the wording on the button; leave empty for Buy now.
- Placement, toggle the single product page and the shop/archive loops independently, and choose whether the button sits before or after add-to-cart.
- Redirect target, Checkout (skip the cart) or Cart.
- Button style, theme default, solid or outline, with an optional accent colour. The live preview updates as you choose.
Changes apply to the storefront as soon as you save, no cache to clear and no templates to rebuild.
Verify on a product page
Section titled “Verify on a product page”- Open a simple, in-stock product.
- Confirm the Buy Now button appears beside WooCommerce’s add-to-cart button.
- Click it. The product is added over a nonce-protected request and you are redirected to your chosen target, checkout by default.
- If cart-clear is on, confirm only that product is in the order.
Check a shop listing too if you enabled the loop placement: the button shows on simple, purchasable products and is absent for out-of-stock or variable ones.
Simple vs variable products
Section titled “Simple vs variable products”The free edition is built for simple products. A variable product’s Buy Now needs a chosen variation, which the free button does not pass, so the loop button is suppressed for variable products and the shortcode renders nothing for them. Full Buy Now for variable products, with an inline variation picker, is planned for Swift Pro.
Need help?
Section titled “Need help?”- Configuration, every setting with its
swift_settingsoption key. - Using Swift, the
[swift_buy_now]shortcode, the redirect filter and common scenarios. - GitHub issues, bugs and feature requests.