A lightweight custom WordPress plugin that adds a fixed "Add to Cart" and "Buy Now" bar to the bottom of WooCommerce single product pages.
- Adds a sticky cart bar to the bottom of product pages.
- Displays product price dynamically, including updates when variations are selected.
- Works with both simple and variable products.
- Uses native WooCommerce add-to-cart form for full compatibility.
- Sticky bar visibility toggles based on scroll direction (hides at the bottom, fades in when scrolling up).
- Clean and minimal design with responsive styling.
- Lightweight and easy to customize via CSS.
- Translation Ready: All plugin strings can be translated into other languages.
- Download or clone the repository:
Or download the ZIP file from the releases page
git clone https://github.com/alamin-karno/sticky-bottom-cart-bar
- Zip the plugin folder:
Compress the
sticky-bottom-cart-barfolder into a.zipfile. - Upload to WordPress:
- Go to
Plugins → Add New → Upload Plugin - Select your
.zipfile and click Install Now - Activate the plugin
You can edit the CSS in assets/css/style.css to match your theme or move it into your theme’s stylesheet if needed.
sticky-bottom-cart-bar/
│
├── sticky-bottom-cart-bar.php # Main plugin code
├── assets/
│ ├── css/style.css # Sticky bar styling
│ └── js/script.js # JavaScript for sticky bar functionality
├── languages/ # .pot file and translations (to be added)
│ └── sticky-bottom-cart-bar.pot # Template for translations
├── readme.txt # WordPress plugin directory readme
├── README.md # Plugin documentation
├── LICENSE # License information
└── CHANGELOG.md # Changelog- WordPress 5.0+
- PHP 7.2+
- WooCommerce (latest version recommended)
If you encounter issues, have questions, or would like to contribute:
-
🐞 Bug Reports & Feature Requests
Please open an issue on the GitHub repository. -
🤝 Contributing
See the Contributing Guidelines for how to get started. -
📬 General Inquiries
Feel free to contact me directly via email. -
🙋 Support
Check the FAQ in readme.txt or open an issue for help.
MIT License. Free to use and modify.
Made with ❤️ for WordPress + WooCommerce