# Alterdiv Sales Display for WooCommerce

A lightweight WooCommerce plugin that effortlessly displays the total number of sales for a product directly on your store pages. Designed to be simple, flexible, and fully customizable, this plugin helps increase social proof and conversions in your WooCommerce store.

## ✨ Features

* **Display Total Sales:** Show real-time WooCommerce product total sales directly to your visitors.
* **Flexible Display Options:** Automatically show the sales counter on single product pages and shop pages, or place it anywhere using the `[adivsdfw_sales_display]` shortcode.
* **Zero Sales Visibility:** You have the option to show or hide the counter for products with zero sales.
* **Custom Prefix & Suffix:** Completely customize the text around the sales number (e.g., "🔥 150 people bought this product").
* **Display Positions:** Control exactly where the counter appears (After Price, Before Add to Cart, After Add to Cart).
* **Easy Customization:** Easily customize font sizes, colors, paddings, and borders directly from the settings – no CSS required.
* **Translation-Ready:** Includes a `.pot` file and is fully translation-ready.
* **Lightweight & Optimized:** Built carefully following strict WordPress coding standards.

## 🚀 Installation

1. Upload the `alterdiv-sales-display-for-woocommerce` folder over to your `/wp-content/plugins/` directory.
2. Go to the **Plugins** screen in your WordPress admin dashboard and click **Activate**.
3. Navigate to **WooCommerce → Sales Display** to configure your configuration.
4. Adjust the display and styling options as needed for your storefront.

## ⚙️ Requirements

* **WordPress:** 6.0 or higher
* **PHP:** 7.4 or higher
* **Plugin:** WooCommerce must be installed and active

## 💡 Usage

By default, the plugin will automatically add a sales counter based on the global conditions in your settings. 
To manually display the counter anywhere using the WordPress block editor, Elementor, or other page builders, simply insert the included shortcode:

```
[adivsdfw_sales_display]
```

## 👨‍💻 Author

Developed by **Rasel**.
Visit [Alterdiv](https://alterdiv.com) to see more of my development work.

## 📄 License

This project is licensed under the [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html).
