Linux 软件免费装
Banner图

Swift - Buy Now Button for WooCommerce

开发者 motylanogha
更新时间 2026年8月17日 01:40
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce buy now direct checkout skip cart quick buy

下载

1.0.11

详情介绍:

Swift adds a "Buy Now" quick buy button to your WooCommerce products. One click adds the product to the cart and sends the shopper straight to checkout, skipping the cart page so a purchase takes one click instead of three. The button can appear on single product pages, on shop and archive loops, or both. You choose the label, where it redirects (checkout or cart), and whether the cart is emptied first so the buyer checks out with only the product they clicked. Swift is stateless: it stores no per-product data and creates no database tables. It handles the button hooks, nonce verification, cart handling and redirect, and nothing else. Swift is developed in the open. Source code, bug reports and feature requests live at https://github.com/wppoland/plogins-swift. Documentation and links What it does Settings A simple WooCommerce settings page (WooCommerce → Swift Quick Buy) lets you: Shortcode and Elementor Use [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.

安装:

  1. Upload the plugin to /wp-content/plugins/plogins-swift, or install via Plugins → Add New.
  2. Activate it. WooCommerce must be active.
  3. Visit WooCommerce → Swift Quick Buy to configure the button label, placement and redirect target.

屏幕截图:

  • The Swift Quick Buy settings screen.

常见问题:

Does it require WooCommerce?

Yes. Swift requires an active WooCommerce installation.

Where does the Buy Now button appear?

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.

Does it skip the cart?

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.

Can the Buy Now button empty the cart first?

Yes. Swift can clear the cart before adding the selected product, so direct checkout contains only the item the shopper clicked.

Does it respect the selected quantity?

Yes for simple products on single product pages, when the "respect quantity" setting is enabled.

Does it create database tables?

No. Swift is stateless, it stores only its settings (one option) and creates no custom tables or product meta.

Does it work with variable products?

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.

Can I place the button with a shortcode or Elementor?

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.

更新日志:

1.0.11 1.0.10 1.0.9 1.0.8 1.0.4 1.0.3 1.0.2 1.0.1 0.2.1 0.2.0 0.1.0