Linux 软件免费装
Banner图

Hoverbuy – Sticky Add to Cart Bar for WooCommerce

开发者 emtiazzahid
更新时间 2026年10月16日 12:26
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

conversion sticky add to cart add to cart button woocommerce product page floating add to cart

下载

1.0.0

详情介绍:

Hoverbuy adds a sticky add to cart bar to your WooCommerce product pages. When a shopper scrolls past the product's own Add to cart button, a slim bar slides in at the bottom (or top) of the screen with the product image, name, price, star rating (once the product has reviews), stock status (when WooCommerce shows one), a quantity box and an Add to cart button. It is free and does not need a particular theme: it works from the add-to-cart form WooCommerce prints on the product page. The bar's button does not add anything to the cart by itself. It presses your product page's own Add to cart button or submits the product's own form with that button, so WooCommerce adds exactly what the form holds: the chosen variation, the quantity and any fields other plugins put in the form. Features How it works
  1. On a product page, Hoverbuy checks the settings, the product's own override, the product type, its categories and tags, and the visitor's device. If the bar should not appear, nothing is added to the page.
  2. If it should, the bar is printed after the product (or in the page footer when the template does not fire WooCommerce's woocommerce_after_single_product hook) and the script watches the real Add to cart button.
  3. The bar's quantity box already mirrors the form's. When the shopper clicks the bar's button, Hoverbuy presses the real Add to cart button or submits the product form with that button, and WooCommerce adds the product from that form.
  4. When the add is done without a page reload and WooCommerce's added_to_cart event fires, the bar shows "Added to cart." with a View cart link.
The bar needs JavaScript; without it, shoppers simply use the normal product form. Compatibility Developers More plugins by Emtiaz Zahid

安装:

  1. Install and activate WooCommerce.
  2. Install Hoverbuy from the Plugins screen (or upload the plugin folder to /wp-content/plugins/) and activate it.
  3. Open a product page that has an Add to cart button and scroll past the button: the bar works with the default settings.
  4. To change it, go to WooCommerce → Sticky Add to Cart.

屏幕截图:

  • The compact phone layout keeps the image, price and button in a slim bar.
  • A variable product before a choice: "Choose options" takes the shopper straight back to the options.
  • Display settings: when the bar appears, where it sits and on which devices.
  • Conditions: show the bar everywhere or only where it helps, by product, category, tag or type.
  • Design settings with the live preview, updated before you save.

升级注意事项:

1.0.0 Initial release.

常见问题:

Does it work with variable products?

Yes, in the free version. Until the shopper chooses a variation, the bar's button reads "Choose options", scrolls back to the product form and moves the keyboard focus to the first option the shopper can pick. After a choice, the bar shows that variation's price and stock status, and its button adds the variation with the quantity in the bar. Grouped and external products work too: the bar submits their form the same way (there is no quantity box in the bar for them).

My theme already has a sticky add to cart bar. How do I avoid two?

Switch one of them off. Storefront has its own bar under Appearance → Customize → WooCommerce → Product Page → Sticky Add-To-Cart, and OceanWP has one under Appearance → Customize → WooCommerce → Single Product → Floating Bar. Both are on by default, and the Hoverbuy settings screen reminds you while they are. Flatsome and Woodmart have one in their theme options, and Hoverbuy shows a reminder for them as well. To switch Hoverbuy off instead, untick "Show the bar on product pages" under WooCommerce → Sticky Add to Cart → Display.

Does it work with Elementor or other page-builder product templates?

It works when the product template contains WooCommerce's add-to-cart form: a form.cart with a .single_add_to_cart_button button, which is the markup WooCommerce's own add-to-cart template prints. If your template uses other markup, enter its form and button selectors under Advanced. If neither is found on the page, the bar stays hidden rather than showing a button that would do nothing.

The bar does not appear on my product page. What can I check?

The bar only appears on products that have an add-to-cart form (it does not appear on an out-of-stock simple product, for example), when the Conditions and the product's own Show/Hide box allow it, and on devices that are switched on. If all of that is fine, your theme probably renders the form with other markup: set the form and button selectors under Advanced.

Does it work with side cart plugins?

Yes. The bar runs no add-to-cart request of its own; the product is added through the product's own form and WooCommerce. While a cart drawer is open the bar hides, as long as the drawer adds one of the classes listed under Advanced → Cart drawer classes to the page.

Does the device setting work with page caching?

The device is checked on the server from the browser's user agent and again in the browser from the screen width (phones under 768 px, tablets from 768 to 1024 px). If your page cache serves the same copy of a page to every device, the browser check still hides the bar on a device you switched off, but a page cached for a device you switched off has no bar for anyone. In that case keep all devices on, or, if your cache plugin offers one, turn on its separate cache for mobile visitors.

Is the bar shown on the shop, category or cart pages?

No. It appears on single product pages only, and its stylesheet and script are loaded only on product pages where it is shown.

Does Hoverbuy collect data or send anything to its author?

No. It has no tracking, sends nothing to its author or to any other outside service, and stores only its settings and the per-product Show/Hide choice in your own database. Deleting the plugin removes both, unless you tick "Keep these settings" under Advanced.

更新日志:

1.0.0