Skip to content

A lightweight custom WordPress plugin that adds a fixed "Add to Cart" and optional "Buy Now" bar to the bottom of single WooCommerce product pages.

License

Notifications You must be signed in to change notification settings

alamin-karno/sticky-bottom-cart-bar

Repository files navigation

Sticky Bottom Cart Bar

A lightweight custom WordPress plugin that adds a fixed "Add to Cart" and "Buy Now" bar to the bottom of WooCommerce single product pages.

🛒 Features

  • 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.

🚀 Installation

  1. Download or clone the repository:
    git clone https://github.com/alamin-karno/sticky-bottom-cart-bar
    Or download the ZIP file from the releases page
  2. Zip the plugin folder: Compress the sticky-bottom-cart-bar folder into a .zip file.
  3. Upload to WordPress:
  • Go to Plugins → Add New → Upload Plugin
  • Select your .zip file and click Install Now
  • Activate the plugin

🔧 Customization

You can edit the CSS in assets/css/style.css to match your theme or move it into your theme’s stylesheet if needed.

📁 File Structure

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

📦 Compatibility

  • WordPress 5.0+
  • PHP 7.2+
  • WooCommerce (latest version recommended)

🛠️ Support & Contributions

If you encounter issues, have questions, or would like to contribute:

📜 License

MIT License. Free to use and modify.

Made with ❤️ for WordPress + WooCommerce

About

A lightweight custom WordPress plugin that adds a fixed "Add to Cart" and optional "Buy Now" bar to the bottom of single WooCommerce product pages.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •