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.
woocommerce_after_single_product hook) and the script watches the real Add to cart button.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.
woocommerce_after_single_product, and the bar is printed there or in the footer.form.cart) and its button (.single_add_to_cart_button) on the page. If your product template uses different markup, set your own form and button selectors under Advanced.found_variation and reset_data events.hoverbuy_should_render (final say on rendering), hoverbuy_bar_parts (add, remove or reorder the bar’s parts), hoverbuy_bar_settings (settings for one product’s bar), hoverbuy_contexts (name => conditional callback for the pages where the bar may appear; the page’s queried object must still be a product, and the default is product => is_product), hoverbuy_bar_allowed_html (tags allowed in parts), hoverbuy_capability (who can change the settings and open the preview; default manage_woocommerce).hoverbuy_after_add fires after a product added through the bar’s button reaches the cart, with the cart item key, product id, quantity and variation id.hoverbuy_bar_clicked event with detail.productId and detail.state (ready or choose).templates/bar.php to yourtheme/hoverbuy/bar.php to change the markup.